aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorSheldon Demario <sheldon.demario@openbossa.org>2011-03-02 14:09:08 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2011-03-04 15:48:21 -0300
commitadc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1 (patch)
tree3330d83b0d7f1deea255254b12d5fdbebb0f3137 /attrib/client.c
parente41eccc12323d6a7eafbdfdf0715283a5282f14c (diff)
downloadbluez-adc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1.tar.gz
bluez-adc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1.tar.xz
bluez-adc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1.zip
Add offset option to characteristic read by handle
Some tests require an arbitrary offset.
Diffstat (limited to 'attrib/client.c')
-rw-r--r--attrib/client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/attrib/client.c b/attrib/client.c
index 97b11562..17157cd0 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -709,7 +709,7 @@ static void update_char_desc(guint8 status, const guint8 *pdu, guint16 len,
if (bt_io_set(io, BT_IO_L2CAP, NULL,
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_HIGH,
BT_IO_OPT_INVALID)) {
- gatt_read_char(gatt->attrib, current->handle,
+ gatt_read_char(gatt->attrib, current->handle, 0,
update_char_desc, current);
return;
}
@@ -760,7 +760,7 @@ static void update_char_value(guint8 status, const guint8 *pdu,
if (bt_io_set(io, BT_IO_L2CAP, NULL,
BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_HIGH,
BT_IO_OPT_INVALID)) {
- gatt_read_char(gatt->attrib, chr->handle,
+ gatt_read_char(gatt->attrib, chr->handle, 0,
update_char_value, current);
return;
}
@@ -821,11 +821,11 @@ static void descriptor_cb(guint8 status, const guint8 *pdu, guint16 plen,
if (uuid_desc16_cmp(&uuid, GATT_CHARAC_USER_DESC_UUID) == 0) {
gatt->attrib = g_attrib_ref(gatt->attrib);
- gatt_read_char(gatt->attrib, handle, update_char_desc,
+ gatt_read_char(gatt->attrib, handle, 0, update_char_desc,
qfmt);
} else if (uuid_desc16_cmp(&uuid, GATT_CHARAC_FMT_UUID) == 0) {
gatt->attrib = g_attrib_ref(gatt->attrib);
- gatt_read_char(gatt->attrib, handle,
+ gatt_read_char(gatt->attrib, handle, 0,
update_char_format, qfmt);
} else
g_free(qfmt);
@@ -857,7 +857,7 @@ static void update_all_chars(gpointer data, gpointer user_data)
qvalue->chr = chr;
gatt->attrib = g_attrib_ref(gatt->attrib);
- gatt_read_char(gatt->attrib, chr->handle, update_char_value, qvalue);
+ gatt_read_char(gatt->attrib, chr->handle, 0, update_char_value, qvalue);
}
static void char_discovered_cb(GSList *characteristics, guint8 status,