aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_batch.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-25 14:40:03 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-25 14:40:03 +0100
commit5052698cbc6692c922e75081af12ad24bf8c3e69 (patch)
tree5564379f336afa2ec6a1656d1c26de98e6475fe4 /src/exchange-lib/testing_api_cmd_batch.c
parent55015a23328f7f1eac8002beb04665073a9e93c9 (diff)
downloadexchange-5052698cbc6692c922e75081af12ad24bf8c3e69.tar.xz
getting test_auditor_api to pass
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c
index 582bea7c8..5269d0b8b 100644
--- a/src/exchange-lib/testing_api_cmd_batch.c
+++ b/src/exchange-lib/testing_api_cmd_batch.c
@@ -189,3 +189,17 @@ TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd)
{
return cmd->run == &batch_run;
}
+
+
+/**
+ * Obtain what command the batch is at.
+ *
+ * @return cmd current batch command
+ */
+struct TALER_TESTING_Command *
+TALER_TESTING_cmd_batch_get_current (const struct TALER_TESTING_Command *cmd)
+{
+ struct BatchState *bs = cmd->cls;
+
+ return &bs->batch[bs->batch_ip];
+}