diff options
author | Chen Ganir <chen.ganir@ti.com> | 2012-03-26 09:35:58 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-03-26 12:16:44 +0300 |
commit | 48c82115a2739881877fa857390ff2eca4dc73e0 (patch) | |
tree | 5d55bef8de7b7c56ce1734d6eedfb6720aba23bf /attrib/gatt.c | |
parent | afb04979ee7b986f9351ca19565d3b0d7ac4c181 (diff) | |
download | bluez-48c82115a2739881877fa857390ff2eca4dc73e0.tar.gz |
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/gatt.c')
-rw-r--r-- | attrib/gatt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/attrib/gatt.c b/attrib/gatt.c index 452a4cf8c..7cf718db6 100644 --- a/attrib/gatt.c +++ b/attrib/gatt.c @@ -172,7 +172,7 @@ static void primary_all_cb(guint8 status, const guint8 *ipdu, guint16 iplen, for (i = 0, end = 0; i < list->num; i++) { const uint8_t *data = list->data[i]; - struct att_primary *primary; + struct gatt_primary *primary; bt_uuid_t uuid; start = att_get_u16(&data[0]); @@ -188,7 +188,7 @@ static void primary_all_cb(guint8 status, const guint8 *ipdu, guint16 iplen, continue; } - primary = g_try_new0(struct att_primary, 1); + primary = g_try_new0(struct gatt_primary, 1); if (!primary) { err = ATT_ECODE_INSUFF_RESOURCES; goto done; @@ -274,7 +274,7 @@ static void char_discovered_cb(guint8 status, const guint8 *ipdu, guint16 iplen, for (i = 0; i < list->num; i++) { uint8_t *value = list->data[i]; - struct att_char *chars; + struct gatt_char *chars; bt_uuid_t uuid; last = att_get_u16(value); @@ -285,7 +285,7 @@ static void char_discovered_cb(guint8 status, const guint8 *ipdu, guint16 iplen, } else uuid = att_get_uuid128(&value[5]); - chars = g_try_new0(struct att_char, 1); + chars = g_try_new0(struct gatt_char, 1); if (!chars) { err = ATT_ECODE_INSUFF_RESOURCES; goto done; |