aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/arg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prc1/arg.h')
-rw-r--r--src/prc1/arg.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/prc1/arg.h b/src/prc1/arg.h
new file mode 100644
index 0000000..efa623f
--- /dev/null
+++ b/src/prc1/arg.h
@@ -0,0 +1,23 @@
+#ifndef ARG_H
+#define ARG_H
+
+#include <stddef.h>
+
+struct arg_input
+{
+ const char **v;
+ size_t n;
+};
+
+struct args
+{
+ const char *name, *src;
+ const struct arg *arg;
+ struct arg_input incs;
+};
+
+int arg(struct args *a, const char *arg);
+void arg_defaults(struct args *a);
+void arg_free(struct args *a);
+
+#endif