core/gatt: Make CCC addition API public

System Internals / BlueZ - Arman Uguray [chromium.org] - 4 March 2015 11:54 UTC

This patch adds the btd_gatt_database_add_ccc function to the database's public API. The signature has been extended to accept a callback that gets invoked to notify the upper layer when a CCC write is performed. The result is cached by the database on a per-device basis while the callback is invoked for all writes from all devices.

e1b77c8 core/gatt: Make CCC addition API public
src/gatt-database.c | 129 ++++++++++++++++++++++++++++++++++++++++++++-------
src/gatt-database.h | 11 +++++
2 files changed, 124 insertions(+), 16 deletions(-)

Upstream: git.kernel.org


  • Share