[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-bluetooth
Subject: [PATCH BlueZ 3/3] emulator/bthost: Add bthost_send_cid_v
From: Luiz Augusto von Dentz <luiz.dentz () gmail ! com>
Date: 2014-09-30 14:19:55
Message-ID: 1412086795-25000-3-git-send-email-luiz.dentz () gmail ! com
[Download RAW message or body]
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
emulator/bthost.c | 12 ++++++++++++
emulator/bthost.h | 2 ++
2 files changed, 14 insertions(+)
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);
--
1.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic