core: service: Add start & end handle fields

System Internals / BlueZ - Arman Uguray [chromium.org] - 17 December 2014 07:11 UTC

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.

9eaab34 core: service: Add start & end handle fields
src/service.c | 38 ++++++++++++++++++++++++++++++++++++++
src/service.h | 7 +++++++
2 files changed, 45 insertions(+)

Upstream: git.kernel.org


  • Share