aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-11-17 16:09:45 -0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-18 21:58:22 +0200
commit8022b94b0523b2bdb8a02d7d148eb58d4b189dd2 (patch)
tree8308147566fd35691f3e89efbaf8f8ee930cd4ad /attrib/client.c
parent0f8be9dbaa8b625c00cb58c9656e954bd545c5ba (diff)
downloadbluez-8022b94b0523b2bdb8a02d7d148eb58d4b189dd2.tar.gz
bluez-8022b94b0523b2bdb8a02d7d148eb58d4b189dd2.tar.xz
bluez-8022b94b0523b2bdb8a02d7d148eb58d4b189dd2.zip
Add an extra parameter in the discovery primary to specify the UUID
Extends discover primary function to perform discover by UUID. UUID parameter defines which procedure will be executed: Discover All Primary Services or Discover Primary Service by Service UUID.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 955e6230..a851a741 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -363,8 +363,8 @@ static void connect_cb(GIOChannel *chan, GError *gerr, gpointer user_data)
return;
}
- atid = gatt_discover_primary(gatt->attrib, 0x0001, 0xffff, primary_cb,
- gatt);
+ atid = gatt_discover_primary(gatt->attrib, 0x0001, 0xffff, NULL,
+ primary_cb, gatt);
if (atid == 0)
goto fail;
@@ -1311,8 +1311,8 @@ static void primary_cb(guint8 status, const guint8 *pdu, guint16 plen,
* the Error Code is set to Attribute Not Found.
*/
gatt->attrib = g_attrib_ref(gatt->attrib);
- gatt->atid = gatt_discover_primary(gatt->attrib,
- end + 1, 0xffff, primary_cb, gatt);
+ gatt->atid = gatt_discover_primary(gatt->attrib, end + 1, 0xffff, NULL,
+ primary_cb, gatt);
done:
g_attrib_unref(gatt->attrib);
}