jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 1 | /* cmdline.h */ |
| 2 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 3 | /* File autogenerated by gengetopt version 2.17 */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 4 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 5 | #ifndef CMDLINE_H |
| 6 | #define CMDLINE_H |
| 7 | |
| 8 | /* If we use autoconf. */ |
| 9 | #ifdef HAVE_CONFIG_H |
| 10 | #include "config.h" |
| 11 | #endif |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif /* __cplusplus */ |
| 16 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 17 | #ifndef CMDLINE_PARSER_PACKAGE |
| 18 | #define CMDLINE_PARSER_PACKAGE PACKAGE |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 19 | #endif |
| 20 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 21 | #ifndef CMDLINE_PARSER_VERSION |
| 22 | #define CMDLINE_PARSER_VERSION VERSION |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 23 | #endif |
| 24 | |
| 25 | struct gengetopt_args_info |
| 26 | { |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 27 | const char *help_help; /* Print help and exit help description. */ |
| 28 | const char *version_help; /* Print version and exit help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 29 | int debug_flag; /* Run in debug mode (default=off). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 30 | const char *debug_help; /* Run in debug mode help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 31 | char * conf_arg; /* Read configuration file. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 32 | char * conf_orig; /* Read configuration file original value given at command line. */ |
| 33 | const char *conf_help; /* Read configuration file help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 34 | char * pidfile_arg; /* Filename of process id file (default='./sgsnemu.pid'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 35 | char * pidfile_orig; /* Filename of process id file original value given at command line. */ |
| 36 | const char *pidfile_help; /* Filename of process id file help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 37 | char * statedir_arg; /* Directory of nonvolatile data (default='./'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 38 | char * statedir_orig; /* Directory of nonvolatile data original value given at command line. */ |
| 39 | const char *statedir_help; /* Directory of nonvolatile data help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 40 | char * dns_arg; /* DNS Server to use. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 41 | char * dns_orig; /* DNS Server to use original value given at command line. */ |
| 42 | const char *dns_help; /* DNS Server to use help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 43 | char * listen_arg; /* Local interface. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 44 | char * listen_orig; /* Local interface original value given at command line. */ |
| 45 | const char *listen_help; /* Local interface help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 46 | char * remote_arg; /* Remote host. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 47 | char * remote_orig; /* Remote host original value given at command line. */ |
| 48 | const char *remote_help; /* Remote host help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 49 | int contexts_arg; /* Number of contexts (default='1'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 50 | char * contexts_orig; /* Number of contexts original value given at command line. */ |
| 51 | const char *contexts_help; /* Number of contexts help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 52 | int timelimit_arg; /* Exit after timelimit seconds (default='0'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 53 | char * timelimit_orig; /* Exit after timelimit seconds original value given at command line. */ |
| 54 | const char *timelimit_help; /* Exit after timelimit seconds help description. */ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame] | 55 | int gtpversion_arg; /* GTP version to use (default='1'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 56 | char * gtpversion_orig; /* GTP version to use original value given at command line. */ |
| 57 | const char *gtpversion_help; /* GTP version to use help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 58 | char * apn_arg; /* Access point name (default='internet'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 59 | char * apn_orig; /* Access point name original value given at command line. */ |
| 60 | const char *apn_help; /* Access point name help description. */ |
jjako | 1a51df7 | 2004-07-20 08:30:21 +0000 | [diff] [blame] | 61 | int selmode_arg; /* Selection mode (default='0x01'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 62 | char * selmode_orig; /* Selection mode original value given at command line. */ |
| 63 | const char *selmode_help; /* Selection mode help description. */ |
Yann BONNAMY | 944dce3 | 2010-10-29 17:07:44 +0200 | [diff] [blame] | 64 | char * rattype_arg; /* Radio Access Technology Type (optional). */ |
| 65 | char * rattype_orig; |
| 66 | char * rattype_help; |
| 67 | char * userloc_arg; /* User Location Information (optional). */ |
| 68 | char * userloc_orig; |
| 69 | char * userloc_help; |
| 70 | char * mstz_arg; /* MS Time Zone (optional). */ |
| 71 | char * mstz_orig; |
| 72 | char * mstz_help; |
| 73 | char * imeisv_arg; /* IMEI(SV) (optional). */ |
| 74 | char * imeisv_orig; |
| 75 | char * imeisv_help; |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 76 | char * imsi_arg; /* IMSI (default='240010123456789'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 77 | char * imsi_orig; /* IMSI original value given at command line. */ |
| 78 | const char *imsi_help; /* IMSI help description. */ |
jjako | 7e051d3 | 2004-05-27 20:06:36 +0000 | [diff] [blame] | 79 | int nsapi_arg; /* NSAPI (default='0'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 80 | char * nsapi_orig; /* NSAPI original value given at command line. */ |
| 81 | const char *nsapi_help; /* NSAPI help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 82 | char * msisdn_arg; /* Mobile Station ISDN number (default='46702123456'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 83 | char * msisdn_orig; /* Mobile Station ISDN number original value given at command line. */ |
| 84 | const char *msisdn_help; /* Mobile Station ISDN number help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 85 | int qos_arg; /* Requested quality of service (default='0x0b921f'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 86 | char * qos_orig; /* Requested quality of service original value given at command line. */ |
| 87 | const char *qos_help; /* Requested quality of service help description. */ |
jjako | 7e051d3 | 2004-05-27 20:06:36 +0000 | [diff] [blame] | 88 | int charging_arg; /* Charging characteristics (default='0x0800'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 89 | char * charging_orig; /* Charging characteristics original value given at command line. */ |
| 90 | const char *charging_help; /* Charging characteristics help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 91 | char * uid_arg; /* Login user ID (default='mig'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 92 | char * uid_orig; /* Login user ID original value given at command line. */ |
| 93 | const char *uid_help; /* Login user ID help description. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 94 | char * pwd_arg; /* Login password (default='hemmelig'). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 95 | char * pwd_orig; /* Login password original value given at command line. */ |
| 96 | const char *pwd_help; /* Login password help description. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 97 | int createif_flag; /* Create local network interface (default=off). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 98 | const char *createif_help; /* Create local network interface help description. */ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame] | 99 | char * net_arg; /* Network address for local interface. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 100 | char * net_orig; /* Network address for local interface original value given at command line. */ |
| 101 | const char *net_help; /* Network address for local interface help description. */ |
jjako | a7cd249 | 2003-04-11 09:40:12 +0000 | [diff] [blame] | 102 | int defaultroute_flag; /* Create default route (default=off). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 103 | const char *defaultroute_help; /* Create default route help description. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 104 | char * ipup_arg; /* Script to run after link-up. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 105 | char * ipup_orig; /* Script to run after link-up original value given at command line. */ |
| 106 | const char *ipup_help; /* Script to run after link-up help description. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 107 | char * ipdown_arg; /* Script to run after link-down. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 108 | char * ipdown_orig; /* Script to run after link-down original value given at command line. */ |
| 109 | const char *ipdown_help; /* Script to run after link-down help description. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 110 | char * pinghost_arg; /* Ping remote host. */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 111 | char * pinghost_orig; /* Ping remote host original value given at command line. */ |
| 112 | const char *pinghost_help; /* Ping remote host help description. */ |
| 113 | int pingrate_arg; /* Number of ping req per second (default='1'). */ |
| 114 | char * pingrate_orig; /* Number of ping req per second original value given at command line. */ |
| 115 | const char *pingrate_help; /* Number of ping req per second help description. */ |
| 116 | int pingsize_arg; /* Number of ping data bytes (default='56'). */ |
| 117 | char * pingsize_orig; /* Number of ping data bytes original value given at command line. */ |
| 118 | const char *pingsize_help; /* Number of ping data bytes help description. */ |
| 119 | int pingcount_arg; /* Number of ping req to send (default='0'). */ |
| 120 | char * pingcount_orig; /* Number of ping req to send original value given at command line. */ |
| 121 | const char *pingcount_help; /* Number of ping req to send help description. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 122 | int pingquiet_flag; /* Do not print ping packet info (default=off). */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 123 | const char *pingquiet_help; /* Do not print ping packet info help description. */ |
| 124 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 125 | int help_given ; /* Whether help was given. */ |
| 126 | int version_given ; /* Whether version was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 127 | int debug_given ; /* Whether debug was given. */ |
| 128 | int conf_given ; /* Whether conf was given. */ |
| 129 | int pidfile_given ; /* Whether pidfile was given. */ |
| 130 | int statedir_given ; /* Whether statedir was given. */ |
| 131 | int dns_given ; /* Whether dns was given. */ |
| 132 | int listen_given ; /* Whether listen was given. */ |
| 133 | int remote_given ; /* Whether remote was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 134 | int contexts_given ; /* Whether contexts was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 135 | int timelimit_given ; /* Whether timelimit was given. */ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame] | 136 | int gtpversion_given ; /* Whether gtpversion was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 137 | int apn_given ; /* Whether apn was given. */ |
jjako | 1a51df7 | 2004-07-20 08:30:21 +0000 | [diff] [blame] | 138 | int selmode_given ; /* Whether selmode was given. */ |
Yann BONNAMY | 944dce3 | 2010-10-29 17:07:44 +0200 | [diff] [blame] | 139 | int rattype_given ; /* Whether rattype was given. */ |
| 140 | int userloc_given ; /* Whether userloc was given. */ |
| 141 | int mstz_given ; /* Whether mstz was given. */ |
| 142 | int imeisv_given ; /* Whether imeisv was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 143 | int imsi_given ; /* Whether imsi was given. */ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame] | 144 | int nsapi_given ; /* Whether nsapi was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 145 | int msisdn_given ; /* Whether msisdn was given. */ |
| 146 | int qos_given ; /* Whether qos was given. */ |
jjako | 7e051d3 | 2004-05-27 20:06:36 +0000 | [diff] [blame] | 147 | int charging_given ; /* Whether charging was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 148 | int uid_given ; /* Whether uid was given. */ |
| 149 | int pwd_given ; /* Whether pwd was given. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 150 | int createif_given ; /* Whether createif was given. */ |
jjako | 193e8b1 | 2003-11-10 12:31:41 +0000 | [diff] [blame] | 151 | int net_given ; /* Whether net was given. */ |
jjako | a7cd249 | 2003-04-11 09:40:12 +0000 | [diff] [blame] | 152 | int defaultroute_given ; /* Whether defaultroute was given. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 153 | int ipup_given ; /* Whether ipup was given. */ |
| 154 | int ipdown_given ; /* Whether ipdown was given. */ |
jjako | 5da6845 | 2003-01-28 16:08:47 +0000 | [diff] [blame] | 155 | int pinghost_given ; /* Whether pinghost was given. */ |
| 156 | int pingrate_given ; /* Whether pingrate was given. */ |
| 157 | int pingsize_given ; /* Whether pingsize was given. */ |
| 158 | int pingcount_given ; /* Whether pingcount was given. */ |
| 159 | int pingquiet_given ; /* Whether pingquiet was given. */ |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 160 | |
| 161 | } ; |
| 162 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 163 | extern const char *gengetopt_args_info_purpose; |
| 164 | extern const char *gengetopt_args_info_usage; |
| 165 | extern const char *gengetopt_args_info_help[]; |
| 166 | |
| 167 | int cmdline_parser (int argc, char * const *argv, |
| 168 | struct gengetopt_args_info *args_info); |
| 169 | int cmdline_parser2 (int argc, char * const *argv, |
| 170 | struct gengetopt_args_info *args_info, |
| 171 | int override, int initialize, int check_required); |
| 172 | int cmdline_parser_file_save(const char *filename, |
| 173 | struct gengetopt_args_info *args_info); |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 174 | |
| 175 | void cmdline_parser_print_help(void); |
| 176 | void cmdline_parser_print_version(void); |
| 177 | |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 178 | void cmdline_parser_init (struct gengetopt_args_info *args_info); |
| 179 | void cmdline_parser_free (struct gengetopt_args_info *args_info); |
| 180 | |
| 181 | int cmdline_parser_configfile (char * const filename, |
| 182 | struct gengetopt_args_info *args_info, |
| 183 | int override, int initialize, int check_required); |
| 184 | |
| 185 | int cmdline_parser_required (struct gengetopt_args_info *args_info, |
| 186 | const char *prog_name); |
| 187 | |
jjako | 52c2414 | 2002-12-16 13:33:51 +0000 | [diff] [blame] | 188 | |
| 189 | #ifdef __cplusplus |
| 190 | } |
| 191 | #endif /* __cplusplus */ |
Harald Welte | 1b3e577 | 2010-05-04 11:13:56 +0200 | [diff] [blame] | 192 | #endif /* CMDLINE_H */ |