diff options
Diffstat (limited to 'gisi/client.c')
-rw-r--r-- | gisi/client.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gisi/client.c b/gisi/client.c index 1407dff4..464ed3a2 100644 --- a/gisi/client.c +++ b/gisi/client.c @@ -65,6 +65,7 @@ typedef struct _GIsiIndication GIsiIndication; struct _GIsiClient { uint8_t resource; + uint16_t server_obj; struct { int major; int minor; @@ -203,6 +204,31 @@ int g_isi_version_minor(GIsiClient *client) } /** + * Set the server object for the resource associated with @a + * client. + * @param client client for the resource + * @param server object + */ +void g_isi_server_object_set(GIsiClient *client, uint16_t obj) +{ + if (!client) + return; + + client->server_obj = obj; +} + +/** + * Returns the server object for the the resource associated with @a + * client. + * @param client client for the resource + * @return server object + */ +uint8_t g_isi_server_object(GIsiClient *client) +{ + return client ? client->server_obj : 0; +} + +/** * Returns the resource associated with @a client * @param client client for the resource * @return PhoNet resource ID for the client |