summaryrefslogtreecommitdiff
path: root/emulator/bthost.h
diff options
context:
space:
mode:
authorMarcin Kraglak <marcin.kraglak@tieto.com>2014-01-10 10:18:24 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2014-01-16 12:23:15 +0200
commit90fd2a2f98258749ae105c519c18e686b597ef8f (patch)
tree7af1039237ad8e4530c7ef405dece66724d48ee4 /emulator/bthost.h
parent96283b9a5b65ada7e4c34111dc87776b07dbc117 (diff)
downloadbluez-90fd2a2f98258749ae105c519c18e686b597ef8f.tar.gz
emulator/bthost: Implement bthost_connect_rfcomm
This method will start L2CAP connection on RFCOMM PSM and continue connecting to rfcomm server. User can specify callback to be called after connection.
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 50185a2f2..93e02468b 100644
--- a/emulator/bthost.h
+++ b/emulator/bthost.h
@@ -96,5 +96,9 @@ typedef void (*bthost_rfcomm_connect_cb) (uint16_t handle, uint16_t cid,
void bthost_add_rfcomm_server(struct bthost *bthost, uint8_t channel,
bthost_rfcomm_connect_cb func, void *user_data);
+bool bthost_connect_rfcomm(struct bthost *bthost, uint16_t handle,
+ uint8_t channel, bthost_rfcomm_connect_cb func,
+ void *user_data);
+
void bthost_start(struct bthost *bthost);
void bthost_stop(struct bthost *bthost);