Prefix external io engine loading with 'external'
[fio.git] / parse.h
diff --git a/parse.h b/parse.h
index 2d4b55ec30999b932e9f3823981ba171191869a2..214e56b4769d9c5a5faa3b2589e6b85f5e81b3ad 100644 (file)
--- a/parse.h
+++ b/parse.h
@@ -16,11 +16,22 @@ enum fio_opt_type {
        FIO_OPT_STR_SET,
 };
 
+/*
+ * Match a possible value string with the integer option.
+ */
+struct value_pair {
+       const char *ival;               /* string option */
+       unsigned int oval;              /* output value */
+};
+
+#define PARSE_MAX_VP   16
+
 /*
  * Option define
  */
 struct fio_option {
        const char *name;               /* option name */
+       const char *alias;              /* possible old allowed name */
        enum fio_opt_type type;         /* option type */
        unsigned int off1;              /* potential parameters */
        unsigned int off2;
@@ -28,10 +39,11 @@ struct fio_option {
        unsigned int off4;
        unsigned int maxval;            /* max and min value */
        int minval;
+       int neg;                        /* negate value stored */
        void *cb;                       /* callback */
        const char *help;               /* help text for option */
        const char *def;                /* default setting */
-       const char *posval[16];         /* possible values */
+       const struct value_pair posval[PARSE_MAX_VP];/* possible values */
 };
 
 typedef int (str_cb_fn)(void *, char *);