diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-11-25 14:40:03 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-11-25 14:40:03 +0100 |
commit | 5052698cbc6692c922e75081af12ad24bf8c3e69 (patch) | |
tree | 5564379f336afa2ec6a1656d1c26de98e6475fe4 /src/exchange-lib/testing_api_cmd_batch.c | |
parent | 55015a23328f7f1eac8002beb04665073a9e93c9 (diff) | |
download | exchange-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.c | 14 |
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]; +} |