Parent: ff189f01da8dd4d6f824002eddf0f4fd4d5ed1b1
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-02-02 12:55:06
Tree: 08f7ea9a4a9cbe05ab74c7bcdb73e4e0892e76c0
shared/gatt: Make register_notify cancellable This patch makes CCC writes via bt_gatt_client_register_notify cancellable. The following changes have been introduced: 1. bt_gatt_client_register_notify now returns the id immediately instead of returning it in a callback. The callback is still used to communicate ATT protocol errors. 2. A notify callback is immediately registered, so that if the remote end sends any ATT notifications/indications, the caller will start receiving them right away.
Diffstat
| M | src/shared/gatt-client.c | | | 129 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | src/shared/gatt-client.h | | | 7 | +++- - - - |
| M | tools/btgatt-client.c | | | 17 | ++++++++++- - - - - - - |
3 files changed, 91 insertions(+), 62 deletions(-)