summaryrefslogtreecommitdiff
path: root/android/tester-main.h
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2014-10-03 10:44:50 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-10-06 12:41:27 +0200
commit4cc5eabb958c96f16a021b39b9c9ff3388a33791 (patch)
tree24f377084975f90bcb78c92964da2f0a7334c2de /android/tester-main.h
parentc7a361134d93f755421a2e737e008b5e1702a6dc (diff)
downloadbluez-4cc5eabb958c96f16a021b39b9c9ff3388a33791.tar.gz
android/tester: Add GATT server connect successful test case
It will connect to powered on and visible device.
Diffstat (limited to 'android/tester-main.h')
-rw-r--r--android/tester-main.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/android/tester-main.h b/android/tester-main.h
index c02b3724c..a34358973 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -243,6 +243,15 @@ struct pdu_set {
.callback_result.gatt_app_id = cb_client_id, \
}
+#define CALLBACK_GATTS_CONNECTION(cb_res, cb_prop, cb_conn_id, cb_server_id) { \
+ .callback = CB_GATTS_CONNECTION, \
+ .callback_result.connected = cb_res, \
+ .callback_result.properties = cb_prop, \
+ .callback_result.num_properties = 1, \
+ .callback_result.conn_id = cb_conn_id, \
+ .callback_result.gatt_app_id = cb_server_id, \
+ }
+
#define CALLBACK_PAN_CTRL_STATE(cb, cb_res, cb_state, cb_local_role) { \
.callback = cb, \
.callback_result.status = cb_res, \
@@ -484,6 +493,7 @@ struct bt_callback_data {
int gatt_app_id;
int conn_id;
+ int connected;
btgatt_srvc_id_t *service;
btgatt_gatt_id_t *characteristic;
btgatt_gatt_id_t *descriptor;