diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-22 14:54:41 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-08-22 14:59:26 -0700 |
commit | 5bf220eb3b86e3d162b1b926c529a975821b6a02 (patch) | |
tree | 4745aea7a3f4ffbaf1631458f61b4ea912316756 /tools | |
parent | 4999f80c1f56774b5511cf16b38600d016ed892b (diff) | |
download | bluez-5bf220eb3b86e3d162b1b926c529a975821b6a02.tar.gz |
bthost: Add destroy callback to bthost_add_iso_hook
This adds a destroy callback to bthost_add_iso_hook so its user can
detect when the hook is freed when the connection is disconnected.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/iso-tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iso-tester.c b/tools/iso-tester.c index 5727f3055..8c935b922 100644 --- a/tools/iso-tester.c +++ b/tools/iso-tester.c @@ -1137,7 +1137,7 @@ static void iso_send(struct test_data *data, GIOChannel *io) tester_print("Writing %zu bytes of data", isodata->send->iov_len); host = hciemu_client_get_host(data->hciemu); - bthost_add_iso_hook(host, data->handle, bthost_recv_data, data); + bthost_add_iso_hook(host, data->handle, bthost_recv_data, data, NULL); ret = writev(sk, isodata->send, 1); if (ret < 0 || isodata->send->iov_len != (size_t) ret) { |