Diff between d517740aee82f6845f461a54b7928edeb6dc8dac and 7cac24c496587d0560ac0e6789918c6916677484

Changed Files

File Additions Deletions Status
src/shared/att-types.h +14 -0 modified
src/shared/gatt-client.h +0 -9 modified

Full Patch

diff --git a/src/shared/att-types.h b/src/shared/att-types.h
index b85c969..b57a5f3 100644
--- a/src/shared/att-types.h
+++ b/src/shared/att-types.h
@@ -73,3 +73,17 @@
 #define BT_ATT_ERROR_INSUFFICIENT_ENCRYPTION		0x0F
 #define BT_ATT_ERROR_UNSUPPORTED_GROUP_TYPE		0x10
 #define BT_ATT_ERROR_INSUFFICIENT_RESOURCES		0x11
+
+/* GATT Characteristic Properties Bitfield values */
+#define BT_GATT_CHRC_PROP_BROADCAST			0x01
+#define BT_GATT_CHRC_PROP_READ				0x02
+#define BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP		0x04
+#define BT_GATT_CHRC_PROP_WRITE				0x08
+#define BT_GATT_CHRC_PROP_NOTIFY			0x10
+#define BT_GATT_CHRC_PROP_INDICATE			0x20
+#define BT_GATT_CHRC_PROP_AUTH				0x40
+#define BT_GATT_CHRC_PROP_EXT_PROP			0x80
+
+/* GATT Characteristic Extended Properties Bitfield values */
+#define BT_GATT_CHRC_EXT_PROP_RELIABLE_WRITE	0x01
+#define BT_GATT_CHRC_EXT_PROP_WRITABLE_AUX	0x02
diff --git a/src/shared/gatt-client.h b/src/shared/gatt-client.h
index bf4e7bb..adccfc5 100644
--- a/src/shared/gatt-client.h
+++ b/src/shared/gatt-client.h
@@ -27,15 +27,6 @@
 
 #define BT_GATT_UUID_SIZE 16
 
-#define BT_GATT_CHRC_PROP_BROADCAST			0x01
-#define BT_GATT_CHRC_PROP_READ				0x02
-#define BT_GATT_CHRC_PROP_WRITE_WITHOUT_RESP		0x04
-#define BT_GATT_CHRC_PROP_WRITE				0x08
-#define BT_GATT_CHRC_PROP_NOTIFY			0x10
-#define BT_GATT_CHRC_PROP_INDICATE			0x20
-#define BT_GATT_CHRC_PROP_AUTH				0x40
-#define BT_GATT_CHRC_PROP_EXT_PROP			0x80
-
 struct bt_gatt_client;
 
 struct bt_gatt_client *bt_gatt_client_new(struct bt_att *att, uint16_t mtu);