Parent: 63df3a1c6483e030387d2e5699068258e7cac0ec
Author: Arman Uguray <armansito@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-08-15 10:52:33
Tree: 907ed4e7c5b4f71f11dd7c0be0fd3afae7ae7ff6
shared/att: Handle disconnects. This patch adds disconnect handling to bt_att, in which io_set_disconnect_handler is used to set up a handler which cancels all pending and queued ATT operations, marks the bt_att structure as invalid and notifies the user via a specialized callback which can be set using bt_att_set_disconnect_cb. Once the bt_att structure is invalidated, either due to a timed-out ATT protocol request/indication or a disconnect, it now destroys the underlying io structure.
Diffstat
| M | src/shared/att.c | | | 77 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - |
| M | src/shared/att.h | | | 5 | +++++ |
2 files changed, 67 insertions(+), 15 deletions(-)