Diff between bc9e863b3a92608e47b2028f8da55c90d40ffbc0 and 82b8e31857f5c15cc191122a19da29aabe8f8d18

Changed Files

File Additions Deletions Status
emulator/bthost.c +12 -0 modified
emulator/bthost.h +2 -0 modified

Full Patch

diff --git a/emulator/bthost.c b/emulator/bthost.c
index 30a612e..59dde1e 100644
--- a/emulator/bthost.c
+++ b/emulator/bthost.c
@@ -604,6 +604,18 @@ void bthost_send_cid(struct bthost *bthost, uint16_t handle, uint16_t cid,
 	send_acl(bthost, handle, cid, data, len);
 }
 
+void bthost_send_cid_v(struct bthost *bthost, uint16_t handle, uint16_t cid,
+					const struct iovec *iov, int iovcnt)
+{
+	struct btconn *conn;
+
+	conn = bthost_find_conn(bthost, handle);
+	if (!conn)
+		return;
+
+	send_iov(bthost, handle, cid, iov, iovcnt);
+}
+
 bool bthost_l2cap_req(struct bthost *bthost, uint16_t handle, uint8_t code,
 				const void *data, uint16_t len,
 				bthost_l2cap_rsp_cb cb, void *user_data)
diff --git a/emulator/bthost.h b/emulator/bthost.h
index 9d75e2c..62d415c 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -64,6 +64,8 @@ void bthost_add_cid_hook(struct bthost *bthost, uint16_t handle, uint16_t cid,
 
 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);
 
 typedef void (*bthost_l2cap_rsp_cb) (uint8_t code, const void *data,
 						uint16_t len, void *user_data);