blob: 0871f3ea261146b0805ea47529695e9656a0de05 [file] [log] [blame]
jjako52c24142002-12-16 13:33:51 +00001/* cmdline.h */
2
Harald Welte1b3e5772010-05-04 11:13:56 +02003/* File autogenerated by gengetopt version 2.17 */
jjako52c24142002-12-16 13:33:51 +00004
Harald Welte1b3e5772010-05-04 11:13:56 +02005#ifndef CMDLINE_H
6#define CMDLINE_H
7
8/* If we use autoconf. */
9#ifdef HAVE_CONFIG_H
10#include "config.h"
11#endif
jjako52c24142002-12-16 13:33:51 +000012
13#ifdef __cplusplus
14extern "C" {
15#endif /* __cplusplus */
16
Harald Welte1b3e5772010-05-04 11:13:56 +020017#ifndef CMDLINE_PARSER_PACKAGE
18#define CMDLINE_PARSER_PACKAGE PACKAGE
jjako52c24142002-12-16 13:33:51 +000019#endif
20
Harald Welte1b3e5772010-05-04 11:13:56 +020021#ifndef CMDLINE_PARSER_VERSION
22#define CMDLINE_PARSER_VERSION VERSION
jjako52c24142002-12-16 13:33:51 +000023#endif
24
25struct gengetopt_args_info
26{
Harald Welte1b3e5772010-05-04 11:13:56 +020027 const char *help_help; /* Print help and exit help description. */
28 const char *version_help; /* Print version and exit help description. */
jjako52c24142002-12-16 13:33:51 +000029 int debug_flag; /* Run in debug mode (default=off). */
Harald Welte1b3e5772010-05-04 11:13:56 +020030 const char *debug_help; /* Run in debug mode help description. */
jjako52c24142002-12-16 13:33:51 +000031 char * conf_arg; /* Read configuration file. */
Harald Welte1b3e5772010-05-04 11:13:56 +020032 char * conf_orig; /* Read configuration file original value given at command line. */
33 const char *conf_help; /* Read configuration file help description. */
jjako52c24142002-12-16 13:33:51 +000034 char * pidfile_arg; /* Filename of process id file (default='./sgsnemu.pid'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020035 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. */
jjako52c24142002-12-16 13:33:51 +000037 char * statedir_arg; /* Directory of nonvolatile data (default='./'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020038 char * statedir_orig; /* Directory of nonvolatile data original value given at command line. */
39 const char *statedir_help; /* Directory of nonvolatile data help description. */
jjako52c24142002-12-16 13:33:51 +000040 char * dns_arg; /* DNS Server to use. */
Harald Welte1b3e5772010-05-04 11:13:56 +020041 char * dns_orig; /* DNS Server to use original value given at command line. */
42 const char *dns_help; /* DNS Server to use help description. */
jjako52c24142002-12-16 13:33:51 +000043 char * listen_arg; /* Local interface. */
Harald Welte1b3e5772010-05-04 11:13:56 +020044 char * listen_orig; /* Local interface original value given at command line. */
45 const char *listen_help; /* Local interface help description. */
jjako52c24142002-12-16 13:33:51 +000046 char * remote_arg; /* Remote host. */
Harald Welte1b3e5772010-05-04 11:13:56 +020047 char * remote_orig; /* Remote host original value given at command line. */
48 const char *remote_help; /* Remote host help description. */
jjako52c24142002-12-16 13:33:51 +000049 int contexts_arg; /* Number of contexts (default='1'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020050 char * contexts_orig; /* Number of contexts original value given at command line. */
51 const char *contexts_help; /* Number of contexts help description. */
jjako52c24142002-12-16 13:33:51 +000052 int timelimit_arg; /* Exit after timelimit seconds (default='0'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020053 char * timelimit_orig; /* Exit after timelimit seconds original value given at command line. */
54 const char *timelimit_help; /* Exit after timelimit seconds help description. */
jjako193e8b12003-11-10 12:31:41 +000055 int gtpversion_arg; /* GTP version to use (default='1'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020056 char * gtpversion_orig; /* GTP version to use original value given at command line. */
57 const char *gtpversion_help; /* GTP version to use help description. */
jjako52c24142002-12-16 13:33:51 +000058 char * apn_arg; /* Access point name (default='internet'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020059 char * apn_orig; /* Access point name original value given at command line. */
60 const char *apn_help; /* Access point name help description. */
jjako1a51df72004-07-20 08:30:21 +000061 int selmode_arg; /* Selection mode (default='0x01'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020062 char * selmode_orig; /* Selection mode original value given at command line. */
63 const char *selmode_help; /* Selection mode help description. */
Yann BONNAMY944dce32010-10-29 17:07:44 +020064 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;
jjako52c24142002-12-16 13:33:51 +000076 char * imsi_arg; /* IMSI (default='240010123456789'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020077 char * imsi_orig; /* IMSI original value given at command line. */
78 const char *imsi_help; /* IMSI help description. */
jjako7e051d32004-05-27 20:06:36 +000079 int nsapi_arg; /* NSAPI (default='0'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020080 char * nsapi_orig; /* NSAPI original value given at command line. */
81 const char *nsapi_help; /* NSAPI help description. */
jjako52c24142002-12-16 13:33:51 +000082 char * msisdn_arg; /* Mobile Station ISDN number (default='46702123456'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020083 char * msisdn_orig; /* Mobile Station ISDN number original value given at command line. */
84 const char *msisdn_help; /* Mobile Station ISDN number help description. */
jjako52c24142002-12-16 13:33:51 +000085 int qos_arg; /* Requested quality of service (default='0x0b921f'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020086 char * qos_orig; /* Requested quality of service original value given at command line. */
87 const char *qos_help; /* Requested quality of service help description. */
jjako7e051d32004-05-27 20:06:36 +000088 int charging_arg; /* Charging characteristics (default='0x0800'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020089 char * charging_orig; /* Charging characteristics original value given at command line. */
90 const char *charging_help; /* Charging characteristics help description. */
jjako52c24142002-12-16 13:33:51 +000091 char * uid_arg; /* Login user ID (default='mig'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020092 char * uid_orig; /* Login user ID original value given at command line. */
93 const char *uid_help; /* Login user ID help description. */
jjako52c24142002-12-16 13:33:51 +000094 char * pwd_arg; /* Login password (default='hemmelig'). */
Harald Welte1b3e5772010-05-04 11:13:56 +020095 char * pwd_orig; /* Login password original value given at command line. */
96 const char *pwd_help; /* Login password help description. */
jjako5da68452003-01-28 16:08:47 +000097 int createif_flag; /* Create local network interface (default=off). */
Harald Welte1b3e5772010-05-04 11:13:56 +020098 const char *createif_help; /* Create local network interface help description. */
jjako193e8b12003-11-10 12:31:41 +000099 char * net_arg; /* Network address for local interface. */
Harald Welte1b3e5772010-05-04 11:13:56 +0200100 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. */
jjakoa7cd2492003-04-11 09:40:12 +0000102 int defaultroute_flag; /* Create default route (default=off). */
Harald Welte1b3e5772010-05-04 11:13:56 +0200103 const char *defaultroute_help; /* Create default route help description. */
jjako5da68452003-01-28 16:08:47 +0000104 char * ipup_arg; /* Script to run after link-up. */
Harald Welte1b3e5772010-05-04 11:13:56 +0200105 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. */
jjako5da68452003-01-28 16:08:47 +0000107 char * ipdown_arg; /* Script to run after link-down. */
Harald Welte1b3e5772010-05-04 11:13:56 +0200108 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. */
jjako5da68452003-01-28 16:08:47 +0000110 char * pinghost_arg; /* Ping remote host. */
Harald Welte1b3e5772010-05-04 11:13:56 +0200111 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. */
jjako5da68452003-01-28 16:08:47 +0000122 int pingquiet_flag; /* Do not print ping packet info (default=off). */
Harald Welte1b3e5772010-05-04 11:13:56 +0200123 const char *pingquiet_help; /* Do not print ping packet info help description. */
124
jjako52c24142002-12-16 13:33:51 +0000125 int help_given ; /* Whether help was given. */
126 int version_given ; /* Whether version was given. */
jjako52c24142002-12-16 13:33:51 +0000127 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. */
jjako52c24142002-12-16 13:33:51 +0000134 int contexts_given ; /* Whether contexts was given. */
jjako52c24142002-12-16 13:33:51 +0000135 int timelimit_given ; /* Whether timelimit was given. */
jjako193e8b12003-11-10 12:31:41 +0000136 int gtpversion_given ; /* Whether gtpversion was given. */
jjako52c24142002-12-16 13:33:51 +0000137 int apn_given ; /* Whether apn was given. */
jjako1a51df72004-07-20 08:30:21 +0000138 int selmode_given ; /* Whether selmode was given. */
Yann BONNAMY944dce32010-10-29 17:07:44 +0200139 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. */
jjako52c24142002-12-16 13:33:51 +0000143 int imsi_given ; /* Whether imsi was given. */
jjako193e8b12003-11-10 12:31:41 +0000144 int nsapi_given ; /* Whether nsapi was given. */
jjako52c24142002-12-16 13:33:51 +0000145 int msisdn_given ; /* Whether msisdn was given. */
146 int qos_given ; /* Whether qos was given. */
jjako7e051d32004-05-27 20:06:36 +0000147 int charging_given ; /* Whether charging was given. */
jjako52c24142002-12-16 13:33:51 +0000148 int uid_given ; /* Whether uid was given. */
149 int pwd_given ; /* Whether pwd was given. */
jjako5da68452003-01-28 16:08:47 +0000150 int createif_given ; /* Whether createif was given. */
jjako193e8b12003-11-10 12:31:41 +0000151 int net_given ; /* Whether net was given. */
jjakoa7cd2492003-04-11 09:40:12 +0000152 int defaultroute_given ; /* Whether defaultroute was given. */
jjako5da68452003-01-28 16:08:47 +0000153 int ipup_given ; /* Whether ipup was given. */
154 int ipdown_given ; /* Whether ipdown was given. */
jjako5da68452003-01-28 16:08:47 +0000155 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. */
jjako52c24142002-12-16 13:33:51 +0000160
161} ;
162
Harald Welte1b3e5772010-05-04 11:13:56 +0200163extern const char *gengetopt_args_info_purpose;
164extern const char *gengetopt_args_info_usage;
165extern const char *gengetopt_args_info_help[];
166
167int cmdline_parser (int argc, char * const *argv,
168 struct gengetopt_args_info *args_info);
169int cmdline_parser2 (int argc, char * const *argv,
170 struct gengetopt_args_info *args_info,
171 int override, int initialize, int check_required);
172int cmdline_parser_file_save(const char *filename,
173 struct gengetopt_args_info *args_info);
jjako52c24142002-12-16 13:33:51 +0000174
175void cmdline_parser_print_help(void);
176void cmdline_parser_print_version(void);
177
Harald Welte1b3e5772010-05-04 11:13:56 +0200178void cmdline_parser_init (struct gengetopt_args_info *args_info);
179void cmdline_parser_free (struct gengetopt_args_info *args_info);
180
181int cmdline_parser_configfile (char * const filename,
182 struct gengetopt_args_info *args_info,
183 int override, int initialize, int check_required);
184
185int cmdline_parser_required (struct gengetopt_args_info *args_info,
186 const char *prog_name);
187
jjako52c24142002-12-16 13:33:51 +0000188
189#ifdef __cplusplus
190}
191#endif /* __cplusplus */
Harald Welte1b3e5772010-05-04 11:13:56 +0200192#endif /* CMDLINE_H */