gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 02/05: batch CMD skeleton + include defs.


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 02/05: batch CMD skeleton + include defs.
Date: Wed, 20 Jun 2018 22:20:56 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

commit 1d83e013200dd7a18afe95e7b3d21be9d7daddb9
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jun 20 11:20:48 2018 +0200

    batch CMD skeleton + include defs.
---
 src/exchange-lib/Makefile.am    |  1 +
 src/include/taler_testing_lib.h | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/src/exchange-lib/Makefile.am b/src/exchange-lib/Makefile.am
index 57c9350..0bb1957 100644
--- a/src/exchange-lib/Makefile.am
+++ b/src/exchange-lib/Makefile.am
@@ -54,6 +54,7 @@ libtalertesting_la_SOURCES = \
   testing_api_cmd_payback.c \
   testing_api_cmd_signal.c \
   testing_api_cmd_check_keys.c \
+  testing_api_cmd_batch.c \
   testing_api_helpers.c \
   testing_api_loop.c \
   testing_api_traits.c \
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 57e2f0d..4cfb25a 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -1806,4 +1806,20 @@ TALER_TESTING_get_trait_rejected
    unsigned int index,
    const char **rejected_reference);
 
+
+/**
+ * Create a "batch" command.  Such command takes a
+ * end_CMD-terminated array of CMDs and executed them.
+ * Once it hits the end CMD, it passes the control
+ * to the next top-level CMD, regardless of it being
+ * another batch or ordinary CMD.
+ *
+ * @param label the command label.
+ * @param batch array of CMDs to execute.
+ *
+ * @return the command.
+ */
+struct TALER_TESTING_Command
+TALER_TESTING_cmd_batch (const char *label,
+                         struct TALER_TESTING_Command *batch);
 #endif

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]