diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2009-09-15 15:35:47 +0300 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2009-09-15 15:35:47 +0300 |
commit | 8bbd9a8560fe1f15b32d327eda3647cef6018623 (patch) | |
tree | cb5700bf469eecc6984b201349f1532c4990c52a /gisi/client.h | |
parent | bee4bf4d7d52798889c6f33ebfe4c54ace60a902 (diff) | |
download | ofono-8bbd9a8560fe1f15b32d327eda3647cef6018623.tar.bz2 |
gisi: Add ISI version and reachability check API
This patch adds an API for querying the ISI version of the resource
with which the client is associated. This information is only
available after g_isi_verify() has been called on the client. This is
because we use the version query message as a vehicle for reachability
checking.
Diffstat (limited to 'gisi/client.h')
-rw-r--r-- | gisi/client.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gisi/client.h b/gisi/client.h index 448f9e5c..d0c0c4b5 100644 --- a/gisi/client.h +++ b/gisi/client.h @@ -38,6 +38,8 @@ typedef struct _GIsiClient GIsiClient; struct _GIsiRequest; typedef struct _GIsiRequest GIsiRequest; +typedef void (*GIsiVerifyFunc)(GIsiClient *client, bool alive, void *opaque); + typedef bool (*GIsiResponseFunc)(GIsiClient *client, const void *restrict data, size_t len, uint16_t object, void *opaque); @@ -51,8 +53,15 @@ typedef void (*GIsiDebugFunc) (const void *restrict data, size_t len, GIsiClient *g_isi_client_create(GIsiModem *modem, uint8_t resource); +GIsiRequest *g_isi_verify(GIsiClient *client, GIsiVerifyFunc func, + void *opaque); + uint8_t g_isi_client_resource(GIsiClient *client); +void g_isi_version_set(GIsiClient *client, int major, int minor); +int g_isi_version_major(GIsiClient *client); +int g_isi_version_minor(GIsiClient *client); + void g_isi_client_set_debug(GIsiClient *client, GIsiDebugFunc func, void *opaque); |