shared/gatt-db: Add gatt_db_insert_service function

System Internals / BlueZ - Arman Uguray [chromium.org] - 28 November 2014 06:03 UTC

This patch adds the gatt_db_insert_service function which inserts a service with a pre-defined handle into the database if the desired handle range is available.

This is primarily meant to be used by gatt-client, since the handles in a client database need to perfectly match those returned from a remote server. This also allows client to handle "Service Changed" events in which a newly found service can be inserted at the correct location within the database.

dcfc3f5 shared/gatt-db: Add gatt_db_insert_service function
src/shared/gatt-db.c | 122 +++++++++++++++++++++++++++++++++++++++++++++-----
src/shared/gatt-db.h | 6 +++
2 files changed, 118 insertions(+), 10 deletions(-)

Upstream: git.kernel.org


  • Share