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-hidhost.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-hidhost.c')
-rw-r--r-- | android/tester-hidhost.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/android/tester-hidhost.c b/android/tester-hidhost.c index 917309251..8da5d32ac 100644 --- a/android/tester-hidhost.c +++ b/android/tester-hidhost.c @@ -135,16 +135,6 @@ static struct emu_l2cap_cid_data sdp_cid_data = { static struct emu_l2cap_cid_data ctrl_cid_data; static struct emu_l2cap_cid_data intr_cid_data; -static void hid_sdp_search_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 hid_prepare_reply_protocol_mode(struct emu_l2cap_cid_data *cid_data) { struct test_data *t_data = tester_get_data(); @@ -245,7 +235,7 @@ static void hid_intr_connect_cb(uint16_t handle, uint16_t cid, void *user_data) /* Emulate SDP (PSM = 1) */ static struct emu_set_l2cap_data l2cap_setup_sdp_data = { .psm = 1, - .func = hid_sdp_search_cb, + .func = tester_generic_connect_cb, .user_data = &sdp_cid_data, }; |