OSDN Git Service

shared/gatt: Return bool in gatt_db_get_attribute_permissions
authorMarcin Kraglak <marcin.kraglak@tieto.com>
Fri, 30 May 2014 09:37:41 +0000 (11:37 +0200)
committerSzymon Janc <szymon.janc@tieto.com>
Sun, 1 Jun 2014 16:30:20 +0000 (18:30 +0200)
commit6f629ca9a9af325e16dc6a69ea1b016943eb9547
tree4d3aa08aec81a0c34996a054178e560bdbbe24bc
parent27f17d4083f725c150f310186ca7d73d29064ccc
shared/gatt: Return bool in gatt_db_get_attribute_permissions

It will return true if attribute with given handle exists in db and
set permissions value, otherwise it will return false.
Now, if get_permissions failed, we should reply with
ATT_ECODE_ATTR_NOT_FOUND.
android/gatt.c
src/shared/gatt-db.c
src/shared/gatt-db.h