--- src/shared/gatt-db.c | 6 +++--- src/shared/gatt-db.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c index 36316af..90c09bb 100644 --- a/src/shared/gatt-db.c +++ b/src/shared/gatt-db.c @@ -48,7 +48,7 @@ struct gatt_db { struct gatt_db_attribute { uint16_t handle; bt_uuid_t uuid; - uint8_t permissions; + uint32_t permissions; uint16_t value_len; uint8_t *value; @@ -269,7 +269,7 @@ static void set_attribute_data(struct gatt_db_attribute *attribute, uint16_t gatt_db_add_characteristic(struct gatt_db *db, uint16_t handle, const bt_uuid_t *uuid, - uint8_t permissions, + uint32_t permissions, uint8_t properties, gatt_db_read_t read_func, gatt_db_write_t write_func, @@ -317,7 +317,7 @@ uint16_t gatt_db_add_characteristic(struct gatt_db *db, uint16_t handle, uint16_t gatt_db_add_char_descriptor(struct gatt_db *db, uint16_t handle, const bt_uuid_t *uuid, - uint8_t permissions, + uint32_t permissions, gatt_db_read_t read_func, gatt_db_write_t write_func, void *user_data) diff --git a/src/shared/gatt-db.h b/src/shared/gatt-db.h index 3d46730..350e34e 100644 --- a/src/shared/gatt-db.h +++ b/src/shared/gatt-db.h @@ -41,7 +41,7 @@ typedef void (*gatt_db_write_t) (uint16_t handle, uint16_t offset, uint16_t gatt_db_add_characteristic(struct gatt_db *db, uint16_t handle, const bt_uuid_t *uuid, - uint8_t permissions, + uint32_t permissions, uint8_t properties, gatt_db_read_t read_func, gatt_db_write_t write_func, @@ -49,7 +49,7 @@ uint16_t gatt_db_add_characteristic(struct gatt_db *db, uint16_t handle, uint16_t gatt_db_add_char_descriptor(struct gatt_db *db, uint16_t handle, const bt_uuid_t *uuid, - uint8_t permissions, + uint32_t permissions, gatt_db_read_t read_func, gatt_db_write_t write_func, void *user_data); -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html