X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=parse.h;h=a9d726dd94dadca481058432d8321ebb2f94b0ea;hb=867198458145fc405d1925e339719f779fb671c2;hp=c797b925bdc5066b9d570303055ccffb58dc7b53;hpb=0de5b26f6e177aacac0683306c47e0cbaf58b0b6;p=fio.git diff --git a/parse.h b/parse.h index c797b925..a9d726dd 100644 --- a/parse.h +++ b/parse.h @@ -73,6 +73,8 @@ struct fio_option { unsigned int group; /* who to group with */ void *gui_data; int is_seconds; /* time value with seconds base */ + int is_time; /* time based value */ + int no_warn_def; }; typedef int (str_cb_fn)(void *, char *); @@ -88,10 +90,10 @@ extern void options_free(struct fio_option *, void *); extern void strip_blank_front(char **); extern void strip_blank_end(char *); -extern int str_to_decimal(const char *, long long *, int, void *, int); +extern int str_to_decimal(const char *, long long *, int, void *, int, int); extern int check_str_bytes(const char *p, long long *val, void *data); extern int check_str_time(const char *p, long long *val, int); -extern int str_to_float(const char *str, double *val); +extern int str_to_float(const char *str, double *val, int is_time); /* * Handlers for the options