projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prefix external io engine loading with 'external'
[fio.git]
/
parse.h
diff --git
a/parse.h
b/parse.h
index 7374c258ab95a339cff8853707a567df2ad68422..214e56b4769d9c5a5faa3b2589e6b85f5e81b3ad 100644
(file)
--- a/
parse.h
+++ b/
parse.h
@@
-16,6
+16,16
@@
enum fio_opt_type {
FIO_OPT_STR_SET,
};
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
*/
/*
* Option define
*/
@@
-33,7
+43,7
@@
struct fio_option {
void *cb; /* callback */
const char *help; /* help text for option */
const char *def; /* default setting */
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 *);
};
typedef int (str_cb_fn)(void *, char *);