summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-07 09:10:47 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-07 09:14:53 +0200
commit552a2c8a9033ee17faf606b9b42989d179b2ec36 (patch)
treec6fce643469e6ce262f0010c144ae9ecf3bac8d6
parentefb63d91616d5587bf99efab80c85afd205fc1bd (diff)
-add missing helper
-rw-r--r--src/include/gnunet_testing_ng_lib.h13
1 files changed, 12 insertions, 1 deletions
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
@@ -271,6 +271,17 @@ 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
* the test case.
@@ -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);