summaryrefslogtreecommitdiff
path: root/emulator/bthost.h
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-02-18 08:50:53 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-02-19 15:03:27 +0200
commite157b7f28edde6aa0a39b24252ad3b362807b72d (patch)
treebcd2ae3915f192c410cbce02b56a39c2a8fc4ac7 /emulator/bthost.h
parentbc0c9928cf99f256d1f7bcb0a95feeae7c9fcfb8 (diff)
downloadbluez-e157b7f28edde6aa0a39b24252ad3b362807b72d.tar.gz
emulator/bthost: Add function to send RFCOMM UIH frames from bthost
This will make RFCOMM UIH frame and fill with data passed by user. It also adds bthost internal tracking of RFCOMM connections to store cid and channel - user have to pass only conenction handle and channel.
Diffstat (limited to 'emulator/bthost.h')
-rw-r--r--emulator/bthost.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h
index e922f0be7..0d4594fec 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -108,6 +108,10 @@ void bthost_add_rfcomm_channel_hook(struct bthost *bthost, uint16_t handle,
bthost_rfcomm_channel_hook_func_t func,
void *user_data);
+void bthost_send_rfcomm_data(struct bthost *bthost, uint16_t handle,
+ uint8_t channel, const void *data,
+ uint16_t len);
+
void bthost_start(struct bthost *bthost);
void bthost_stop(struct bthost *bthost);