Commit: 634101d2a56ec02e311951ea77a032903f96080f
Parent: b7d3beaaa7fdf66b76d3473da57fcc58ce937abb
Author: Jakub Tyszkowski <jakub.tyszkowski@tieto.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2014-10-02 14:20:49
Tree: 9fe0e6ac633a5a906f6b6e272b3888931dce3299

android/tester: Add generic hook to handle pdu exchange This allows tester-main to register hooks for certain CID to automatically perform pdu exchange by registering array of pdu pairs (request_pdu, response_pdu). When end_pdu is used instead of request_pdu, response is sent immediately without incoming pdu verification. A pair with end_pdus set as request and response is considered as the end of pdu pairs array. This callback can also handle sdp request<->response while transaction ID for the response is swaped to match the one from SDP request. 'emu_l2cap_cid_data' is used to pass tha appropriate data to the hook mechanism. It is similar to 'emu_cid_data" used in other testers and eventually will replace those.

Diffstat

M android/tester-main.c | 61 ++++++++++++++++++++++++++++++++++++++++
M android/tester-main.h | 10 ++++++++++

2 files changed, 71 insertions(+), 0 deletions(-)

View Full Diff | Patch