aboutsummaryrefslogtreecommitdiffstats
path: root/ggsn/cmdline.h
diff options
context:
space:
mode:
Diffstat (limited to 'ggsn/cmdline.h')
-rw-r--r--ggsn/cmdline.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/ggsn/cmdline.h b/ggsn/cmdline.h
new file mode 100644
index 0000000..e08cfe8
--- /dev/null
+++ b/ggsn/cmdline.h
@@ -0,0 +1,61 @@
+/* cmdline.h */
+
+/* File autogenerated by gengetopt version 2.8rc */
+
+#ifndef _cmdline_h
+#define _cmdline_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+/* Don't define PACKAGE and VERSION if we use automake. */
+#ifndef PACKAGE
+#define PACKAGE ""
+#endif
+
+#ifndef VERSION
+#define VERSION ""
+#endif
+
+struct gengetopt_args_info
+{
+ int fg_flag; /* Run in foreground (default=off). */
+ int debug_flag; /* Run in debug mode (default=off). */
+ char * conf_arg; /* Read configuration file (default='/etc/ggsn.conf'). */
+ char * pidfile_arg; /* Filename of process id file (default='/var/run/ggsn.pid'). */
+ char * statedir_arg; /* Directory of nonvolatile data (default='/var/lib/ggsn/'). */
+ char * listen_arg; /* Local interface. */
+ char * net_arg; /* Network (default='192.168.0.0'). */
+ char * mask_arg; /* Network mask (default='255.255.255.0'). */
+ int timelimit_arg; /* Exit after timelimit seconds (default='0'). */
+ char * apn_arg; /* Access point name (default='internet'). */
+ int qos_arg; /* Requested quality of service (default='0x0b921f'). */
+
+ int help_given ; /* Whether help was given. */
+ int version_given ; /* Whether version was given. */
+ int fg_given ; /* Whether fg was given. */
+ int debug_given ; /* Whether debug was given. */
+ int conf_given ; /* Whether conf was given. */
+ int pidfile_given ; /* Whether pidfile was given. */
+ int statedir_given ; /* Whether statedir was given. */
+ int listen_given ; /* Whether listen was given. */
+ int net_given ; /* Whether net was given. */
+ int mask_given ; /* Whether mask was given. */
+ int timelimit_given ; /* Whether timelimit was given. */
+ int apn_given ; /* Whether apn was given. */
+ int qos_given ; /* Whether qos was given. */
+
+} ;
+
+int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
+
+void cmdline_parser_print_help(void);
+void cmdline_parser_print_version(void);
+
+int cmdline_parser_configfile (char * const filename, struct gengetopt_args_info *args_info, int override);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* _cmdline_h */