libeis: make eis_client_get_context() part of the public API

So we don't need to carry two pointers around in the caller.
This commit is contained in:
Peter Hutterer 2023-03-02 14:29:36 +10:00
parent c5ebd345fd
commit 7509ee257f
2 changed files with 3 additions and 3 deletions

View file

@ -59,9 +59,6 @@ struct eis_client {
struct eis_client *
eis_client_new(struct eis *eis, int fd);
struct eis*
eis_client_get_context(struct eis_client *client);
struct eis_client *
eis_client_get_client(struct eis_client *client);

View file

@ -325,6 +325,9 @@ eis_get_user_data(struct eis *eis);
void
eis_set_user_data(struct eis *eis, void *user_data);
struct eis*
eis_client_get_context(struct eis_client *client);
/**
* Returns true if the client is a sender, false otherwise. A sender client may
* send events to the EIS implementation, a receiver client expects to receive