diff options
Diffstat (limited to 'src/include/gnunet_program_lib.h')
-rw-r--r-- | src/include/gnunet_program_lib.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/include/gnunet_program_lib.h b/src/include/gnunet_program_lib.h index b01703f05..8881bfa9d 100644 --- a/src/include/gnunet_program_lib.h +++ b/src/include/gnunet_program_lib.h | |||
@@ -47,8 +47,7 @@ extern "C" | |||
47 | * @param cfgfile name of the configuration file used (for saving, can be NULL!) | 47 | * @param cfgfile name of the configuration file used (for saving, can be NULL!) |
48 | * @param cfg configuration | 48 | * @param cfg configuration |
49 | */ | 49 | */ |
50 | typedef void (*GNUNET_PROGRAM_Main) (void *cls, | 50 | typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args, |
51 | char *const *args, | ||
52 | const char *cfgfile, | 51 | const char *cfgfile, |
53 | const struct GNUNET_CONFIGURATION_Handle * | 52 | const struct GNUNET_CONFIGURATION_Handle * |
54 | cfg); | 53 | cfg); |
@@ -67,9 +66,7 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls, | |||
67 | * @param task_cls closure for task | 66 | * @param task_cls closure for task |
68 | * @return GNUNET_SYSERR on error, GNUNET_OK on success | 67 | * @return GNUNET_SYSERR on error, GNUNET_OK on success |
69 | */ | 68 | */ |
70 | int GNUNET_PROGRAM_run (int argc, | 69 | int GNUNET_PROGRAM_run (int argc, char *const *argv, const char *binaryName, |
71 | char *const *argv, | ||
72 | const char *binaryName, | ||
73 | const char *binaryHelp, | 70 | const char *binaryHelp, |
74 | const struct GNUNET_GETOPT_CommandLineOption *options, | 71 | const struct GNUNET_GETOPT_CommandLineOption *options, |
75 | GNUNET_PROGRAM_Main task, void *task_cls); | 72 | GNUNET_PROGRAM_Main task, void *task_cls); |