Parent: 0986ba25f3e2b92697ef6e99871fbf39c3bd1c6f
Author: Arman Uguray <armansito@chromium.org>
Committer: Arman Uguray <armansito@chromium.org>
Date: 2015-02-28 05:58:50
Tree: c1591e7b9afe6a7d94eaf3488676205868eddbf2
shared/gatt: Make discovery operations cancelable This patch makes discovery operations cancelable by exposing the internal discovery op structure as bt_gatt_async_req. This structure keeps track of the ATT request ids of discovery procedures that occur over multiple ATT protocol requests. Users can cancel an ongoing request by calling bt_gatt_async_req_cancel. Each discovery helper function returns a pointer to the structure with one addition reference count assigned to the caller, so the caller is responsible for cleaning up the memory by calling bt_gatt_async_req_unref.
Diffstat
| M | src/shared/gatt-helpers.c | | | 252 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | src/shared/gatt-helpers.h | | | 37 | +++++++++++++++++++++++- - - - - - - - - - - - - - |
2 files changed, 167 insertions(+), 122 deletions(-)