diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-15 09:02:08 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-03-15 09:02:08 +0000 |
commit | 23372aee7dc3347c4098c7a041271799794bd61f (patch) | |
tree | eb07004034f8863f7950d1dfcb8444719647857b /src/include/gnunet_program_lib.h | |
parent | f5cfe33fcee3bc563c5dc20463845197fa70d984 (diff) | |
download | gnunet-23372aee7dc3347c4098c7a041271799794bd61f.tar.gz gnunet-23372aee7dc3347c4098c7a041271799794bd61f.zip |
- new program_run and run_2
Diffstat (limited to 'src/include/gnunet_program_lib.h')
-rw-r--r-- | src/include/gnunet_program_lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gnunet_program_lib.h b/src/include/gnunet_program_lib.h index 48d5280ee..5bce4820b 100644 --- a/src/include/gnunet_program_lib.h +++ b/src/include/gnunet_program_lib.h | |||
@@ -60,6 +60,28 @@ typedef void (*GNUNET_PROGRAM_Main) (void *cls, char *const *args, | |||
60 | * @param argc number of command line arguments | 60 | * @param argc number of command line arguments |
61 | * @param argv command line arguments | 61 | * @param argv command line arguments |
62 | * @param binaryName our expected name | 62 | * @param binaryName our expected name |
63 | * @param binaryHelp help text for the program | ||
64 | * @param options command line options | ||
65 | * @param task main function to run | ||
66 | * @param task_cls closure for task | ||
67 | * @param run_with_schedule GNUNET_YES start the scheduler, GNUNET_NO do not | ||
68 | * start the scheduler just run the main task | ||
69 | * @return GNUNET_SYSERR on error, GNUNET_OK on success | ||
70 | */ | ||
71 | int | ||
72 | GNUNET_PROGRAM_run2 (int argc, char *const *argv, const char *binaryName, | ||
73 | const char *binaryHelp, | ||
74 | const struct GNUNET_GETOPT_CommandLineOption *options, | ||
75 | GNUNET_PROGRAM_Main task, void *task_cls, | ||
76 | int run_with_schedule); | ||
77 | |||
78 | /** | ||
79 | * Run a standard GNUnet command startup sequence (initialize loggers | ||
80 | * and configuration, parse options). | ||
81 | * | ||
82 | * @param argc number of command line arguments | ||
83 | * @param argv command line arguments | ||
84 | * @param binaryName our expected name | ||
63 | * @param binaryHelp helptext for "-h" option (about the app) | 85 | * @param binaryHelp helptext for "-h" option (about the app) |
64 | * @param options command line options | 86 | * @param options command line options |
65 | * @param task main function to run | 87 | * @param task main function to run |