aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_helper_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-08-29 13:09:25 +0000
committerChristian Grothoff <christian@grothoff.org>2012-08-29 13:09:25 +0000
commita4b74ef335873379d374d372bcce7c4228095bd5 (patch)
tree7948e9ea9d8f3fc9d2d767fd2490c8a1855d1129 /src/include/gnunet_helper_lib.h
parent19a28dc192c59da09b2668c33fbbcce421f5a05d (diff)
downloadgnunet-a4b74ef335873379d374d372bcce7c4228095bd5.tar.gz
gnunet-a4b74ef335873379d374d372bcce7c4228095bd5.zip
only use control pipe with helpers IF the helper actually supports it
Diffstat (limited to 'src/include/gnunet_helper_lib.h')
-rw-r--r--src/include/gnunet_helper_lib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/gnunet_helper_lib.h b/src/include/gnunet_helper_lib.h
index 12a4d3fe1..7f43f1a64 100644
--- a/src/include/gnunet_helper_lib.h
+++ b/src/include/gnunet_helper_lib.h
@@ -51,6 +51,7 @@ typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls);
51 * restarted when it dies except when it is stopped using GNUNET_HELPER_stop() 51 * restarted when it dies except when it is stopped using GNUNET_HELPER_stop()
52 * or when the exp_cb callback is not NULL. 52 * or when the exp_cb callback is not NULL.
53 * 53 *
54 * @param with_control_pipe does the helper support the use of a control pipe for signalling?
54 * @param binary_name name of the binary to run 55 * @param binary_name name of the binary to run
55 * @param binary_argv NULL-terminated list of arguments to give when starting the binary (this 56 * @param binary_argv NULL-terminated list of arguments to give when starting the binary (this
56 * argument must not be modified by the client for 57 * argument must not be modified by the client for
@@ -62,7 +63,8 @@ typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls);
62 * @return the new Handle, NULL on error 63 * @return the new Handle, NULL on error
63 */ 64 */
64struct GNUNET_HELPER_Handle * 65struct GNUNET_HELPER_Handle *
65GNUNET_HELPER_start (const char *binary_name, 66GNUNET_HELPER_start (int with_control_pipe,
67 const char *binary_name,
66 char *const binary_argv[], 68 char *const binary_argv[],
67 GNUNET_SERVER_MessageTokenizerCallback cb, 69 GNUNET_SERVER_MessageTokenizerCallback cb,
68 GNUNET_HELPER_ExceptionCallback exp_cb, 70 GNUNET_HELPER_ExceptionCallback exp_cb,