Parent: 042cbc7c7003535b43c8f9f88bca3587ab1f974f
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-03 23:15:59
Tree: 8329f4f957702ace7a8e002b5f7104f89aa7c976
shared/gatt-db: Add service added/removed events This patch adds support to gatt-db for sending events when services are added to and removed from the database: 1. Added the gatt_db_register function which can be used to register service_added and service_removed callbacks. 2. Added the gatt_db_unregister function which can be used to unregister previously added callbacks. This function can be safely called from within a service added/removed callback. 3. The service added/removed callbacks are tied to gatt_db_service_set_active. The added callback is called when a service gets marked as active and vice versa. 4. The service_removed callback will get called if a service is removed from the database.
Diffstat
| M | src/shared/gatt-db.c | | | 168 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - |
| M | src/shared/gatt-db.h | | | 39 | ++++++++++++++++++++++++- - - - - - - - - - - - - - - |
2 files changed, 176 insertions(+), 31 deletions(-)