diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-18 13:57:47 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-18 13:58:42 +0100 |
commit | 0b4008bd84f9812eac943e616a4584a0f9b23ae1 (patch) | |
tree | 4af665fff668f78091e21a9cd89a1454a562018e /src/lib/testing_api_cmd_batch.c | |
parent | 4993863c4cc7e7758f8532ea90253cc60c3358fa (diff) | |
download | exchange-0b4008bd84f9812eac943e616a4584a0f9b23ae1.tar.xz |
doxygen
Diffstat (limited to 'src/lib/testing_api_cmd_batch.c')
-rw-r--r-- | src/lib/testing_api_cmd_batch.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/src/lib/testing_api_cmd_batch.c b/src/lib/testing_api_cmd_batch.c index c0e5b3af9..6d3c86ec0 100644 --- a/src/lib/testing_api_cmd_batch.c +++ b/src/lib/testing_api_cmd_batch.c @@ -105,7 +105,7 @@ batch_cleanup (void *cls, * Offer internal data from a "batch" CMD, to other commands. * * @param cls closure. - * @param ret[out] result. + * @param[out] ret result. * @param trait name of the trait. * @param index index number of the object to offer. * @return #GNUNET_OK on success. @@ -168,16 +168,17 @@ TALER_TESTING_cmd_batch (const char *label, memcpy (bs->batch, batch, sizeof (struct TALER_TESTING_Command) * i); - - struct TALER_TESTING_Command cmd = { - .cls = bs, - .label = label, - .run = &batch_run, - .cleanup = &batch_cleanup, - .traits = &batch_traits - }; - - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = bs, + .label = label, + .run = &batch_run, + .cleanup = &batch_cleanup, + .traits = &batch_traits + }; + + return cmd; + } } @@ -187,8 +188,7 @@ TALER_TESTING_cmd_batch (const char *label, * @param is interpreter state. */ void -TALER_TESTING_cmd_batch_next - (struct TALER_TESTING_Interpreter *is) +TALER_TESTING_cmd_batch_next (struct TALER_TESTING_Interpreter *is) { struct BatchState *bs = is->commands[is->ip].cls; @@ -208,8 +208,7 @@ TALER_TESTING_cmd_batch_next * @return false if not, true if it is a batch command */ int -TALER_TESTING_cmd_is_batch - (const struct TALER_TESTING_Command *cmd) +TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd) { return cmd->run == &batch_run; } @@ -221,8 +220,7 @@ TALER_TESTING_cmd_is_batch * @return cmd current batch command */ struct TALER_TESTING_Command * -TALER_TESTING_cmd_batch_get_current - (const struct TALER_TESTING_Command *cmd) +TALER_TESTING_cmd_batch_get_current (const struct TALER_TESTING_Command *cmd) { struct BatchState *bs = cmd->cls; |