summaryrefslogtreecommitdiff
path: root/src/attrib-server.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-25 11:42:59 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-25 17:24:01 +0200
commitf1956438cc6038eef324b3adf8e446f1b84dfb2f (patch)
treeaeb189381de5fee90606f16464c1a84b18480f18 /src/attrib-server.c
parent22a0f404fd1c49d61a553b694fa0ed7c48f016a1 (diff)
downloadbluez-f1956438cc6038eef324b3adf8e446f1b84dfb2f.tar.gz
gatt: Move Characteristic properties to attrib/gatt.h
Properties are defined by GATT specification. This patch moves and renames the defines related to Characteristic properties bits from attrib/att.h to attrib/gatt.h
Diffstat (limited to 'src/attrib-server.c')
-rw-r--r--src/attrib-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attrib-server.c b/src/attrib-server.c
index 114c8a147..ed843d0ca 100644
--- a/src/attrib-server.c
+++ b/src/attrib-server.c
@@ -1310,7 +1310,7 @@ static gboolean register_core_services(struct gatt_server *server)
/* GAP service: device name characteristic */
server->name_handle = 0x0006;
bt_uuid16_create(&uuid, GATT_CHARAC_UUID);
- atval[0] = ATT_CHAR_PROPER_READ;
+ atval[0] = GATT_CHR_PROP_READ;
put_le16(server->name_handle, &atval[1]);
put_le16(GATT_CHARAC_DEVICE_NAME, &atval[3]);
attrib_db_add_new(server, 0x0004, &uuid, ATT_NONE, ATT_NOT_PERMITTED,
@@ -1324,7 +1324,7 @@ static gboolean register_core_services(struct gatt_server *server)
/* GAP service: device appearance characteristic */
server->appearance_handle = 0x0008;
bt_uuid16_create(&uuid, GATT_CHARAC_UUID);
- atval[0] = ATT_CHAR_PROPER_READ;
+ atval[0] = GATT_CHR_PROP_READ;
put_le16(server->appearance_handle, &atval[1]);
put_le16(GATT_CHARAC_APPEARANCE, &atval[3]);
attrib_db_add_new(server, 0x0007, &uuid, ATT_NONE, ATT_NOT_PERMITTED,