gfio: improve option edit
Allow grouping of options into both categories, and groups. The
groups are within a category. This shrinks down the number of
job edit tabs a lot.
Work in progress...
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/parse.h b/parse.h
index 36154dd..030a180 100644
--- a/parse.h
+++ b/parse.h
@@ -40,6 +40,7 @@
*/
struct fio_option {
const char *name; /* option name */
+ const char *lname; /* long option name */
const char *alias; /* possible old allowed name */
enum fio_opt_type type; /* option type */
unsigned int off1; /* potential parameters */
@@ -63,7 +64,8 @@
int hide; /* hide if parent isn't set */
int (*verify)(struct fio_option *, void *);
const char *prof_name; /* only valid for specific profile */
- unsigned int category; /* for type grouping */
+ unsigned int category; /* what type of option */
+ unsigned int group; /* who to group with */
};
typedef int (str_cb_fn)(void *, char *);