blob: e08cfe89970d566d413fa881f0f75e984c0eb7ff [file] [log] [blame]
jjako52c24142002-12-16 13:33:51 +00001/* cmdline.h */
2
3/* File autogenerated by gengetopt version 2.8rc */
4
5#ifndef _cmdline_h
6#define _cmdline_h
7
8#ifdef __cplusplus
9extern "C" {
10#endif /* __cplusplus */
11
12/* Don't define PACKAGE and VERSION if we use automake. */
13#ifndef PACKAGE
14#define PACKAGE ""
15#endif
16
17#ifndef VERSION
18#define VERSION ""
19#endif
20
21struct gengetopt_args_info
22{
23 int fg_flag; /* Run in foreground (default=off). */
24 int debug_flag; /* Run in debug mode (default=off). */
25 char * conf_arg; /* Read configuration file (default='/etc/ggsn.conf'). */
26 char * pidfile_arg; /* Filename of process id file (default='/var/run/ggsn.pid'). */
27 char * statedir_arg; /* Directory of nonvolatile data (default='/var/lib/ggsn/'). */
28 char * listen_arg; /* Local interface. */
29 char * net_arg; /* Network (default='192.168.0.0'). */
30 char * mask_arg; /* Network mask (default='255.255.255.0'). */
31 int timelimit_arg; /* Exit after timelimit seconds (default='0'). */
32 char * apn_arg; /* Access point name (default='internet'). */
33 int qos_arg; /* Requested quality of service (default='0x0b921f'). */
34
35 int help_given ; /* Whether help was given. */
36 int version_given ; /* Whether version was given. */
37 int fg_given ; /* Whether fg was given. */
38 int debug_given ; /* Whether debug was given. */
39 int conf_given ; /* Whether conf was given. */
40 int pidfile_given ; /* Whether pidfile was given. */
41 int statedir_given ; /* Whether statedir was given. */
42 int listen_given ; /* Whether listen was given. */
43 int net_given ; /* Whether net was given. */
44 int mask_given ; /* Whether mask was given. */
45 int timelimit_given ; /* Whether timelimit was given. */
46 int apn_given ; /* Whether apn was given. */
47 int qos_given ; /* Whether qos was given. */
48
49} ;
50
51int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
52
53void cmdline_parser_print_help(void);
54void cmdline_parser_print_version(void);
55
56int cmdline_parser_configfile (char * const filename, struct gengetopt_args_info *args_info, int override);
57
58#ifdef __cplusplus
59}
60#endif /* __cplusplus */
61#endif /* _cmdline_h */