diff options
author | Jakub Tyszkowski <jakub.tyszkowski@tieto.com> | 2014-10-02 10:11:01 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-02 14:20:50 +0300 |
commit | 88adaba587bc53c795a2bebab95058f804412ab4 (patch) | |
tree | 20d3befef50efbcb82e50a1a381929d022bc140d /android/tester-main.c | |
parent | a75a5815ea4dfd6bc1564a9ca722a25383388fb1 (diff) | |
download | bluez-88adaba587bc53c795a2bebab95058f804412ab4.tar.gz |
android/tester: Use generic connect callback for simple cases
This is usefull when no custom behavior and just simple pdu exchange
is needed.
Diffstat (limited to 'android/tester-main.c')
-rw-r--r-- | android/tester-main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/tester-main.c b/android/tester-main.c index 5ef0401ae..5517973c4 100644 --- a/android/tester-main.c +++ b/android/tester-main.c @@ -2188,6 +2188,16 @@ void tester_handle_l2cap_data_exchange(struct emu_l2cap_cid_data *cid_data) emu_generic_cid_hook_cb, cid_data); } +void tester_generic_connect_cb(uint16_t handle, uint16_t cid, void *user_data) +{ + struct emu_l2cap_cid_data *cid_data = user_data; + + cid_data->handle = handle; + cid_data->cid = cid; + + tester_handle_l2cap_data_exchange(cid_data); +} + static void rfcomm_connect_cb(uint16_t handle, uint16_t cid, void *user_data, bool status) { |