aboutsummaryrefslogtreecommitdiff
path: root/src/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.h')
-rw-r--r--src/options.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/options.h b/src/options.h
new file mode 100644
index 0000000..4c81c11
--- /dev/null
+++ b/src/options.h
@@ -0,0 +1,33 @@
+#ifndef POTD_OPTIONS_H
+#define POTD_OPTIONS_H 1
+
+struct opt_list;
+
+typedef enum opt_name {
+ OPT_LOGTOFILE = 0, OPT_LOGFILE, OPT_LOGLEVEL,
+ OPT_DAEMON,
+ OPT_REDIRECT,
+ OPT_PROTOCOL,
+ OPT_JAIL,
+ OPT_ROOT,
+ OPT_NETNS_RUN_DIR,
+ OPT_SECCOMP_MINIMAL,
+
+ OPT_HELP,
+ OPT_MAX
+} opt_name;
+
+typedef int check_opt;
+
+
+int parse_cmdline(int argc, char **argv);
+
+int getopt_used(opt_name on);
+
+char *
+getopt_str(opt_name on);
+
+char *
+getopt_strlist(opt_name on, struct opt_list **ol);
+
+#endif