Commit: b2792aee69f8b284b55b0171a64eecc51150eba1
Parent: 851476420b4a909d5ab1f3bc23e3769da72fc52e
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-01-12 20:11:05
Tree: e19bd81a3379922a7dc56220a75eba5d25dbd03e

shared/gatt-client: Make read/write cancelable The shared/gatt-client functions for initiating read/write procedures currently have no way to cancel them. The functions simple return a boolean result to indicate success/failure. This patch fixes this by returning a request id from these methods and adds the bt_gatt_cancel_* functions to cancel a request with one of these ids. bt_gatt_client internally manages its own set of request ids and maps them to the underlying ATT request id returned by bt_att_send to correctly cancel GATT procedures that span across multiple ATT protocol PDUs.

Diffstat

M src/shared/gatt-client.c | 298 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M src/shared/gatt-client.h | 14 +++++++++- - - - -

2 files changed, 244 insertions(+), 68 deletions(-)

View Full Diff | Patch