FIO_OPT_INT,
FIO_OPT_BOOL,
FIO_OPT_STR_SET,
+ FIO_OPT_DEPRECATED,
};
/*
struct value_pair {
const char *ival; /* string option */
unsigned int oval; /* output value */
+ const char *help; /* help text for sub option */
};
#define PARSE_MAX_VP 16
const char *help; /* help text for option */
const char *def; /* default setting */
const struct value_pair posval[PARSE_MAX_VP];/* possible values */
+ const char *parent; /* parent option */
};
typedef int (str_cb_fn)(void *, char *);
extern void strip_blank_front(char **);
extern void strip_blank_end(char *);
+extern int str_to_decimal(const char *, long long *, int);
/*
* Handlers for the options