-peer review
[oweals/gnunet.git] / src / include / gnunet_helper_lib.h
index 2756cdf4edf9946624e6af1cb0eadc292058f62d..7f43f1a6493ee0363d348c0640aa750df44d8b2e 100644 (file)
@@ -42,12 +42,8 @@ struct GNUNET_HELPER_Handle;
  * when the helper process is stoped using GNUNET_HELPER_stop()
  *
  * @param cls the closure from GNUNET_HELPER_start()
- * @param h the handle representing the helper process. This handle is invalid
- *          in this callback. It is only presented for reference. No operations
- *          can be performed using it.
  */
-typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls,
-                                                const struct GNUNET_HELPER_Handle *h);
+typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls);
 
 
 /**
@@ -55,6 +51,7 @@ typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls,
  * restarted when it dies except when it is stopped using GNUNET_HELPER_stop()
  * or when the exp_cb callback is not NULL.
  *
+ * @param with_control_pipe does the helper support the use of a control pipe for signalling?
  * @param binary_name name of the binary to run
  * @param binary_argv NULL-terminated list of arguments to give when starting the binary (this
  *                    argument must not be modified by the client for
@@ -66,7 +63,8 @@ typedef void (*GNUNET_HELPER_ExceptionCallback) (void *cls,
  * @return the new Handle, NULL on error
  */
 struct GNUNET_HELPER_Handle *
-GNUNET_HELPER_start (const char *binary_name,
+GNUNET_HELPER_start (int with_control_pipe,
+                    const char *binary_name,
                     char *const binary_argv[],
                     GNUNET_SERVER_MessageTokenizerCallback cb,
                     GNUNET_HELPER_ExceptionCallback exp_cb,