summaryrefslogtreecommitdiffstats
path: root/include/hardware/bt_gatt_types.h
diff options
context:
space:
mode:
authorAndre Eisenbach <andre@broadcom.com>2013-07-09 00:02:48 -0700
committerMatthew Xie <mattx@google.com>2013-08-13 19:35:15 -0700
commit02223d1602c1728b3c94f68059d1b2e76d35dbd3 (patch)
tree8f1ad8228af4f8a290a36278ebcb44288b65d47a /include/hardware/bt_gatt_types.h
parent6e548cf960faf18975138a1a6952684ecbee3ba3 (diff)
downloadhardware_libhardware-02223d1602c1728b3c94f68059d1b2e76d35dbd3.zip
hardware_libhardware-02223d1602c1728b3c94f68059d1b2e76d35dbd3.tar.gz
hardware_libhardware-02223d1602c1728b3c94f68059d1b2e76d35dbd3.tar.bz2
LE: Add instance ID to descriptors (3/4)
If a remote devices offers multiple descriptors with the same UUID, the instance ID is used to differentiate between them. Change-Id: Ia5ab989f222a5cf1b7cb66966ad4f91f2b660708
Diffstat (limited to 'include/hardware/bt_gatt_types.h')
-rw-r--r--include/hardware/bt_gatt_types.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hardware/bt_gatt_types.h b/include/hardware/bt_gatt_types.h
index fee9bb5..0ac217e 100644
--- a/include/hardware/bt_gatt_types.h
+++ b/include/hardware/bt_gatt_types.h
@@ -29,17 +29,17 @@ __BEGIN_DECLS
#define BTGATT_SERVICE_TYPE_PRIMARY 0
#define BTGATT_SERVICE_TYPE_SECONDARY 1
-/** GATT Characteristic ID adding instance id tracking to the UUID */
+/** GATT ID adding instance id tracking to the UUID */
typedef struct
{
bt_uuid_t uuid;
uint8_t inst_id;
-} btgatt_char_id_t;
+} btgatt_gatt_id_t;
/** GATT Service ID also identifies the service type (primary/secondary) */
typedef struct
{
- btgatt_char_id_t id;
+ btgatt_gatt_id_t id;
uint8_t is_primary;
} btgatt_srvc_id_t;