From c4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Oct 2019 15:09:28 +0200 Subject: global reindent, now with uncrustify hook enabled --- src/include/gnunet_getopt_lib.h | 142 ++++++++++++++++++++-------------------- 1 file changed, 72 insertions(+), 70 deletions(-) (limited to 'src/include/gnunet_getopt_lib.h') diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index ef744fbc9..0d6ed4fc7 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h @@ -44,7 +44,8 @@ extern "C" { /** * @brief General context for command line processors. */ -struct GNUNET_GETOPT_CommandLineProcessorContext { +struct GNUNET_GETOPT_CommandLineProcessorContext +{ /** * Name of the application */ @@ -96,7 +97,8 @@ typedef int (*GNUNET_GETOPT_CommandLineOptionProcessor) ( /** * @brief Definition of a command line option. */ -struct GNUNET_GETOPT_CommandLineOption { +struct GNUNET_GETOPT_CommandLineOption +{ /** * Short name of the option. */ @@ -158,7 +160,7 @@ struct GNUNET_GETOPT_CommandLineOption { * @param about string with brief description of the application */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_help(const char *about); +GNUNET_GETOPT_option_help (const char *about); /** @@ -168,7 +170,7 @@ GNUNET_GETOPT_option_help(const char *about); * @param version string with the version number */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_version(const char *version); +GNUNET_GETOPT_option_version (const char *version); /** @@ -177,7 +179,7 @@ GNUNET_GETOPT_option_version(const char *version); * @param[out] logfn set to the name of the logfile */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_logfile(char **logfn); +GNUNET_GETOPT_option_logfile (char **logfn); /** @@ -190,11 +192,11 @@ GNUNET_GETOPT_option_logfile(char **logfn); * @param[out] str set to the string */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_string(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - char **str); +GNUNET_GETOPT_option_string (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + char **str); /** * Allow user to specify a filename (automatically path expanded). @@ -206,11 +208,11 @@ GNUNET_GETOPT_option_string(char shortName, * @param[out] str set to the string */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_filename(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - char **str); +GNUNET_GETOPT_option_filename (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + char **str); /** @@ -225,12 +227,12 @@ GNUNET_GETOPT_option_filename(char shortName, * @param val_size size of @a val in bytes */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_base32_fixed_size(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - void *val, - size_t val_size); +GNUNET_GETOPT_option_base32_fixed_size (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + void *val, + size_t val_size); /** @@ -250,12 +252,12 @@ GNUNET_GETOPT_option_base32_fixed_size(char shortName, argumentHelp, \ description, \ val) \ - GNUNET_GETOPT_option_base32_fixed_size(shortName, \ - name, \ - argumentHelp, \ - description, \ - val, \ - sizeof(*val)) + GNUNET_GETOPT_option_base32_fixed_size (shortName, \ + name, \ + argumentHelp, \ + description, \ + val, \ + sizeof(*val)) /** @@ -268,10 +270,10 @@ GNUNET_GETOPT_option_base32_fixed_size(char shortName, * @param[out] val set to 1 if the option is present */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_flag(char shortName, - const char *name, - const char *description, - int *val); +GNUNET_GETOPT_option_flag (char shortName, + const char *name, + const char *description, + int *val); /** @@ -284,11 +286,11 @@ GNUNET_GETOPT_option_flag(char shortName, * @param[out] val set to the value specified at the command line */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_uint(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - unsigned int *val); +GNUNET_GETOPT_option_uint (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + unsigned int *val); /** @@ -301,11 +303,11 @@ GNUNET_GETOPT_option_uint(char shortName, * @param[out] val set to the value specified at the command line */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_uint16(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - uint16_t *val); +GNUNET_GETOPT_option_uint16 (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + uint16_t *val); /** @@ -318,11 +320,11 @@ GNUNET_GETOPT_option_uint16(char shortName, * @param[out] val set to the value specified at the command line */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_ulong(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - unsigned long long *val); +GNUNET_GETOPT_option_ulong (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + unsigned long long *val); /** @@ -336,11 +338,11 @@ GNUNET_GETOPT_option_ulong(char shortName, * @param[out] val set to the time specified at the command line */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_relative_time(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - struct GNUNET_TIME_Relative *val); +GNUNET_GETOPT_option_relative_time (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + struct GNUNET_TIME_Relative *val); /** @@ -354,11 +356,11 @@ GNUNET_GETOPT_option_relative_time(char shortName, * @param[out] val set to the time specified at the command line */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_absolute_time(char shortName, - const char *name, - const char *argumentHelp, - const char *description, - struct GNUNET_TIME_Absolute *val); +GNUNET_GETOPT_option_absolute_time (char shortName, + const char *name, + const char *argumentHelp, + const char *description, + struct GNUNET_TIME_Absolute *val); /** @@ -371,10 +373,10 @@ GNUNET_GETOPT_option_absolute_time(char shortName, * @param[out] val set to 1 if the option is present */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_increment_uint(char shortName, - const char *name, - const char *description, - unsigned int *val); +GNUNET_GETOPT_option_increment_uint (char shortName, + const char *name, + const char *description, + unsigned int *val); /** @@ -384,7 +386,7 @@ GNUNET_GETOPT_option_increment_uint(char shortName, * @param[out] level set to the log level */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_loglevel(char **level); +GNUNET_GETOPT_option_loglevel (char **level); /** @@ -394,7 +396,7 @@ GNUNET_GETOPT_option_loglevel(char **level); * @param[out] level set to the verbosity level */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_verbose(unsigned int *level); +GNUNET_GETOPT_option_verbose (unsigned int *level); /** @@ -403,7 +405,7 @@ GNUNET_GETOPT_option_verbose(unsigned int *level); * @param[out] logfn set to the name of the logfile */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_logfile(char **logfn); +GNUNET_GETOPT_option_logfile (char **logfn); /** @@ -412,7 +414,7 @@ GNUNET_GETOPT_option_logfile(char **logfn); * @param[out] fn set to the name of the configuration file */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_cfgfile(char **fn); +GNUNET_GETOPT_option_cfgfile (char **fn); /** @@ -422,7 +424,7 @@ GNUNET_GETOPT_option_cfgfile(char **fn); * @return @a opt with the mandatory flag set. */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_mandatory(struct GNUNET_GETOPT_CommandLineOption opt); +GNUNET_GETOPT_option_mandatory (struct GNUNET_GETOPT_CommandLineOption opt); /** @@ -432,7 +434,7 @@ GNUNET_GETOPT_option_mandatory(struct GNUNET_GETOPT_CommandLineOption opt); * @return @a opt with the exclusive flag set. */ struct GNUNET_GETOPT_CommandLineOption -GNUNET_GETOPT_option_exclusive(struct GNUNET_GETOPT_CommandLineOption opt); +GNUNET_GETOPT_option_exclusive (struct GNUNET_GETOPT_CommandLineOption opt); /** @@ -455,10 +457,10 @@ GNUNET_GETOPT_option_exclusive(struct GNUNET_GETOPT_CommandLineOption opt); * argument, or #GNUNET_SYSERR on error */ int -GNUNET_GETOPT_run(const char *binaryOptions, - const struct GNUNET_GETOPT_CommandLineOption *allOptions, - unsigned int argc, - char *const *argv); +GNUNET_GETOPT_run (const char *binaryOptions, + const struct GNUNET_GETOPT_CommandLineOption *allOptions, + unsigned int argc, + char *const *argv); #if 0 /* keep Emacsens' auto-indent happy */ -- cgit v1.2.3