From 5052698cbc6692c922e75081af12ad24bf8c3e69 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Nov 2018 14:40:03 +0100 Subject: getting test_auditor_api to pass --- src/exchange-lib/testing_api_cmd_batch.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/exchange-lib/testing_api_cmd_batch.c') 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]; +} -- cgit v1.2.3