From 0f3f40bab5c746e8a06c7b2a4d4a4a7fdb99f6d8 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 30 Jun 2017 15:42:29 +0300 Subject: shared/gatt-client: Allow multiple ready callbacks This makes the ready callbacks much more convenient to track when the client is ready since its is now possible to notify more than on client at the same time. --- unit/test-gatt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unit') diff --git a/unit/test-gatt.c b/unit/test-gatt.c index 15638dc89..5d79e94c0 100644 --- a/unit/test-gatt.c +++ b/unit/test-gatt.c @@ -684,8 +684,8 @@ static struct context *create_context(uint16_t mtu, gconstpointer data) bt_gatt_client_set_debug(context->client, print_debug, "bt_gatt_client:", NULL); - bt_gatt_client_set_ready_handler(context->client, - client_ready_cb, context, NULL); + bt_gatt_client_ready_register(context->client, client_ready_cb, + context, NULL); break; default: break; -- cgit v1.2.1