blob: 17f7c1842692d2262d5b324785efaae60839532a [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" {
Harald Weltebed35df2011-11-02 13:06:18 +010015#endif /* __cplusplus */
jjako52c24142002-12-16 13:33:51 +000016
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
Harald Weltebed35df2011-11-02 13:06:18 +010025 struct gengetopt_args_info {
26 const char *help_help; /* Print help and exit help description. */
27 const char *version_help; /* Print version and exit help description. */
28 int debug_flag; /* Run in debug mode (default=off). */
29 const char *debug_help; /* Run in debug mode help description. */
30 char *conf_arg; /* Read configuration file. */
31 char *conf_orig; /* Read configuration file original value given at command line. */
32 const char *conf_help; /* Read configuration file help description. */
33 char *pidfile_arg; /* Filename of process id file (default='./sgsnemu.pid'). */
34 char *pidfile_orig; /* Filename of process id file original value given at command line. */
35 const char *pidfile_help; /* Filename of process id file help description. */
36 char *statedir_arg; /* Directory of nonvolatile data (default='./'). */
37 char *statedir_orig; /* Directory of nonvolatile data original value given at command line. */
38 const char *statedir_help; /* Directory of nonvolatile data help description. */
39 char *dns_arg; /* DNS Server to use. */
40 char *dns_orig; /* DNS Server to use original value given at command line. */
41 const char *dns_help; /* DNS Server to use help description. */
42 char *listen_arg; /* Local interface. */
43 char *listen_orig; /* Local interface original value given at command line. */
44 const char *listen_help; /* Local interface help description. */
45 char *remote_arg; /* Remote host. */
46 char *remote_orig; /* Remote host original value given at command line. */
47 const char *remote_help; /* Remote host help description. */
48 int contexts_arg; /* Number of contexts (default='1'). */
49 char *contexts_orig; /* Number of contexts original value given at command line. */
50 const char *contexts_help; /* Number of contexts help description. */
51 int timelimit_arg; /* Exit after timelimit seconds (default='0'). */
52 char *timelimit_orig; /* Exit after timelimit seconds original value given at command line. */
53 const char *timelimit_help; /* Exit after timelimit seconds help description. */
54 int gtpversion_arg; /* GTP version to use (default='1'). */
55 char *gtpversion_orig; /* GTP version to use original value given at command line. */
56 const char *gtpversion_help; /* GTP version to use help description. */
57 char *apn_arg; /* Access point name (default='internet'). */
58 char *apn_orig; /* Access point name original value given at command line. */
59 const char *apn_help; /* Access point name help description. */
60 int selmode_arg; /* Selection mode (default='0x01'). */
61 char *selmode_orig; /* Selection mode original value given at command line. */
62 const char *selmode_help; /* Selection mode help description. */
63 char *rattype_arg; /* Radio Access Technology Type (optional). */
64 char *rattype_orig;
65 char *rattype_help;
66 char *userloc_arg; /* User Location Information (optional). */
67 char *userloc_orig;
68 char *userloc_help;
69 char *rai_arg; /* Routing Area Information (optional). */
70 char *rai_orig;
71 char *rai_help;
72 char *mstz_arg; /* MS Time Zone (optional). */
73 char *mstz_orig;
74 char *mstz_help;
75 char *imeisv_arg; /* IMEI(SV) (optional). */
76 char *imeisv_orig;
77 char *imeisv_help;
78 char *imsi_arg; /* IMSI (default='240010123456789'). */
79 char *imsi_orig; /* IMSI original value given at command line. */
80 const char *imsi_help; /* IMSI help description. */
81 int nsapi_arg; /* NSAPI (default='0'). */
82 char *nsapi_orig; /* NSAPI original value given at command line. */
83 const char *nsapi_help; /* NSAPI help description. */
84 char *msisdn_arg; /* Mobile Station ISDN number (default='46702123456'). */
85 char *msisdn_orig; /* Mobile Station ISDN number original value given at command line. */
86 const char *msisdn_help; /* Mobile Station ISDN number help description. */
87 int qos_arg; /* Requested quality of service (default='0x0b921f'). */
88 char *qos_orig; /* Requested quality of service original value given at command line. */
89 const char *qos_help; /* Requested quality of service help description. */
90 unsigned long long int qose1_arg; /* Requested quality of service Extension 1 */
91 char *qose1_orig; /* Requested quality of service Extension 1 original value given at command line. */
92 int qose2_arg; /* Requested quality of service Extension 2 */
93 char *qose2_orig; /* Requested quality of service Extension 2 original value given at command line. */
94 int qose3_arg; /* Requested quality of service Extension 3 */
95 char *qose3_orig; /* Requested quality of service Extension 3 original value given at command line. */
96 int qose4_arg; /* Requested quality of service Extension 4 */
97 char *qose4_orig; /* Requested quality of service Extension 4 original value given at command line. */
98 int charging_arg; /* Charging characteristics (default='0x0800'). */
99 char *charging_orig; /* Charging characteristics original value given at command line. */
100 const char *charging_help; /* Charging characteristics help description. */
101 char *uid_arg; /* Login user ID (default='mig'). */
102 char *uid_orig; /* Login user ID original value given at command line. */
103 const char *uid_help; /* Login user ID help description. */
104 char *pwd_arg; /* Login password (default='hemmelig'). */
105 char *pwd_orig; /* Login password original value given at command line. */
106 const char *pwd_help; /* Login password help description. */
107 int createif_flag; /* Create local network interface (default=off). */
108 const char *createif_help; /* Create local network interface help description. */
109 char *net_arg; /* Network address for local interface. */
110 char *net_orig; /* Network address for local interface original value given at command line. */
111 const char *net_help; /* Network address for local interface help description. */
112 int defaultroute_flag; /* Create default route (default=off). */
113 const char *defaultroute_help; /* Create default route help description. */
114 char *ipup_arg; /* Script to run after link-up. */
115 char *ipup_orig; /* Script to run after link-up original value given at command line. */
116 const char *ipup_help; /* Script to run after link-up help description. */
117 char *ipdown_arg; /* Script to run after link-down. */
118 char *ipdown_orig; /* Script to run after link-down original value given at command line. */
119 const char *ipdown_help; /* Script to run after link-down help description. */
120 char *pinghost_arg; /* Ping remote host. */
121 char *pinghost_orig; /* Ping remote host original value given at command line. */
122 const char *pinghost_help; /* Ping remote host help description. */
123 int pingrate_arg; /* Number of ping req per second (default='1'). */
124 char *pingrate_orig; /* Number of ping req per second original value given at command line. */
125 const char *pingrate_help; /* Number of ping req per second help description. */
126 int pingsize_arg; /* Number of ping data bytes (default='56'). */
127 char *pingsize_orig; /* Number of ping data bytes original value given at command line. */
128 const char *pingsize_help; /* Number of ping data bytes help description. */
129 int pingcount_arg; /* Number of ping req to send (default='0'). */
130 char *pingcount_orig; /* Number of ping req to send original value given at command line. */
131 const char *pingcount_help; /* Number of ping req to send help description. */
132 int pingquiet_flag; /* Do not print ping packet info (default=off). */
133 const char *pingquiet_help; /* Do not print ping packet info help description. */
134 int norecovery_flag; /* Do not print ping packet info (default=off). */
135 const char *norecovery_help; /* Do not print ping packet info help description. */
jjako52c24142002-12-16 13:33:51 +0000136
Harald Weltebed35df2011-11-02 13:06:18 +0100137 int help_given; /* Whether help was given. */
138 int version_given; /* Whether version was given. */
139 int debug_given; /* Whether debug was given. */
140 int conf_given; /* Whether conf was given. */
141 int pidfile_given; /* Whether pidfile was given. */
142 int statedir_given; /* Whether statedir was given. */
143 int dns_given; /* Whether dns was given. */
144 int listen_given; /* Whether listen was given. */
145 int remote_given; /* Whether remote was given. */
146 int contexts_given; /* Whether contexts was given. */
147 int timelimit_given; /* Whether timelimit was given. */
148 int gtpversion_given; /* Whether gtpversion was given. */
149 int apn_given; /* Whether apn was given. */
150 int selmode_given; /* Whether selmode was given. */
151 int rattype_given; /* Whether rattype was given. */
152 int userloc_given; /* Whether userloc was given. */
153 int rai_given; /* Whether RAI was given. */
154 int mstz_given; /* Whether mstz was given. */
155 int imeisv_given; /* Whether imeisv was given. */
156 int imsi_given; /* Whether imsi was given. */
157 int nsapi_given; /* Whether nsapi was given. */
158 int msisdn_given; /* Whether msisdn was given. */
159 int qos_given; /* Whether qos was given. */
160 int qose1_given; /* Whether qos Extension 1 was given. */
161 int qose2_given; /* Whether qos Extension 2 was given. */
162 int qose3_given; /* Whether qos Extension 3 was given. */
163 int qose4_given; /* Whether qos Extension 4 was given. */
164 int charging_given; /* Whether charging was given. */
165 int uid_given; /* Whether uid was given. */
166 int pwd_given; /* Whether pwd was given. */
167 int createif_given; /* Whether createif was given. */
168 int net_given; /* Whether net was given. */
169 int defaultroute_given; /* Whether defaultroute was given. */
170 int ipup_given; /* Whether ipup was given. */
171 int ipdown_given; /* Whether ipdown was given. */
172 int pinghost_given; /* Whether pinghost was given. */
173 int pingrate_given; /* Whether pingrate was given. */
174 int pingsize_given; /* Whether pingsize was given. */
175 int pingcount_given; /* Whether pingcount was given. */
176 int pingquiet_given; /* Whether pingquiet was given. */
177 int norecovery_given; /* Whether norecovery was given. */
jjako52c24142002-12-16 13:33:51 +0000178
Harald Weltebed35df2011-11-02 13:06:18 +0100179 };
Harald Welte1b3e5772010-05-04 11:13:56 +0200180
Harald Weltebed35df2011-11-02 13:06:18 +0100181 extern const char *gengetopt_args_info_purpose;
182 extern const char *gengetopt_args_info_usage;
183 extern const char *gengetopt_args_info_help[];
jjako52c24142002-12-16 13:33:51 +0000184
Harald Weltebed35df2011-11-02 13:06:18 +0100185 int cmdline_parser(int argc, char *const *argv,
186 struct gengetopt_args_info *args_info);
187 int cmdline_parser2(int argc, char *const *argv,
188 struct gengetopt_args_info *args_info,
189 int override, int initialize, int check_required);
190 int cmdline_parser_file_save(const char *filename,
191 struct gengetopt_args_info *args_info);
jjako52c24142002-12-16 13:33:51 +0000192
Harald Weltebed35df2011-11-02 13:06:18 +0100193 void cmdline_parser_print_help(void);
194 void cmdline_parser_print_version(void);
Harald Welte1b3e5772010-05-04 11:13:56 +0200195
Harald Weltebed35df2011-11-02 13:06:18 +0100196 void cmdline_parser_init(struct gengetopt_args_info *args_info);
197 void cmdline_parser_free(struct gengetopt_args_info *args_info);
Harald Welte1b3e5772010-05-04 11:13:56 +0200198
Harald Weltebed35df2011-11-02 13:06:18 +0100199 int cmdline_parser_configfile(char *const filename,
200 struct gengetopt_args_info *args_info,
201 int override, int initialize,
202 int check_required);
Harald Welte1b3e5772010-05-04 11:13:56 +0200203
Harald Weltebed35df2011-11-02 13:06:18 +0100204 int cmdline_parser_required(struct gengetopt_args_info *args_info,
205 const char *prog_name);
jjako52c24142002-12-16 13:33:51 +0000206
207#ifdef __cplusplus
208}
Harald Weltebed35df2011-11-02 13:06:18 +0100209#endif /* __cplusplus */
210#endif /* CMDLINE_H */