Add support for inverse options
Options that are tied to each other, meaning that if one is
incremented by X, the other is decremented by X automatically.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/parse.h b/parse.h
index 030a180..fe3b6bc 100644
--- a/parse.h
+++ b/parse.h
@@ -62,10 +62,13 @@
struct value_pair posval[PARSE_MAX_VP];/* possible values */
const char *parent; /* parent option */
int hide; /* hide if parent isn't set */
+ const char *inverse; /* if set, apply opposite action to this option */
+ struct fio_option *inv_opt; /* cached lookup */
int (*verify)(struct fio_option *, void *);
const char *prof_name; /* only valid for specific profile */
unsigned int category; /* what type of option */
unsigned int group; /* who to group with */
+ void *gui_data;
};
typedef int (str_cb_fn)(void *, char *);