/* cmdline2.h */ /* File autogenerated by gengetopt version 2.19.1 */ #ifndef CMDLINE2_H #define CMDLINE2_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef MY_CMDLINE_PARSER_PACKAGE #define MY_CMDLINE_PARSER_PACKAGE PACKAGE #endif #ifndef MY_CMDLINE_PARSER_VERSION #define MY_CMDLINE_PARSER_VERSION VERSION #endif struct gengetopt_args_info { const char *help_help; /* Print help and exit help description. */ const char *full_help_help; /* Print help, including hidden options, and exit help description. */ const char *version_help; /* Print version and exit help description. */ char * str_opt_arg; /* A string option. */ char * str_opt_orig; /* A string option original value given at command line. */ const char *str_opt_help; /* A string option help description. */ int int_opt_arg; /* A int option. */ char * int_opt_orig; /* A int option original value given at command line. */ const char *int_opt_help; /* A int option help description. */ short short_opt_arg; /* A short option. */ char * short_opt_orig; /* A short option original value given at command line. */ const char *short_opt_help; /* A short option help description. */ long long_opt_arg; /* A long option. */ char * long_opt_orig; /* A long option original value given at command line. */ const char *long_opt_help; /* A long option help description. */ float float_opt_arg; /* A float option. */ char * float_opt_orig; /* A float option original value given at command line. */ const char *float_opt_help; /* A float option help description. */ double double_opt_arg; /* A double option. */ char * double_opt_orig; /* A double option original value given at command line. */ const char *double_opt_help; /* A double option help description. */ long double long_double_opt_arg; /* A long double option. */ char * long_double_opt_orig; /* A long double option original value given at command line. */ const char *long_double_opt_help; /* A long double option help description. */ #ifdef HAVE_LONG_LONG long long int long_long_opt_arg; /* A long long option. */ #else long long_long_opt_arg; /* A long long option. */ #endif char * long_long_opt_orig; /* A long long option original value given at command line. */ const char *long_long_opt_help; /* A long long option help description. */ const char *func_opt_help; /* A function option help description. */ const char *hidden_opt_help; /* A hidden option help description. */ int flag_opt_flag; /* A flag option (default=off). */ const char *flag_opt_help; /* A flag option help description. */ int help_given ; /* Whether help was given. */ int full_help_given ; /* Whether full-help was given. */ int version_given ; /* Whether version was given. */ int str_opt_given ; /* Whether str-opt was given. */ int int_opt_given ; /* Whether int-opt was given. */ int short_opt_given ; /* Whether short-opt was given. */ int long_opt_given ; /* Whether long-opt was given. */ int float_opt_given ; /* Whether float-opt was given. */ int double_opt_given ; /* Whether double-opt was given. */ int long_double_opt_given ; /* Whether long-double-opt was given. */ int long_long_opt_given ; /* Whether long-long-opt was given. */ int func_opt_given ; /* Whether func-opt was given. */ int hidden_opt_given ; /* Whether hidden-opt was given. */ int flag_opt_given ; /* Whether flag-opt was given. */ char **inputs ; /* unamed options */ unsigned inputs_num ; /* unamed options number */ } ; extern const char *gengetopt_args_info_purpose; extern const char *gengetopt_args_info_usage; extern const char *gengetopt_args_info_help[]; extern const char *gengetopt_args_info_full_help[]; int my_cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); int my_cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); int my_cmdline_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); void my_cmdline_parser_print_help(void); void my_cmdline_parser_print_full_help(void); void my_cmdline_parser_print_version(void); void my_cmdline_parser_init (struct gengetopt_args_info *args_info); void my_cmdline_parser_free (struct gengetopt_args_info *args_info); int my_cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* CMDLINE2_H */