gisi: pass object handle to g_isi_verify() callback
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 16 Dec 2009 11:46:49 +0000 (13:46 +0200)
committerAki Niemi <aki.niemi@nokia.com>
Fri, 18 Dec 2009 13:59:17 +0000 (15:59 +0200)
This will be needed for GPDS.

drivers/isimodem/call-barring.c
drivers/isimodem/call-forwarding.c
drivers/isimodem/call-settings.c
drivers/isimodem/devinfo.c
drivers/isimodem/network-registration.c
drivers/isimodem/phonebook.c
drivers/isimodem/voicecall.c
gisi/client.h
gisi/verify.c

index 62c3cc3..ab38fc2 100644 (file)
@@ -410,7 +410,8 @@ static gboolean isi_call_barring_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_call_barring *barr = opaque;
 
index dd80491..480dd1f 100644 (file)
@@ -505,7 +505,8 @@ static gboolean isi_call_forwarding_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_call_forwarding *cf = opaque;
 
index d3b615a..fa3791c 100644 (file)
@@ -287,7 +287,8 @@ static gboolean isi_call_settings_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_call_settings *cs = opaque;
 
index 5f8d85e..481c520 100644 (file)
@@ -273,7 +273,8 @@ static gboolean isi_devinfo_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_devinfo *info = opaque;
 
index a977775..e05f30e 100644 (file)
@@ -978,7 +978,8 @@ static gboolean isi_netreg_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_netreg *netreg = opaque;
 
index c24320a..f0e6309 100644 (file)
@@ -313,7 +313,8 @@ static gboolean isi_phonebook_register(gpointer user)
        return FALSE;
 }
 
-static void reachable_cb(GIsiClient *client, bool alive, void *opaque)
+static void reachable_cb(GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque)
 {
        struct ofono_phonebook *pb = opaque;
 
index 26d4346..5078449 100644 (file)
@@ -74,7 +74,8 @@ typedef void GIsiIndication (GIsiClient *client,
                const void *restrict data, size_t len,
                uint16_t object, void *opaque);
 
-typedef void GIsiVerify (GIsiClient *client, bool alive, void *opaque);
+typedef void GIsiVerify (GIsiClient *client, bool alive, uint16_t object,
+                               void *opaque);
 
 typedef bool GIsiResponse(GIsiClient *client,
                          void const * restrict data, size_t len,
@@ -1300,7 +1301,7 @@ static int isi_voicecall_probe(struct ofono_voicecall *ovc,
 }
 
 static void isi_call_verify_cb(GIsiClient *client,
-                              bool alive,
+                              bool alive, uint16_t object,
                               void *ovc)
 {
        if (alive) {
index d0c0c4b..683d284 100644 (file)
@@ -38,7 +38,8 @@ typedef struct _GIsiClient GIsiClient;
 struct _GIsiRequest;
 typedef struct _GIsiRequest GIsiRequest;
 
-typedef void (*GIsiVerifyFunc)(GIsiClient *client, bool alive, void *opaque);
+typedef void (*GIsiVerifyFunc)(GIsiClient *client, bool alive,
+                               uint16_t object, void *opaque);
 
 typedef bool (*GIsiResponseFunc)(GIsiClient *client,
                const void *restrict data, size_t len,
index c40ea77..7958a33 100644 (file)
@@ -71,7 +71,7 @@ static bool verify_cb(GIsiClient *client, const void *restrict data,
 
 out:
        if (func)
-               func(client, alive, vd->data);
+               func(client, alive, object, vd->data);
        g_free(vd);
        return true;
 }