Diff between 9b43f1897656a465d46b56e779538fd95986e3fe and 8cd492986cce3fc84d2d9884bee0c14689bc2b1a

Changed Files

File Additions Deletions Status
android/tester-main.h +7 -7 modified

Full Patch

diff --git a/android/tester-main.h b/android/tester-main.h
index a5ed5b1..883ec4d 100644
--- a/android/tester-main.h
+++ b/android/tester-main.h
@@ -87,17 +87,17 @@
 		.callback_result.num_properties = prop_cnt, \
 	}
 
-#define CALLBACK_DEVICE_PROPS(props, prop_cnt) { \
-		.callback = CB_BT_REMOTE_DEVICE_PROPERTIES, \
+#define CALLBACK_PROPS(cb, props, prop_cnt) { \
+		.callback = cb, \
 		.callback_result.properties = props, \
 		.callback_result.num_properties = prop_cnt, \
 	}
 
-#define CALLBACK_DEVICE_FOUND(props, prop_cnt) { \
-		.callback = CB_BT_DEVICE_FOUND, \
-		.callback_result.properties = props, \
-		.callback_result.num_properties = prop_cnt, \
-	}
+#define CALLBACK_DEVICE_PROPS(props, prop_cnt) \
+	CALLBACK_PROPS(CB_BT_REMOTE_DEVICE_PROPERTIES, props, prop_cnt)
+
+#define CALLBACK_DEVICE_FOUND(props, prop_cnt) \
+	CALLBACK_PROPS(CB_BT_DEVICE_FOUND, props, prop_cnt)
 
 /*
  * NOTICE: