Parent: 833fa18c83ae8025f376dbe9eb8ac86fe65f15e6
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-02-02 13:27:52
Tree: 29d0a15ff7242376e058c6cda785f7d0a68d1538
core/gatt: Keep objects over disconnects This patch changes the way that the life-time for exported GATT API objects are managed, so that they are kept alive in the case of a disconnection if the devices are bonded. In this case, all API method calls return an error except for StartNotify/StopNotify. All notification sessions that were initiated during and in-between connections are maintained and a notification callback is registered for each session immediately on reconnection.
Diffstat
| M | src/device.c | | | 5 | +++++ |
| M | src/gatt-client.c | | | 222 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
2 files changed, 191 insertions(+), 36 deletions(-)