From 29c3012bc5d2c78df47fbc0678b9a6c59d1bb352 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Tue, 6 May 2014 21:20:53 +0000 Subject: [PATCH] make get_gatt_client_context_for_handle public for daemon --- ble/gatt_client.c | 2 +- ble/gatt_client.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ble/gatt_client.c b/ble/gatt_client.c index ee0ab3b8e..2efa0f655 100644 --- a/ble/gatt_client.c +++ b/ble/gatt_client.c @@ -578,7 +578,7 @@ static int is_value_valid(gatt_client_t *peripheral, uint8_t *packet, uint16_t s } -static gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle){ +gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle){ linked_item_t *it; for (it = (linked_item_t *) gatt_client_connections; it ; it = it->next){ gatt_client_t * peripheral = (gatt_client_t *) it; diff --git a/ble/gatt_client.h b/ble/gatt_client.h index cb3eb2c33..a947d28ac 100644 --- a/ble/gatt_client.h +++ b/ble/gatt_client.h @@ -213,6 +213,7 @@ void gatt_packet_handler(void * connection, uint8_t packet_type, uint16_t channe // start/stop gatt client void gatt_client_start(gatt_client_t *context, uint16_t handle); void gatt_client_stop(gatt_client_t *context); +gatt_client_t * get_gatt_client_context_for_handle(uint16_t handle); // returns primary services le_command_status_t gatt_client_discover_primary_services(gatt_client_t *context);