From 1ddfaae362fb43c7a032e347d082ed8a5dc3575d Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Tue, 16 Feb 2010 12:11:16 +0000 Subject: [PATCH] api header changes --- src/include/gnunet_disk_lib.h | 8 ++++++++ src/include/gnunet_os_lib.h | 5 ++++- src/include/gnunet_testing_lib.h | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index fc5b9b5eb..f4ede1384 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h @@ -335,6 +335,14 @@ struct GNUNET_DISK_PipeHandle *GNUNET_DISK_pipe (int blocking); */ int GNUNET_DISK_pipe_close (struct GNUNET_DISK_PipeHandle *p); +/** + * Closes one half of an interprocess channel + * + * @param p pipe to close end of + * @param end which end of the pipe to close + */ +int +GNUNET_DISK_pipe_close_end (struct GNUNET_DISK_PipeHandle *p, enum GNUNET_DISK_PipeEnd end); /** * Close an open file. diff --git a/src/include/gnunet_os_lib.h b/src/include/gnunet_os_lib.h index 3bc6eb5f9..02d1063f7 100644 --- a/src/include/gnunet_os_lib.h +++ b/src/include/gnunet_os_lib.h @@ -189,11 +189,14 @@ int GNUNET_OS_set_process_priority (pid_t proc, /** * Start a process. * + * @param pipe_stdin pipe to use to send input to child process (or NULL) + * @param pipe_stdout pipe to use to get output from child process (or NULL) * @param filename name of the binary * @param ... NULL-terminated list of arguments to the process * @return process ID of the new process, -1 on error */ -pid_t GNUNET_OS_start_process (const char *filename, ...); +pid_t +GNUNET_OS_start_process (struct GNUNET_DISK_PipeHandle *pipe_stdin, struct GNUNET_DISK_PipeHandle *pipe_stdout, const char *filename, ...); /** diff --git a/src/include/gnunet_testing_lib.h b/src/include/gnunet_testing_lib.h index 13dbc7a9e..9d48f4887 100644 --- a/src/include/gnunet_testing_lib.h +++ b/src/include/gnunet_testing_lib.h @@ -409,6 +409,11 @@ enum GNUNET_TESTING_Topology */ GNUNET_TESTING_TOPOLOGY_SMALL_WORLD, + /** + * Small-world network (ring plus random links). + */ + GNUNET_TESTING_TOPOLOGY_SMALL_WORLD_RING, + /** * Ring topology. */ -- 2.25.1