Commit: dcfc3f5602350581676921b377fdc63a0ec1e5c4
Parent: 28e66d9b31bf40efad1b08f56559d53df23b0060
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-11-28 14:03:22
Tree: 771e4234dd06e04e05f373ab74bc2581b4ff872b

shared/gatt-db: Add gatt_db_insert_service function 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.

Diffstat

M src/shared/gatt-db.c | 122 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - -
M src/shared/gatt-db.h | 6 ++++++

2 files changed, 118 insertions(+), 10 deletions(-)

View Full Diff | Patch