/* gimmick_ggo.h */ /* File autogenerated by gengetopt version 2.20 */ #ifndef GIMMICK_GGO_H #define GIMMICK_GGO_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef CMDLINE_PARSER_PACKAGE #define CMDLINE_PARSER_PACKAGE "gimmick" #endif #ifndef CMDLINE_PARSER_VERSION #define CMDLINE_PARSER_VERSION "0.1.0" #endif struct gengetopt_args_info { const char *help_help; /* Print help and exit help description. */ const char *version_help; /* Print version and exit help description. */ int print_flag; /* Prints the local database tree (default=off). */ const char *print_help; /* Prints the local database tree help description. */ char * file_arg; /* Adds the file to local database. */ char * file_orig; /* Adds the file to local database original value given at command line. */ const char *file_help; /* Adds the file to local database help description. */ char * dir_arg; /* Adds the directory to local database. */ char * dir_orig; /* Adds the directory to local database original value given at command line. */ const char *dir_help; /* Adds the directory to local database help description. */ int recurse_flag; /* Recurse into sub-directories (default=off). */ const char *recurse_help; /* Recurse into sub-directories help description. */ int verbose_arg; /* Verbosity level (default='1'). */ char * verbose_orig; /* Verbosity level original value given at command line. */ const char *verbose_help; /* Verbosity level help description. */ int debug_arg; /* Debug messages level (default='0'). */ char * debug_orig; /* Debug messages level original value given at command line. */ const char *debug_help; /* Debug messages level help description. */ int help_given ; /* Whether help was given. */ int version_given ; /* Whether version was given. */ int print_given ; /* Whether print was given. */ int file_given ; /* Whether file was given. */ int dir_given ; /* Whether dir was given. */ int recurse_given ; /* Whether recurse was given. */ int verbose_given ; /* Whether verbose was given. */ int debug_given ; /* Whether debug was given. */ } ; extern const char *gengetopt_args_info_purpose; extern const char *gengetopt_args_info_usage; extern const char *gengetopt_args_info_help[]; int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); int cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); void cmdline_parser_print_help(void); void cmdline_parser_print_version(void); void cmdline_parser_init (struct gengetopt_args_info *args_info); void cmdline_parser_free (struct gengetopt_args_info *args_info); int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* GIMMICK_GGO_H */