Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcin Kraglak <marcin.kraglak@tieto.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCHv2 1/8] android/tester: Simplify ACTION_FAIL and ACTION_SUCCESS defines
Date: Tue,  2 Sep 2014 14:04:24 +0200	[thread overview]
Message-ID: <1409659471-25171-2-git-send-email-marcin.kraglak@tieto.com> (raw)
In-Reply-To: <1409659471-25171-1-git-send-email-marcin.kraglak@tieto.com>

---
 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


  reply	other threads:[~2014-09-02 12:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 12:04 [PATCHv2 0/8] Android tester GATT test cases Marcin Kraglak
2014-09-02 12:04 ` Marcin Kraglak [this message]
2014-09-02 12:04 ` [PATCHv2 2/8] android/tester: Add function to set default ssp handler Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 3/8] android/tester: Add support for search services callbacks Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 4/8] android/tester: Add GATT Client Search Service test case Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 5/8] android/tester: Add GATT Search Service 2 " Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 6/8] android/tester: Add negative GATT Search Service test Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 7/8] android/tester: Add support for get_characteristic_cb() Marcin Kraglak
2014-09-02 12:04 ` [PATCHv2 8/8] android/tester: Add GATT get_characteristic test Marcin Kraglak
2014-09-02 15:54 ` [PATCHv2 0/8] Android tester GATT test cases Szymon Janc
  -- strict thread matches above, loose matches on Subject: below --
2014-08-29  8:26 Marcin Kraglak
2014-08-29  8:26 ` [PATCHv2 1/8] android/tester: Simplify ACTION_FAIl and ACTION_SUCCESS defines Marcin Kraglak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1409659471-25171-2-git-send-email-marcin.kraglak@tieto.com \
    --to=marcin.kraglak@tieto.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox