(no commit message)
[oweals/gnunet.git] / src / include / gnunet_program_lib.h
index a44f4f11e74d6487427646e6972004d05561a865..48d5280eec744c9fe4ca844fd69ed0e05b3e90b0 100644 (file)
@@ -43,14 +43,11 @@ extern "C"
  * Main function that will be run.
  *
  * @param cls closure
- * @param sched the scheduler to use
  * @param args remaining command-line arguments
  * @param cfgfile name of the configuration file used (for saving, can be NULL!)
  * @param cfg configuration
  */
-typedef void (*GNUNET_PROGRAM_Main) (void *cls,
-                                     struct GNUNET_SCHEDULER_Handle * sched,
-                                     char *const *args,
+typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args,
                                      const char *cfgfile,
                                      const struct GNUNET_CONFIGURATION_Handle *
                                      cfg);
@@ -69,12 +66,11 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls,
  * @param task_cls closure for task
  * @return GNUNET_SYSERR on error, GNUNET_OK on success
  */
-int GNUNET_PROGRAM_run (int argc,
-                        char *const *argv,
-                        const char *binaryName,
-                        const char *binaryHelp,
-                        const struct GNUNET_GETOPT_CommandLineOption *options,
-                        GNUNET_PROGRAM_Main task, void *task_cls);
+int
+GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName,
+                    const char *binaryHelp,
+                    const struct GNUNET_GETOPT_CommandLineOption *options,
+                    GNUNET_PROGRAM_Main task, void *task_cls);