--- android/tester-main.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/android/tester-main.h b/android/tester-main.h index 77f7660..171dbee 100644 --- a/android/tester-main.h +++ b/android/tester-main.h @@ -68,24 +68,18 @@ (struct step[]) {__VA_ARGS__}, \ } -#define ACTION_SUCCESS(act_fun, data_set) { \ - .action_status = BT_STATUS_SUCCESS, \ - .action = act_fun, \ - .set_data = data_set, \ - } - -#define ACTION_FAIL(act_fun, data_set) { \ - .action_status = BT_STATUS_FAIL, \ - .action = act_fun, \ - .set_data = data_set, \ - } - #define ACTION(status, act_fun, data_set) { \ .action_status = status, \ .action = act_fun, \ .set_data = data_set, \ } +#define ACTION_FAIL(act_fun, data_set) \ + ACTION(BT_STATUS_FAIL, act_fun, data_set) + +#define ACTION_SUCCESS(act_fun, data_set) \ + ACTION(BT_STATUS_SUCCESS, act_fun, data_set) + #define CALLBACK(cb) { \ .callback = cb, \ } -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html