diff options
author | Marcin Kraglak <marcin.kraglak@tieto.com> | 2014-02-18 08:50:50 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-02-19 15:00:20 +0200 |
commit | f5e82813af7b78ac1004f84945b1977a0c5c9a77 (patch) | |
tree | f2996fab7d1ae66500b9beca5a121c4d09a3680c /emulator/bthost.h | |
parent | 011afd57f24b9e1895da8572f9ef651b605c19e6 (diff) | |
download | bluez-f5e82813af7b78ac1004f84945b1977a0c5c9a77.tar.gz |
emulator/bthost: Add api to handle RFCOMM data on bthost
With this change user can handle data received on RFCOMM connection.
Diffstat (limited to 'emulator/bthost.h')
-rw-r--r-- | emulator/bthost.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/emulator/bthost.h b/emulator/bthost.h index a3c26a161..e922f0be7 100644 --- a/emulator/bthost.h +++ b/emulator/bthost.h @@ -99,6 +99,15 @@ bool bthost_connect_rfcomm(struct bthost *bthost, uint16_t handle, uint8_t channel, bthost_rfcomm_connect_cb func, void *user_data); +typedef void (*bthost_rfcomm_channel_hook_func_t) (const void *data, + uint16_t len, + void *user_data); + +void bthost_add_rfcomm_channel_hook(struct bthost *bthost, uint16_t handle, + uint8_t channel, + bthost_rfcomm_channel_hook_func_t func, + void *user_data); + void bthost_start(struct bthost *bthost); void bthost_stop(struct bthost *bthost); |