Parent: 06d8b53447f19d42e81e38e2c640d27532625b35
Author: Arman Uguray <armansito@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-12-17 15:11:38
Tree: e283ed08f63dcaa053a309ef8d265066ad93705f
core: service: Add start & end handle fields When GATT services are discovered, added, and removed, profiles will be notified using btd_profile device_probe and device_remove functions. Since a single profile may handle multiple services from the same device, it is useful to distinguish each btd_service by its service handle range. This patch adds the start_handle and end_handle fields to btd_service and an accessor for getting them, which reports failure if the service was initialized without handles.
Diffstat
| M | src/service.c | | | 38 | ++++++++++++++++++++++++++++++++++++++ |
| M | src/service.h | | | 7 | +++++++ |
2 files changed, 45 insertions(+), 0 deletions(-)