Allow options to specify intervals
[fio.git] / parse.h
diff --git a/parse.h b/parse.h
index 091923e3cedf376d88a8ffdc1780b09270b71e99..e1b9311cc4bf4b5364ee2c39fb01fd1d53322b6f 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -51,6 +51,7 @@ struct fio_option {
        int minval;
        double maxfp;                   /* max and min floating value */
        double minfp;
+       unsigned int interval;          /* client hint for suitable interval */
        unsigned int maxlen;            /* max length */
        int neg;                        /* negate value stored */
        int prio;
@@ -61,11 +62,12 @@ struct fio_option {
        const char *parent;             /* parent option */
        int (*verify)(struct fio_option *, void *);
        const char *prof_name;          /* only valid for specific profile */
+       unsigned int category;          /* for type grouping */
 };
 
 typedef int (str_cb_fn)(void *, char *);
 
-extern int parse_option(const char *, const char *, struct fio_option *, void *);
+extern int parse_option(char *, const char *, struct fio_option *, struct fio_option **, void *);
 extern void sort_options(char **, struct fio_option *, int);
 extern int parse_cmd_option(const char *t, const char *l, struct fio_option *, void *);
 extern int show_cmd_help(struct fio_option *, const char *);
@@ -77,6 +79,7 @@ extern void options_free(struct fio_option *, void *);
 extern void strip_blank_front(char **);
 extern void strip_blank_end(char *);
 extern int str_to_decimal(const char *, long long *, int, void *);
+extern int check_str_bytes(const char *p, long long *val, void *data);
 
 /*
  * Handlers for the options