diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2013-12-19 15:29:00 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2013-12-20 09:32:16 +0200 |
commit | 75c50937fe373955c271866665d8d4201baa59f9 (patch) | |
tree | 197be63b1c9d65124975f98fda75992ddc7ef67e /emulator/bthost.h | |
parent | 6b0038ef5588fc0160ea44fbf57a4064d25bb4bc (diff) | |
download | bluez-75c50937fe373955c271866665d8d4201baa59f9.tar.gz |
emulator: Add new method for adding l2cap server
This method allow user to add l2cap server and register
connect callback. If no callback is specified, it will behave
like bthost_set_server_psm() method.
Diffstat (limited to 'emulator/bthost.h')
-rw-r--r-- | emulator/bthost.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h index 474ada919..2b8f21207 100644 --- a/emulator/bthost.h +++ b/emulator/bthost.h @@ -74,8 +74,13 @@ void bthost_set_adv_enable(struct bthost *bthost, uint8_t enable); void bthost_le_start_encrypt(struct bthost *bthost, uint16_t handle, const uint8_t ltk[16]); +typedef void (*bthost_l2cap_connect_cb) (uint16_t handle, uint16_t cid, + void *user_data); void bthost_set_server_psm(struct bthost *bthost, uint16_t psm); +void bthost_add_l2cap_server(struct bthost *bthost, uint16_t psm, + bthost_l2cap_connect_cb func, void *user_data); + void bthost_start(struct bthost *bthost); void bthost_stop(struct bthost *bthost); |