batch CMD skeleton + include defs.

This commit is contained in:
Marcello Stanisci 2018-06-20 11:20:48 +02:00
parent 61fecfcd6f
commit 1d83e01320
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 17 additions and 0 deletions

View File

@ -54,6 +54,7 @@ libtalertesting_la_SOURCES = \
testing_api_cmd_payback.c \ testing_api_cmd_payback.c \
testing_api_cmd_signal.c \ testing_api_cmd_signal.c \
testing_api_cmd_check_keys.c \ testing_api_cmd_check_keys.c \
testing_api_cmd_batch.c \
testing_api_helpers.c \ testing_api_helpers.c \
testing_api_loop.c \ testing_api_loop.c \
testing_api_traits.c \ testing_api_traits.c \

View File

@ -1806,4 +1806,20 @@ TALER_TESTING_get_trait_rejected
unsigned int index, unsigned int index,
const char **rejected_reference); 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 #endif