/* test_main_cmdline_cmd.h */ /* File autogenerated by gengetopt */ #ifndef TEST_MAIN_CMDLINE_CMD_H #define TEST_MAIN_CMDLINE_CMD_H /* If we use autoconf. */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #ifndef TEST_MAIN_CMDLINE_CMD_PARSER_PACKAGE #define TEST_MAIN_CMDLINE_CMD_PARSER_PACKAGE PACKAGE #endif #ifndef TEST_MAIN_CMDLINE_CMD_PARSER_VERSION #define TEST_MAIN_CMDLINE_CMD_PARSER_VERSION "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. */ char ** first_cmd_arg; /* the first command line to parse. */ char ** first_cmd_orig; /* the first command line to parse original value given at command line. */ int first_cmd_min; /* the first command line to parse's minimum occurreces */ int first_cmd_max; /* the first command line to parse's maximum occurreces */ const char *first_cmd_help; /* the first command line to parse help description. */ char ** second_cmd_arg; /* the second command line to parse. */ char ** second_cmd_orig; /* the second command line to parse original value given at command line. */ int second_cmd_min; /* the second command line to parse's minimum occurreces */ int second_cmd_max; /* the second command line to parse's maximum occurreces */ const char *second_cmd_help; /* the second command line to parse help description. */ int help_given ; /* Whether help was given. */ int version_given ; /* Whether version was given. */ unsigned int first_cmd_given ; /* Whether first-cmd was given. */ unsigned int second_cmd_given ; /* Whether second-cmd 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[]; int test_main_cmdline_cmd_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info); int test_main_cmdline_cmd_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required); int test_main_cmdline_cmd_parser_file_save(const char *filename, struct gengetopt_args_info *args_info); void test_main_cmdline_cmd_parser_print_help(void); void test_main_cmdline_cmd_parser_print_version(void); void test_main_cmdline_cmd_parser_init (struct gengetopt_args_info *args_info); void test_main_cmdline_cmd_parser_free (struct gengetopt_args_info *args_info); int test_main_cmdline_cmd_parser_required (struct gengetopt_args_info *args_info, const char *prog_name); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* TEST_MAIN_CMDLINE_CMD_H */