summaryrefslogtreecommitdiff
path: root/android/tester-bluetooth.c
diff options
context:
space:
mode:
authorJakub Tyszkowski <jakub.tyszkowski@tieto.com>2014-07-03 18:00:09 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-07-14 16:58:37 +0200
commit9cc44d5cd706cc3e56610d5d8df2d8abb9de9d53 (patch)
tree8ba041c644b6cc71476bbb19792a00957731baf7 /android/tester-bluetooth.c
parent364db6c20484f9f55816507a3e48512758061e8e (diff)
downloadbluez-9cc44d5cd706cc3e56610d5d8df2d8abb9de9d53.tar.gz
android/tester-ng: Add callback mechanism
This patch adds bt_cb_data to be used for passing callback data from asynchronous call to tester's main loop. As for now this struct contains only state but will be extended to handle various callbacks.
Diffstat (limited to 'android/tester-bluetooth.c')
-rw-r--r--android/tester-bluetooth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/tester-bluetooth.c b/android/tester-bluetooth.c
index 0f55d9e40..d9f26a8a5 100644
--- a/android/tester-bluetooth.c
+++ b/android/tester-bluetooth.c
@@ -35,6 +35,10 @@ static struct step bluetooth_enable_success_steps[] = {
.action_result.status = BT_STATUS_SUCCESS,
.action = bluetooth_enable_action,
},
+ {
+ .callback = CB_BT_ADAPTER_STATE_CHANGED,
+ .callback_result.state = BT_STATE_ON,
+ },
};
static struct test_case bluetooth_enable_success_tc = {
.step = bluetooth_enable_success_steps,