summaryrefslogtreecommitdiffstats
path: root/src/foodopts.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/foodopts.h')
-rw-r--r--src/foodopts.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/foodopts.h b/src/foodopts.h
index 544dd3f..c8b0686 100644
--- a/src/foodopts.h
+++ b/src/foodopts.h
@@ -11,6 +11,25 @@
* the parsing results.
*
*/
+struct foodoption {
+ const char *name;
+ int has_arg;
+ int *flag;
+ int val;
+ /* Extra values */
+ const char *help;
+ const char *arg;
+};
+
+int
+get_foodopt(int argc, char *const argv[],
+ const char *optstring,
+ const struct foodoption *longopts,
+ int *longindex);
+
+void
+foodopt_help(char * argv0,
+ const struct foodoption *longopts);
#endif /* __FOODOPTS_H */