cmdline.h
00001
00002
00003
00004
00005 #ifndef CMDLINE_H
00006 #define CMDLINE_H
00007
00008
00009 #ifdef HAVE_CONFIG_H
00010 #include "config.h"
00011 #endif
00012
00013 #ifdef __cplusplus
00014 extern "C" {
00015 #endif
00016
00017 #ifndef CMDLINE_PARSER_PACKAGE
00018 #define CMDLINE_PARSER_PACKAGE PACKAGE
00019 #endif
00020
00021 #ifndef CMDLINE_PARSER_VERSION
00022 #define CMDLINE_PARSER_VERSION VERSION
00023 #endif
00024
00025 struct gengetopt_args_info
00026 {
00027 char * import_format_arg;
00028 int msg_parser_flag;
00029 int msg_debug_flag;
00030 int msg_warning_flag;
00031 int msg_error_flag;
00032 int msg_info_flag;
00033 int msg_status_flag;
00034
00035 int help_given ;
00036 int version_given ;
00037 int import_format_given ;
00038 int list_import_formats_given ;
00039 int msg_parser_given ;
00040 int msg_debug_given ;
00041 int msg_warning_given ;
00042 int msg_error_given ;
00043 int msg_info_given ;
00044 int msg_status_given ;
00045
00046 char **inputs ;
00047 unsigned inputs_num ;
00048 } ;
00049
00050 int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
00051 int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required);
00052
00053 void cmdline_parser_print_help(void);
00054 void cmdline_parser_print_version(void);
00055
00056 void cmdline_parser_init (struct gengetopt_args_info *args_info);
00057 void cmdline_parser_free (struct gengetopt_args_info *args_info);
00058
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062 #endif
Generated on Fri Oct 8 20:34:47 2004 for LibOFX by
1.3.7