summaryrefslogtreecommitdiff
path: root/attrib/gatttool.c
diff options
context:
space:
mode:
authorAnderson Lizardo <anderson.lizardo@openbossa.org>2014-01-11 00:47:17 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-11 18:56:03 +0200
commit2704b4c83bad1445ab237cad5de204d7166ae616 (patch)
treec319d97ce2990f248d81d54eb58928f168edd68c /attrib/gatttool.c
parentd45c6df38652385c8ff5a9318a5eedfbefc64cf1 (diff)
downloadbluez-2704b4c83bad1445ab237cad5de204d7166ae616.tar.gz
attrib: Modify gatt_cb_t signature
Use standard C types instead of GLib ones (which are unnecessary here) and move the "status" parameter to the first position, so it is consistent with other callbacks.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r--attrib/gatttool.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index f211dcd2b..ebc81232a 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -137,7 +137,7 @@ static void connect_cb(GIOChannel *io, GError *err, gpointer user_data)
operation(attrib);
}
-static void primary_all_cb(GSList *services, guint8 status, gpointer user_data)
+static void primary_all_cb(uint8_t status, GSList *services, void *user_data)
{
GSList *l;
@@ -157,8 +157,7 @@ done:
g_main_loop_quit(event_loop);
}
-static void primary_by_uuid_cb(GSList *ranges, guint8 status,
- gpointer user_data)
+static void primary_by_uuid_cb(uint8_t status, GSList *ranges, void *user_data)
{
GSList *l;
@@ -191,8 +190,8 @@ static gboolean primary(gpointer user_data)
return FALSE;
}
-static void char_discovered_cb(GSList *characteristics, guint8 status,
- gpointer user_data)
+static void char_discovered_cb(uint8_t status, GSList *characteristics,
+ void *user_data)
{
GSList *l;