mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-03 22:00:14 +01:00
libeis: add eis_client_get/set_user_data
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
51bec40aa5
commit
54c06f8d1e
3 changed files with 11 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ OBJECT_IMPLEMENT_UNREF(eis_client);
|
|||
|
||||
_public_
|
||||
OBJECT_IMPLEMENT_GETTER(eis_client, name, const char*);
|
||||
_public_
|
||||
OBJECT_IMPLEMENT_SETTER(eis_client, user_data, void*);
|
||||
_public_
|
||||
OBJECT_IMPLEMENT_GETTER(eis_client, user_data, void*);
|
||||
|
||||
_public_ struct eis*
|
||||
eis_client_get_context(struct eis_client *client)
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ enum eis_client_state {
|
|||
|
||||
struct eis_client {
|
||||
struct object object;
|
||||
void *user_data;
|
||||
struct list link;
|
||||
struct source *source;
|
||||
uint32_t id;
|
||||
|
|
|
|||
|
|
@ -248,6 +248,12 @@ eis_client_ref(struct eis_client *client);
|
|||
struct eis_client *
|
||||
eis_client_unref(struct eis_client *client);
|
||||
|
||||
void *
|
||||
eis_client_get_user_data(struct eis_client *eis_client);
|
||||
|
||||
void
|
||||
eis_client_set_user_data(struct eis_client *eis_client, void *user_data);
|
||||
|
||||
/**
|
||||
* Return the name set by this client. The server is under no obligation to
|
||||
* use this name.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue