mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
make get_gatt_client_context_for_handle public for daemon
This commit is contained in:
parent
108ff69ffd
commit
29c3012bc5
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user