Commit: 97719697b1e2b7bd606e6fb822b294ef2a68ad2f
Parent: 8e97aeb5451ccb33803742bb639d5af7942b7b8a
Author: Arman Uguray <armansito@chromium.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-09-24 10:54:43
Tree: 7d671469ec05636980912d2e48729b4052794c75

shared/gatt-client: Make service discovery more modular. This patch makes the existing service discovery procedures more modular by making the following changes: - Don't accumulate the discovery results in struct bt_gatt_client's internal service list. Instead, accumulate them inside struct discovery_op and assign them to bt_gatt_client during completion. - Add a completion callback to struct discovery_op which gets called at the end of a discovery operation. This allows discovery ops triggered for different reasons (e.g. init vs "Service Changed") to process discovery results separately.

Diffstat

M src/shared/gatt-client.c | 80 ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

1 files changed, 49 insertions(+), 31 deletions(-)

View Full Diff | Patch