diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-06-30 15:42:29 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-07-04 12:30:05 +0300 |
commit | 0f3f40bab5c746e8a06c7b2a4d4a4a7fdb99f6d8 (patch) | |
tree | d6c789b999c48cc20f903533cd62be9f232edcaf /tools/btgatt-client.c | |
parent | f59f3dedb2c79a75e51a3a0d27e2ae06fefc603e (diff) | |
download | bluez-0f3f40bab5c746e8a06c7b2a4d4a4a7fdb99f6d8.tar.gz |
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.
Diffstat (limited to 'tools/btgatt-client.c')
-rw-r--r-- | tools/btgatt-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index f97963ecc..51bc3629d 100644 --- a/tools/btgatt-client.c +++ b/tools/btgatt-client.c @@ -235,7 +235,7 @@ static struct client *client_create(int fd, uint16_t mtu) NULL); } - bt_gatt_client_set_ready_handler(cli->gatt, ready_cb, cli, NULL); + bt_gatt_client_ready_register(cli->gatt, ready_cb, cli, NULL); bt_gatt_client_set_service_changed(cli->gatt, service_changed_cb, cli, NULL); |