aboutsummaryrefslogtreecommitdiffstats
path: root/thermometer/thermometer.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 /thermometer/thermometer.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 'thermometer/thermometer.c')
-rw-r--r--thermometer/thermometer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/thermometer/thermometer.c b/thermometer/thermometer.c
index 3cc2454e..de4e647a 100644
--- a/thermometer/thermometer.c
+++ b/thermometer/thermometer.c
@@ -75,7 +75,7 @@ struct thermometer {
};
struct characteristic {
- struct att_char attr; /* Characteristic */
+ struct gatt_char attr; /* Characteristic */
GSList *desc; /* Descriptors */
struct thermometer *t; /* Thermometer where the char belongs */
};
@@ -522,7 +522,7 @@ static void configure_thermometer_cb(GSList *characteristics, guint8 status,
}
for (l = characteristics; l; l = l->next) {
- struct att_char *c = l->data;
+ struct gatt_char *c = l->data;
struct characteristic *ch;
uint16_t start, end;
@@ -540,7 +540,7 @@ static void configure_thermometer_cb(GSList *characteristics, guint8 status,
start = c->value_handle + 1;
if (l->next != NULL) {
- struct att_char *c = l->next->data;
+ struct gatt_char *c = l->next->data;
if (start == c->handle)
continue;
end = c->handle - 1;
@@ -1211,7 +1211,7 @@ static void attio_disconnected_cb(gpointer user_data)
}
int thermometer_register(DBusConnection *connection, struct btd_device *device,
- struct att_primary *tattr)
+ struct gatt_primary *tattr)
{
const gchar *path = device_get_path(device);
struct thermometer *t;