diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-03-04 17:22:27 -0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2022-03-07 17:21:56 -0800 |
commit | a473a5a47c4f65b6568a1650ec9e20c1072c14e9 (patch) | |
tree | 10cf3d0946e663e2729f596bf524c202ed4272d7 /emulator/bthost.h | |
parent | 9cbc6fc1b20d7180921cfd9d7344746fde0e84ba (diff) | |
download | bluez-a473a5a47c4f65b6568a1650ec9e20c1072c14e9.tar.gz |
bthost: Add support for BT_H4_ISO_PKT
This adds sending and receiving BT_H4_ISO_PKT packets.
Diffstat (limited to 'emulator/bthost.h')
-rw-r--r-- | emulator/bthost.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h index 868af5469..f597d7596 100644 --- a/emulator/bthost.h +++ b/emulator/bthost.h @@ -47,6 +47,9 @@ typedef void (*bthost_new_conn_cb) (uint16_t handle, void *user_data); void bthost_set_connect_cb(struct bthost *bthost, bthost_new_conn_cb cb, void *user_data); +void bthost_set_iso_cb(struct bthost *bthost, bthost_new_conn_cb cb, + void *user_data); + void bthost_hci_connect(struct bthost *bthost, const uint8_t *bdaddr, uint8_t addr_type); @@ -62,10 +65,18 @@ typedef void (*bthost_cid_hook_func_t)(const void *data, uint16_t len, void bthost_add_cid_hook(struct bthost *bthost, uint16_t handle, uint16_t cid, bthost_cid_hook_func_t func, void *user_data); +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); + void bthost_send_cid(struct bthost *bthost, uint16_t handle, uint16_t cid, const void *data, uint16_t len); void bthost_send_cid_v(struct bthost *bthost, uint16_t handle, uint16_t cid, const struct iovec *iov, int iovcnt); +void bthost_send_iso(struct bthost *bthost, uint16_t handle, + const struct iovec *iov, int iovcnt); typedef void (*bthost_l2cap_rsp_cb) (uint8_t code, const void *data, uint16_t len, void *user_data); |