android/tester-ng: Add pin request and bond state callbacks

System Internals / BlueZ - Jakub Tyszkowski [tieto.com] - 21 July 2014 03:44 UTC

To fully verify data passed by these callbacks we reuse existing device properties verification mechanism. For this, callback argumenents are repacked to properties array for further verification. Those are verified against values passed to the callback step definition macro just like with any other definition of callback step in which we get device properties.

An alternative would be to extend 'bt_callback_data' struct and add new fields for bdaddr, name, class of device and other properties, that we get in callbacks as sepparate values and not as list of props.

69fc031 android/tester-ng: Add pin request and bond state callbacks
android/tester-main.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 75 insertions(+), 2 deletions(-)

Upstream: git.kernel.org


  • Share