aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_getopt_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_getopt_lib.h')
-rw-r--r--src/include/gnunet_getopt_lib.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h
index 9c34810b2..0fb7ec84e 100644
--- a/src/include/gnunet_getopt_lib.h
+++ b/src/include/gnunet_getopt_lib.h
@@ -85,12 +85,11 @@ struct GNUNET_GETOPT_CommandLineProcessorContext
85 * @param value argument, NULL if none was given 85 * @param value argument, NULL if none was given
86 * @return GNUNET_OK to continue processing other options, GNUNET_SYSERR to abort 86 * @return GNUNET_OK to continue processing other options, GNUNET_SYSERR to abort
87 */ 87 */
88typedef 88typedef int (*GNUNET_GETOPT_CommandLineOptionProcessor) (struct
89 int (*GNUNET_GETOPT_CommandLineOptionProcessor) (struct 89 GNUNET_GETOPT_CommandLineProcessorContext
90 GNUNET_GETOPT_CommandLineProcessorContext 90 * ctx, void *scls,
91 * ctx, void *scls, 91 const char *option,
92 const char *option, 92 const char *value);
93 const char *value);
94 93
95/** 94/**
96 * @brief Definition of a command line option. 95 * @brief Definition of a command line option.
@@ -209,8 +208,8 @@ struct GNUNET_GETOPT_CommandLineOption
209 * argument, or GNUNET_SYSERR on error 208 * argument, or GNUNET_SYSERR on error
210 */ 209 */
211int GNUNET_GETOPT_run (const char *binaryOptions, 210int GNUNET_GETOPT_run (const char *binaryOptions,
212 const struct GNUNET_GETOPT_CommandLineOption 211 const struct GNUNET_GETOPT_CommandLineOption *allOptions,
213 *allOptions, unsigned int argc, char *const *argv); 212 unsigned int argc, char *const *argv);
214 213
215 214
216/** 215/**
@@ -300,11 +299,10 @@ int GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext
300 * @param value not used (NULL) 299 * @param value not used (NULL)
301 * @return GNUNET_OK 300 * @return GNUNET_OK
302 */ 301 */
303int 302int GNUNET_GETOPT_increment_value (struct
304GNUNET_GETOPT_increment_value (struct 303 GNUNET_GETOPT_CommandLineProcessorContext
305 GNUNET_GETOPT_CommandLineProcessorContext *ctx, 304 *ctx, void *scls, const char *option,
306 void *scls, const char *option, 305 const char *value);
307 const char *value);
308 306
309 307
310/* *************** internal prototypes - use macros above! ************* */ 308/* *************** internal prototypes - use macros above! ************* */
@@ -318,8 +316,7 @@ GNUNET_GETOPT_increment_value (struct
318 * @param value not used (NULL) 316 * @param value not used (NULL)
319 * @return GNUNET_SYSERR (do not continue) 317 * @return GNUNET_SYSERR (do not continue)
320 */ 318 */
321int GNUNET_GETOPT_format_help_ (struct 319int GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext
322 GNUNET_GETOPT_CommandLineProcessorContext
323 *ctx, void *scls, const char *option, 320 *ctx, void *scls, const char *option,
324 const char *value); 321 const char *value);
325 322