Commit: 2c7cce38cebab13d176ed8cac9696e464e0ad94e
Parent: 5d96ef141c702d6fd8938983007f913aa1333f62
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-01-16 16:09:01
Tree: c5a8a04079323cb9d0c3acaf63254472b9175228

core/gatt: Use "claimed" instead of "active" Using the "active" state of a gatt-db service to mark a service as claimed by a profile somewhat abuses the API and has the additional side-effect of sending a service_removed event. This causes errors in the way btd_device manages profile/service lifetime. To fix this, this patch uses the new "claimed" state to mark a service as claimed. Also included is a minor fix to btd_gatt_client_* APIs that early return if the client is not yet ready.

Diffstat

M src/device.c | 7 +++++- -
M src/gatt-client.c | 9 ++++++- - -

2 files changed, 11 insertions(+), 5 deletions(-)

View Full Diff | Patch