3 /* File autogenerated by gengetopt version 2.17 */
8 /* If we use autoconf. */
15 #endif /* __cplusplus */
17 #ifndef CMDLINE_PARSER_PACKAGE
18 #define CMDLINE_PARSER_PACKAGE PACKAGE
21 #ifndef CMDLINE_PARSER_VERSION
22 #define CMDLINE_PARSER_VERSION VERSION
25 struct gengetopt_args_info
27 const char *help_help
; /* Print help and exit help description. */
28 const char *version_help
; /* Print version and exit help description. */
29 int debug_flag
; /* Run in debug mode (default=off). */
30 const char *debug_help
; /* Run in debug mode help description. */
31 char * conf_arg
; /* Read configuration file. */
32 char * conf_orig
; /* Read configuration file original value given at command line. */
33 const char *conf_help
; /* Read configuration file help description. */
34 char * pidfile_arg
; /* Filename of process id file (default='./sgsnemu.pid'). */
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. */
37 char * statedir_arg
; /* Directory of nonvolatile data (default='./'). */
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. */
40 char * dns_arg
; /* DNS Server to use. */
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. */
43 char * listen_arg
; /* Local interface. */
44 char * listen_orig
; /* Local interface original value given at command line. */
45 const char *listen_help
; /* Local interface help description. */
46 char * remote_arg
; /* Remote host. */
47 char * remote_orig
; /* Remote host original value given at command line. */
48 const char *remote_help
; /* Remote host help description. */
49 int contexts_arg
; /* Number of contexts (default='1'). */
50 char * contexts_orig
; /* Number of contexts original value given at command line. */
51 const char *contexts_help
; /* Number of contexts help description. */
52 int timelimit_arg
; /* Exit after timelimit seconds (default='0'). */
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. */
55 int gtpversion_arg
; /* GTP version to use (default='1'). */
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. */
58 char * apn_arg
; /* Access point name (default='internet'). */
59 char * apn_orig
; /* Access point name original value given at command line. */
60 const char *apn_help
; /* Access point name help description. */
61 int selmode_arg
; /* Selection mode (default='0x01'). */
62 char * selmode_orig
; /* Selection mode original value given at command line. */
63 const char *selmode_help
; /* Selection mode help description. */
64 char * imsi_arg
; /* IMSI (default='240010123456789'). */
65 char * imsi_orig
; /* IMSI original value given at command line. */
66 const char *imsi_help
; /* IMSI help description. */
67 int nsapi_arg
; /* NSAPI (default='0'). */
68 char * nsapi_orig
; /* NSAPI original value given at command line. */
69 const char *nsapi_help
; /* NSAPI help description. */
70 char * msisdn_arg
; /* Mobile Station ISDN number (default='46702123456'). */
71 char * msisdn_orig
; /* Mobile Station ISDN number original value given at command line. */
72 const char *msisdn_help
; /* Mobile Station ISDN number help description. */
73 int qos_arg
; /* Requested quality of service (default='0x0b921f'). */
74 char * qos_orig
; /* Requested quality of service original value given at command line. */
75 const char *qos_help
; /* Requested quality of service help description. */
76 int charging_arg
; /* Charging characteristics (default='0x0800'). */
77 char * charging_orig
; /* Charging characteristics original value given at command line. */
78 const char *charging_help
; /* Charging characteristics help description. */
79 char * uid_arg
; /* Login user ID (default='mig'). */
80 char * uid_orig
; /* Login user ID original value given at command line. */
81 const char *uid_help
; /* Login user ID help description. */
82 char * pwd_arg
; /* Login password (default='hemmelig'). */
83 char * pwd_orig
; /* Login password original value given at command line. */
84 const char *pwd_help
; /* Login password help description. */
85 int createif_flag
; /* Create local network interface (default=off). */
86 const char *createif_help
; /* Create local network interface help description. */
87 char * net_arg
; /* Network address for local interface. */
88 char * net_orig
; /* Network address for local interface original value given at command line. */
89 const char *net_help
; /* Network address for local interface help description. */
90 int defaultroute_flag
; /* Create default route (default=off). */
91 const char *defaultroute_help
; /* Create default route help description. */
92 char * ipup_arg
; /* Script to run after link-up. */
93 char * ipup_orig
; /* Script to run after link-up original value given at command line. */
94 const char *ipup_help
; /* Script to run after link-up help description. */
95 char * ipdown_arg
; /* Script to run after link-down. */
96 char * ipdown_orig
; /* Script to run after link-down original value given at command line. */
97 const char *ipdown_help
; /* Script to run after link-down help description. */
98 char * pinghost_arg
; /* Ping remote host. */
99 char * pinghost_orig
; /* Ping remote host original value given at command line. */
100 const char *pinghost_help
; /* Ping remote host help description. */
101 int pingrate_arg
; /* Number of ping req per second (default='1'). */
102 char * pingrate_orig
; /* Number of ping req per second original value given at command line. */
103 const char *pingrate_help
; /* Number of ping req per second help description. */
104 int pingsize_arg
; /* Number of ping data bytes (default='56'). */
105 char * pingsize_orig
; /* Number of ping data bytes original value given at command line. */
106 const char *pingsize_help
; /* Number of ping data bytes help description. */
107 int pingcount_arg
; /* Number of ping req to send (default='0'). */
108 char * pingcount_orig
; /* Number of ping req to send original value given at command line. */
109 const char *pingcount_help
; /* Number of ping req to send help description. */
110 int pingquiet_flag
; /* Do not print ping packet info (default=off). */
111 const char *pingquiet_help
; /* Do not print ping packet info help description. */
113 int help_given
; /* Whether help was given. */
114 int version_given
; /* Whether version was given. */
115 int debug_given
; /* Whether debug was given. */
116 int conf_given
; /* Whether conf was given. */
117 int pidfile_given
; /* Whether pidfile was given. */
118 int statedir_given
; /* Whether statedir was given. */
119 int dns_given
; /* Whether dns was given. */
120 int listen_given
; /* Whether listen was given. */
121 int remote_given
; /* Whether remote was given. */
122 int contexts_given
; /* Whether contexts was given. */
123 int timelimit_given
; /* Whether timelimit was given. */
124 int gtpversion_given
; /* Whether gtpversion was given. */
125 int apn_given
; /* Whether apn was given. */
126 int selmode_given
; /* Whether selmode was given. */
127 int imsi_given
; /* Whether imsi was given. */
128 int nsapi_given
; /* Whether nsapi was given. */
129 int msisdn_given
; /* Whether msisdn was given. */
130 int qos_given
; /* Whether qos was given. */
131 int charging_given
; /* Whether charging was given. */
132 int uid_given
; /* Whether uid was given. */
133 int pwd_given
; /* Whether pwd was given. */
134 int createif_given
; /* Whether createif was given. */
135 int net_given
; /* Whether net was given. */
136 int defaultroute_given
; /* Whether defaultroute was given. */
137 int ipup_given
; /* Whether ipup was given. */
138 int ipdown_given
; /* Whether ipdown was given. */
139 int pinghost_given
; /* Whether pinghost was given. */
140 int pingrate_given
; /* Whether pingrate was given. */
141 int pingsize_given
; /* Whether pingsize was given. */
142 int pingcount_given
; /* Whether pingcount was given. */
143 int pingquiet_given
; /* Whether pingquiet was given. */
147 extern const char *gengetopt_args_info_purpose
;
148 extern const char *gengetopt_args_info_usage
;
149 extern const char *gengetopt_args_info_help
[];
151 int cmdline_parser (int argc
, char * const *argv
,
152 struct gengetopt_args_info
*args_info
);
153 int cmdline_parser2 (int argc
, char * const *argv
,
154 struct gengetopt_args_info
*args_info
,
155 int override
, int initialize
, int check_required
);
156 int cmdline_parser_file_save(const char *filename
,
157 struct gengetopt_args_info
*args_info
);
159 void cmdline_parser_print_help(void);
160 void cmdline_parser_print_version(void);
162 void cmdline_parser_init (struct gengetopt_args_info
*args_info
);
163 void cmdline_parser_free (struct gengetopt_args_info
*args_info
);
165 int cmdline_parser_configfile (char * const filename
,
166 struct gengetopt_args_info
*args_info
,
167 int override
, int initialize
, int check_required
);
169 int cmdline_parser_required (struct gengetopt_args_info
*args_info
,
170 const char *prog_name
);
175 #endif /* __cplusplus */
176 #endif /* CMDLINE_H */