Fix klibc getopt_long_only() for optional arguments
[fio.git] / parse.h
diff --git a/parse.h b/parse.h
index c5a74171ae94e70cb45339b1b22fbd387579ccf5..cb0b48f5d95801093cf850ad74803228a889c717 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -29,6 +29,7 @@ struct value_pair {
        unsigned int oval;              /* output value */
        const char *help;               /* help text for sub option */
        int or;                         /* OR value */
+       void *cb;                       /* sub-option callback */
 };
 
 #define OPT_LEN_MAX    4096
@@ -71,6 +72,7 @@ extern int show_cmd_help(struct fio_option *, const char *);
 extern void fill_default_options(void *, struct fio_option *);
 extern void option_init(struct fio_option *);
 extern void options_init(struct fio_option *);
+extern void options_free(struct fio_option *, void *);
 
 extern void strip_blank_front(char **);
 extern void strip_blank_end(char *);