diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/include/gnunet_getopt_lib.h | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/include/gnunet_getopt_lib.h')
-rw-r--r-- | src/include/gnunet_getopt_lib.h | 54 |
1 files changed, 28 insertions, 26 deletions
diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index 0fb7ec84e..e6afa2b3c 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h | |||
@@ -207,9 +207,10 @@ struct GNUNET_GETOPT_CommandLineOption | |||
207 | * @return index into argv with first non-option | 207 | * @return index into argv with first non-option |
208 | * argument, or GNUNET_SYSERR on error | 208 | * argument, or GNUNET_SYSERR on error |
209 | */ | 209 | */ |
210 | int GNUNET_GETOPT_run (const char *binaryOptions, | 210 | int |
211 | const struct GNUNET_GETOPT_CommandLineOption *allOptions, | 211 | GNUNET_GETOPT_run (const char *binaryOptions, |
212 | unsigned int argc, char *const *argv); | 212 | const struct GNUNET_GETOPT_CommandLineOption *allOptions, |
213 | unsigned int argc, char *const *argv); | ||
213 | 214 | ||
214 | 215 | ||
215 | /** | 216 | /** |
@@ -225,9 +226,9 @@ int GNUNET_GETOPT_run (const char *binaryOptions, | |||
225 | * @param value actual value of the option as a string. | 226 | * @param value actual value of the option as a string. |
226 | * @return GNUNET_OK if parsing the value worked | 227 | * @return GNUNET_OK if parsing the value worked |
227 | */ | 228 | */ |
228 | int GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext | 229 | int |
229 | *ctx, void *scls, const char *option, | 230 | GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, |
230 | const char *value); | 231 | void *scls, const char *option, const char *value); |
231 | 232 | ||
232 | 233 | ||
233 | /** | 234 | /** |
@@ -243,9 +244,9 @@ int GNUNET_GETOPT_set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
243 | * @param value actual value of the option as a string. | 244 | * @param value actual value of the option as a string. |
244 | * @return GNUNET_OK if parsing the value worked | 245 | * @return GNUNET_OK if parsing the value worked |
245 | */ | 246 | */ |
246 | int GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext | 247 | int |
247 | *ctx, void *scls, const char *option, | 248 | GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, |
248 | const char *value); | 249 | void *scls, const char *option, const char *value); |
249 | 250 | ||
250 | 251 | ||
251 | /** | 252 | /** |
@@ -262,9 +263,9 @@ int GNUNET_GETOPT_set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
262 | * @param value not used (NULL) | 263 | * @param value not used (NULL) |
263 | * @return GNUNET_OK | 264 | * @return GNUNET_OK |
264 | */ | 265 | */ |
265 | int GNUNET_GETOPT_set_one (struct GNUNET_GETOPT_CommandLineProcessorContext | 266 | int |
266 | *ctx, void *scls, const char *option, | 267 | GNUNET_GETOPT_set_one (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, |
267 | const char *value); | 268 | void *scls, const char *option, const char *value); |
268 | 269 | ||
269 | 270 | ||
270 | /** | 271 | /** |
@@ -281,9 +282,9 @@ int GNUNET_GETOPT_set_one (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
281 | * @param value actual value of the option (a string) | 282 | * @param value actual value of the option (a string) |
282 | * @return GNUNET_OK | 283 | * @return GNUNET_OK |
283 | */ | 284 | */ |
284 | int GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext | 285 | int |
285 | *ctx, void *scls, const char *option, | 286 | GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, |
286 | const char *value); | 287 | void *scls, const char *option, const char *value); |
287 | 288 | ||
288 | /** | 289 | /** |
289 | * Set an option of type 'unsigned int' from the command line. Each | 290 | * Set an option of type 'unsigned int' from the command line. Each |
@@ -299,10 +300,10 @@ int GNUNET_GETOPT_set_string (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
299 | * @param value not used (NULL) | 300 | * @param value not used (NULL) |
300 | * @return GNUNET_OK | 301 | * @return GNUNET_OK |
301 | */ | 302 | */ |
302 | int GNUNET_GETOPT_increment_value (struct | 303 | int |
303 | GNUNET_GETOPT_CommandLineProcessorContext | 304 | GNUNET_GETOPT_increment_value (struct GNUNET_GETOPT_CommandLineProcessorContext |
304 | *ctx, void *scls, const char *option, | 305 | *ctx, void *scls, const char *option, |
305 | const char *value); | 306 | const char *value); |
306 | 307 | ||
307 | 308 | ||
308 | /* *************** internal prototypes - use macros above! ************* */ | 309 | /* *************** internal prototypes - use macros above! ************* */ |
@@ -316,9 +317,10 @@ int GNUNET_GETOPT_increment_value (struct | |||
316 | * @param value not used (NULL) | 317 | * @param value not used (NULL) |
317 | * @return GNUNET_SYSERR (do not continue) | 318 | * @return GNUNET_SYSERR (do not continue) |
318 | */ | 319 | */ |
319 | int GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext | 320 | int |
320 | *ctx, void *scls, const char *option, | 321 | GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext |
321 | const char *value); | 322 | *ctx, void *scls, const char *option, |
323 | const char *value); | ||
322 | 324 | ||
323 | /** | 325 | /** |
324 | * Print out program version (implements --version). | 326 | * Print out program version (implements --version). |
@@ -329,10 +331,10 @@ int GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
329 | * @param value not used (NULL) | 331 | * @param value not used (NULL) |
330 | * @return GNUNET_SYSERR (do not continue) | 332 | * @return GNUNET_SYSERR (do not continue) |
331 | */ | 333 | */ |
332 | int GNUNET_GETOPT_print_version_ (struct | 334 | int |
333 | GNUNET_GETOPT_CommandLineProcessorContext | 335 | GNUNET_GETOPT_print_version_ (struct GNUNET_GETOPT_CommandLineProcessorContext |
334 | *ctx, void *scls, const char *option, | 336 | *ctx, void *scls, const char *option, |
335 | const char *value); | 337 | const char *value); |
336 | 338 | ||
337 | #if 0 /* keep Emacsens' auto-indent happy */ | 339 | #if 0 /* keep Emacsens' auto-indent happy */ |
338 | { | 340 | { |