shared/gatt-db: Add UUID arg to foreach_service

System Internals / BlueZ - Arman Uguray [chromium.org] - 9 December 2014 06:49 UTC

This patch adds the "uuid" argument to gatt_db_foreach_service, which invokes the callback for a service only if "uuid" is NULL or if it matches the GATT service UUID.

20dd67f shared/gatt-db: Add UUID arg to foreach_service
src/shared/gatt-db.c | 19 ++++++++++++++++---
src/shared/gatt-db.h | 6 ++++--
tools/btgatt-client.c | 9 ++++-----
tools/btgatt-server.c | 2 +-
unit/test-gatt.c | 4 ++--
5 files changed, 27 insertions(+), 13 deletions(-)

Upstream: git.kernel.org


  • Share