aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-21 18:46:18 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-21 18:49:47 +0100
commitd09beecc8f5f111538208b7b8da100e0a7015cda (patch)
tree7eff30b0adf7149b7c55feecdc4963e80a319814 /src/include
parent41cb8b4c513d8c5628f744b48bf4467b6cc66c81 (diff)
integrate sigpipe with ain loop
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_testing_lib.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/include/taler_testing_lib.h b/src/include/taler_testing_lib.h
index 949297713..8e1191685 100644
--- a/src/include/taler_testing_lib.h
+++ b/src/include/taler_testing_lib.h
@@ -162,6 +162,16 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_end (void);
+/**
+ * Wait until we receive SIGCHLD signal.
+ * Then obtain the process trait of the current
+ * command, wait on the the zombie and continue
+ * with the next command.
+ */
+void
+TALER_TESTING_wait_for_sigchld (struct TALER_TESTING_Interpreter *is);
+
+
void
TALER_TESTING_run (struct TALER_TESTING_Interpreter *is,
struct TALER_TESTING_Command *commands);
@@ -272,6 +282,28 @@ TALER_TESTING_get_trait_reserve_priv (const struct TALER_TESTING_Command *cmd,
struct TALER_ReservePrivateKeyP **reserve_priv);
+
+/**
+ * Obtain location where a command stores a pointer to a process
+ *
+ * @param cmd command to extract trait from
+ * @param selector which process to pick if @a cmd has multiple on offer
+ * @param coin_priv[out] set to address of the pointer to the process
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_TESTING_get_trait_process (const struct TALER_TESTING_Command *cmd,
+ const char *selector,
+ struct GNUNET_OS_Process ***processp);
+
+
+
+
+struct TALER_TESTING_Trait
+TALER_TESTING_make_trait_process (const char *selector,
+ struct GNUNET_OS_Process **processp);
+
+
/**
* @param selector
*/