Return-Path: From: Marcin Kraglak To: linux-bluetooth@vger.kernel.org Subject: [PATCH 1/2] android/tester: Simplify ACTION_FAIl and ACTION_SUCCESS defines Date: Tue, 26 Aug 2014 15:14:06 +0200 Message-Id: <1409058847-3125-1-git-send-email-marcin.kraglak@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: --- 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 ad87878..b76ae2e 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