From 552a2c8a9033ee17faf606b9b42989d179b2ec36 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 7 Apr 2021 09:10:47 +0200 Subject: -add missing helper --- src/include/gnunet_testing_ng_lib.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/include/gnunet_testing_ng_lib.h') diff --git a/src/include/gnunet_testing_ng_lib.h b/src/include/gnunet_testing_ng_lib.h index 951158ca4..0bc516614 100644 --- a/src/include/gnunet_testing_ng_lib.h +++ b/src/include/gnunet_testing_ng_lib.h @@ -270,6 +270,17 @@ struct GNUNET_TESTING_Command GNUNET_TESTING_cmd_end (void); +/** + * Turn synchronous command into asynchronous command. + * + * @param cmd command to make synchronous. + * @return a finish-command. + */ +// SUGGESTION (NEW!) +const struct GNUNET_TESTING_Command +TALER_TESTING_cmd_make_asynchronous (const struct GNUNET_TESTING_Command cmd); + + /** * Create (synchronous) command that waits for another command to finish. * If @a cmd_ref did not finish after @a timeout, this command will fail @@ -282,7 +293,7 @@ GNUNET_TESTING_cmd_end (void); * @return a finish-command. */ // SUGGESTION (NEW!) -const struct GNUNET_TESTING_Command * +const struct GNUNET_TESTING_Command TALER_TESTING_cmd_finish (const char *finish_label, const char *cmd_ref, struct GNUNET_TIME_Relative timeout); -- cgit v1.2.3