Parent: 84af675f66297cfb1207aa9db5409000ef00d132
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-15 22:02:14
Tree: 397c0a40bfeacc55cb0886d2b205a022ff57d581
core/device: Use shared/gatt-client for GATT This patch changes the GATT service discovery code path with the following: - As part for device_attach_attrib, a bt_gatt_client structure is created that performs MTU exchange and service discovery, caches the services in an internal list, and handles the remote GATT service. - The device_browse_primary code path obtains service information by iterating through bt_gatt_client's services, instead of directly initiating primary and secondary service discovery using attrib/gatt. If the bt_gatt_client isn't ready at the time, the code defers registration of services and profile probing until the ready handler is called. - The attio connected callbacks are invoked from bt_gatt_client's ready handler instead of device_attach_attrib.
Diffstat
| M | src/device.c | | | 305 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| M | src/shared/att-types.h | | | 3 | ++- |
2 files changed, 163 insertions(+), 145 deletions(-)