summaryrefslogtreecommitdiff
path: root/emulator/bthost.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-08-22 14:54:41 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-08-22 14:59:26 -0700
commit5bf220eb3b86e3d162b1b926c529a975821b6a02 (patch)
tree4745aea7a3f4ffbaf1631458f61b4ea912316756 /emulator/bthost.h
parent4999f80c1f56774b5511cf16b38600d016ed892b (diff)
downloadbluez-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 'emulator/bthost.h')
-rw-r--r--emulator/bthost.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h
index 3d7a124f0..2cfdef766 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -71,7 +71,8 @@ typedef void (*bthost_iso_hook_func_t)(const void *data, uint16_t len,
void *user_data);
void bthost_add_iso_hook(struct bthost *bthost, uint16_t handle,
- bthost_iso_hook_func_t func, void *user_data);
+ bthost_iso_hook_func_t func, void *user_data,
+ bthost_destroy_func_t destroy);
void bthost_send_cid(struct bthost *bthost, uint16_t handle, uint16_t cid,
const void *data, uint16_t len);