aboutsummaryrefslogtreecommitdiffstats
path: root/l4arg/l4arg.h
diff options
context:
space:
mode:
Diffstat (limited to 'l4arg/l4arg.h')
-rw-r--r--l4arg/l4arg.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/l4arg/l4arg.h b/l4arg/l4arg.h
new file mode 100644
index 0000000..8a70376
--- /dev/null
+++ b/l4arg/l4arg.h
@@ -0,0 +1,24 @@
+#ifndef L4LIB_ARG_PARSER
+#define L4LIB_ARG_PARSER
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+char** l4arg_toargv(const char*, const char*, const char*, const char*);
+
+typedef struct l4lib_qarg {
+ char* arg_name;
+ char* arg_value;
+} L4QARG;
+
+L4QARG* l4qarg_parse(const char*);
+void l4qarg_free(L4QARG*);
+#define l4qarg_n(qargitem) ((qargitem).arg_name)
+#define l4qarg_v(qargitem) ((qargitem).arg_value)
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif