summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi.denis-courmont@nokia.com>2009-12-16 13:46:49 +0200
committerAki Niemi <aki.niemi@nokia.com>2009-12-18 15:59:17 +0200
commitbc6c4adcac319ce22508b4e7f5ea272162ea4b2e (patch)
tree6ada236600c595e9c790277d78541b952cb7294b
parent0081548fcfe6dd599822da22276b2aeb953156d0 (diff)
downloadofono-bc6c4adcac319ce22508b4e7f5ea272162ea4b2e.tar.bz2
gisi: pass object handle to g_isi_verify() callback
This will be needed for GPDS.
-rw-r--r--drivers/isimodem/call-barring.c3
-rw-r--r--drivers/isimodem/call-forwarding.c3
-rw-r--r--drivers/isimodem/call-settings.c3
-rw-r--r--drivers/isimodem/devinfo.c3
-rw-r--r--drivers/isimodem/network-registration.c3
-rw-r--r--drivers/isimodem/phonebook.c3
-rw-r--r--drivers/isimodem/voicecall.c5
-rw-r--r--gisi/client.h3
-rw-r--r--gisi/verify.c2
9 files changed, 18 insertions, 10 deletions
diff --git a/drivers/isimodem/call-barring.c b/drivers/isimodem/call-barring.c
index 62c3cc30..ab38fc28 100644
--- a/drivers/isimodem/call-barring.c
+++ b/drivers/isimodem/call-barring.c
@@ -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;
diff --git a/drivers/isimodem/call-forwarding.c b/drivers/isimodem/call-forwarding.c
index dd804912..480dd1fe 100644
--- a/drivers/isimodem/call-forwarding.c
+++ b/drivers/isimodem/call-forwarding.c
@@ -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;
diff --git a/drivers/isimodem/call-settings.c b/drivers/isimodem/call-settings.c
index d3b615a9..fa3791cc 100644
--- a/drivers/isimodem/call-settings.c
+++ b/drivers/isimodem/call-settings.c
@@ -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;
diff --git a/drivers/isimodem/devinfo.c b/drivers/isimodem/devinfo.c
index 5f8d85ef..481c5206 100644
--- a/drivers/isimodem/devinfo.c
+++ b/drivers/isimodem/devinfo.c
@@ -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;
diff --git a/drivers/isimodem/network-registration.c b/drivers/isimodem/network-registration.c
index a9777758..e05f30eb 100644
--- a/drivers/isimodem/network-registration.c
+++ b/drivers/isimodem/network-registration.c
@@ -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;
diff --git a/drivers/isimodem/phonebook.c b/drivers/isimodem/phonebook.c
index c24320a6..f0e63097 100644
--- a/drivers/isimodem/phonebook.c
+++ b/drivers/isimodem/phonebook.c
@@ -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;
diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c
index 26d43467..50784491 100644
--- a/drivers/isimodem/voicecall.c
+++ b/drivers/isimodem/voicecall.c
@@ -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) {
diff --git a/gisi/client.h b/gisi/client.h
index d0c0c4b5..683d284a 100644
--- a/gisi/client.h
+++ b/gisi/client.h
@@ -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,
diff --git a/gisi/verify.c b/gisi/verify.c
index c40ea770..7958a335 100644
--- a/gisi/verify.c
+++ b/gisi/verify.c
@@ -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;
}