diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2018-03-28 12:10:55 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2018-03-29 14:20:11 +0300 |
commit | a0b886e26c83ad4dfbf0b2b2e024c8ce9ead9a7d (patch) | |
tree | 87e22692148120090c347fbc694ff2f1ec8de043 /src/gatt-database.h | |
parent | 2c3bba7b38be03834162e34069156f1fd49f0528 (diff) | |
download | bluez-a0b886e26c83ad4dfbf0b2b2e024c8ce9ead9a7d.tar.gz |
gatt: Add support for storing Service Changed CCC value
This adds support for storing CCC value of Service Changed
characteristic. Once bluetoothd is restart stored values are read
and any device subscribed to indications will receive Service Changed
indication with 0x00010-0xffff value. This is to invalidate any
non-core services since there is no way to verify if applications
will register their services in same order (or at all).
This fix accessing invalid handles by stacks that rely only on Service
Changed indication for rediscovery ie. Apple iOS.
Diffstat (limited to 'src/gatt-database.h')
-rw-r--r-- | src/gatt-database.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gatt-database.h b/src/gatt-database.h index 0da33f604..a6c3139c4 100644 --- a/src/gatt-database.h +++ b/src/gatt-database.h @@ -25,3 +25,5 @@ void btd_gatt_database_destroy(struct btd_gatt_database *database); struct gatt_db *btd_gatt_database_get_db(struct btd_gatt_database *database); void btd_gatt_database_att_connected(struct btd_gatt_database *database, struct bt_att *att); + +void btd_gatt_database_restore_svc_chng_ccc(struct btd_gatt_database *database); |