summaryrefslogtreecommitdiffstats
path: root/include/parseopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parseopt.h')
-rw-r--r--include/parseopt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/parseopt.h b/include/parseopt.h
new file mode 100644
index 0000000000..1f9763f8c9
--- /dev/null
+++ b/include/parseopt.h
@@ -0,0 +1,9 @@
+#ifndef __PARSEOPT_H__
+#define __PARSEOPT_H__
+
+void parseopt_b(const char *options, const char *opt, bool *val);
+void parseopt_hu(const char *options, const char *opt, unsigned short *val);
+void parseopt_u16(const char *options, const char *opt, uint16_t *val);
+void parseopt_str(const char *options, const char *opt, char **val);
+
+#endif /* __PARSEOPT_H__ */