aboutsummaryrefslogtreecommitdiffstats
path: root/attrib/gatttool.c
diff options
context:
space:
mode:
authorChen Ganir <chen.ganir@ti.com>2012-03-26 09:35:58 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-26 12:16:44 +0300
commit48c82115a2739881877fa857390ff2eca4dc73e0 (patch)
tree5d55bef8de7b7c56ce1734d6eedfb6720aba23bf /attrib/gatttool.c
parentafb04979ee7b986f9351ca19565d3b0d7ac4c181 (diff)
downloadbluez-48c82115a2739881877fa857390ff2eca4dc73e0.tar.gz
bluez-48c82115a2739881877fa857390ff2eca4dc73e0.tar.xz
bluez-48c82115a2739881877fa857390ff2eca4dc73e0.zip
GATT: Rename service and char structs
Rename the att_primary to gatt_primary and att_char to gatt_char. Characteristic and Service do not exist in the ATT spec, only in GATT.
Diffstat (limited to 'attrib/gatttool.c')
-rw-r--r--attrib/gatttool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/attrib/gatttool.c b/attrib/gatttool.c
index 17ee9136..24a85a4f 100644
--- a/attrib/gatttool.c
+++ b/attrib/gatttool.c
@@ -146,7 +146,7 @@ static void primary_all_cb(GSList *services, guint8 status, gpointer user_data)
}
for (l = services; l; l = l->next) {
- struct att_primary *prim = l->data;
+ struct gatt_primary *prim = l->data;
g_print("attr handle = 0x%04x, end grp handle = 0x%04x "
"uuid: %s\n", prim->start, prim->end, prim->uuid);
}
@@ -201,7 +201,7 @@ static void char_discovered_cb(GSList *characteristics, guint8 status,
}
for (l = characteristics; l; l = l->next) {
- struct att_char *chars = l->data;
+ struct gatt_char *chars = l->data;
g_print("handle = 0x%04x, char properties = 0x%02x, char value "
"handle = 0x%04x, uuid = %s\n", chars->handle,