aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/client.c
diff options
context:
space:
mode:
authorChen Ganir <chen.ganir@ti.com>2012-03-26 09:35:59 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-26 12:18:00 +0300
commit1e064929b303cead29a85a108cbadfe93462c717 (patch)
tree6250f513bb94ef6e36df1ec290473969048a0dbc /attrib/client.c
parent48c82115a2739881877fa857390ff2eca4dc73e0 (diff)
downloadbluez-1e064929b303cead29a85a108cbadfe93462c717.tar.gz
bluez-1e064929b303cead29a85a108cbadfe93462c717.tar.xz
bluez-1e064929b303cead29a85a108cbadfe93462c717.zip
GATT: Replace start/end with att_range
Use att_range struct instead of individual start/end handles in gatt_primary structure
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 7c01514a..c0e00c10 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -860,10 +860,10 @@ static void char_discovered_cb(GSList *characteristics, guint8 status,
}
if (previous_end)
- *previous_end = prim->end;
+ *previous_end = prim->range.end;
gatt_get_address(gatt, &sba, &dba);
- store_characteristics(&sba, &dba, prim->start, gatt->chars);
+ store_characteristics(&sba, &dba, prim->range.start, gatt->chars);
g_slist_foreach(gatt->chars, register_characteristic, gatt->path);
@@ -899,7 +899,7 @@ static void send_discover(GAttrib *attrib, gpointer user_data)
gatt->attrib = g_attrib_ref(attrib);
- gatt_discover_char(gatt->attrib, prim->start, prim->end, NULL,
+ gatt_discover_char(gatt->attrib, prim->range.start, prim->range.end, NULL,
char_discovered_cb, qchr);
}
@@ -1009,12 +1009,12 @@ static struct gatt_service *primary_register(DBusConnection *conn,
gatt->psm = psm;
gatt->conn = dbus_connection_ref(conn);
gatt->path = g_strdup_printf("%s/service%04x", device_path,
- prim->start);
+ prim->range.start);
g_dbus_register_interface(gatt->conn, gatt->path,
CHAR_INTERFACE, prim_methods,
NULL, NULL, gatt, NULL);
- gatt->chars = load_characteristics(gatt, prim->start);
+ gatt->chars = load_characteristics(gatt, prim->range.start);
g_slist_foreach(gatt->chars, register_characteristic, gatt->path);
return gatt;