shared/att-types: Add errors introduced by GATT caching
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 1 Mar 2018 15:39:21 +0000 (17:39 +0200)
committerhimanshu <h.himanshu@samsung.com>
Wed, 22 Jan 2020 13:57:09 +0000 (19:27 +0530)
This adds Database Out of Sync and Value Not Allowed errors.

Change-Id: Icfc819ee46fc159e665c2e4becfef6d779da66a7
Signed-off-by: himanshu <h.himanshu@samsung.com>
src/shared/att-types.h

index 0187475..d71e974 100755 (executable)
@@ -100,6 +100,8 @@ struct bt_att_pdu_error_rsp {
 #define BT_ATT_ERROR_INSUFFICIENT_ENCRYPTION           0x0F
 #define BT_ATT_ERROR_UNSUPPORTED_GROUP_TYPE            0x10
 #define BT_ATT_ERROR_INSUFFICIENT_RESOURCES            0x11
+#define BT_ATT_ERROR_DB_OUT_OF_SYNC                    0x12
+#define BT_ATT_ERROR_VALUE_NOT_ALLOWED                 0x13
 
 #ifdef TIZEN_FEATURE_BLUEZ_MODIFY
 /*
@@ -165,3 +167,6 @@ struct bt_att_pdu_error_rsp {
 #define BT_GATT_CHRC_EXT_PROP_AUTH_WRITE               0x20
 #define BT_GATT_CHRC_EXT_PROP_AUTH     (BT_GATT_CHRC_EXT_PROP_AUTH_READ | \
                                        BT_GATT_CHRC_EXT_PROP_AUTH_WRITE)
+
+/* GATT Characteristic Client Features Bitfield values */
+#define BT_GATT_CHRC_CLI_FEAT_ROBUST_CACHING           0x01