summaryrefslogtreecommitdiff
path: root/lib/uuid.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-02-19 15:51:27 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-24 10:18:45 +0200
commit67b976dc33e31c9bcf9bb0cf59e0fe6812d9c4ab (patch)
tree5b93c9fd1fa5eb6033da25f7516605b946be861b /lib/uuid.h
parentec43b11814fe9ee99d09a4a74987afcf54c96302 (diff)
downloadbluez-67b976dc33e31c9bcf9bb0cf59e0fe6812d9c4ab.tar.gz
lib: Move GATT UUID to uuid.h
This patch moves GATT UUIDs definitions to a common header. uuid.h contains helper functions to manipulate Bluetooth UUIDs and some common BR/EDR services UUIDs.
Diffstat (limited to 'lib/uuid.h')
-rw-r--r--lib/uuid.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/uuid.h b/lib/uuid.h
index 95e5a9a82..c24cee54e 100644
--- a/lib/uuid.h
+++ b/lib/uuid.h
@@ -105,6 +105,31 @@ extern "C" {
#define OBEX_MNS_UUID "00001133-0000-1000-8000-00805f9b34fb"
#define OBEX_MAP_UUID "00001134-0000-1000-8000-00805f9b34fb"
+/* GATT UUIDs section */
+#define GATT_PRIM_SVC_UUID 0x2800
+#define GATT_SND_SVC_UUID 0x2801
+#define GATT_INCLUDE_UUID 0x2802
+#define GATT_CHARAC_UUID 0x2803
+
+/* GATT Characteristic Types */
+#define GATT_CHARAC_DEVICE_NAME 0x2A00
+#define GATT_CHARAC_APPEARANCE 0x2A01
+#define GATT_CHARAC_PERIPHERAL_PRIV_FLAG 0x2A02
+#define GATT_CHARAC_RECONNECTION_ADDRESS 0x2A03
+#define GATT_CHARAC_PERIPHERAL_PREF_CONN 0x2A04
+#define GATT_CHARAC_SERVICE_CHANGED 0x2A05
+
+/* GATT Characteristic Descriptors */
+#define GATT_CHARAC_EXT_PROPER_UUID 0x2900
+#define GATT_CHARAC_USER_DESC_UUID 0x2901
+#define GATT_CLIENT_CHARAC_CFG_UUID 0x2902
+#define GATT_SERVER_CHARAC_CFG_UUID 0x2903
+#define GATT_CHARAC_FMT_UUID 0x2904
+#define GATT_CHARAC_AGREG_FMT_UUID 0x2905
+#define GATT_CHARAC_VALID_RANGE_UUID 0x2906
+#define GATT_EXTERNAL_REPORT_REFERENCE 0x2907
+#define GATT_REPORT_REFERENCE 0x2908
+
typedef struct {
enum {
BT_UUID_UNSPEC = 0,