OSDN Git Service

emulator/bthost: Add bthost_send_cid_v
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 30 Sep 2014 13:45:51 +0000 (16:45 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 30 Sep 2014 14:26:49 +0000 (17:26 +0300)
emulator/bthost.c
emulator/bthost.h

index 30a612e..59dde1e 100644 (file)
@@ -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)
index 9d75e2c..62d415c 100644 (file)
@@ -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);