parse: add support for unsupported options
[fio.git] / options.h
index 4727bac222ce33169b5f3dd213b5c931365c8f80..539a63667afb505ad6b61a8bc9b299297a8ed9dd 100644 (file)
--- a/options.h
+++ b/options.h
@@ -47,19 +47,8 @@ static inline bool o_match(struct fio_option *o, const char *opt)
        return false;
 }
 
        return false;
 }
 
-static inline struct fio_option *find_option(struct fio_option *options,
-                                            const char *opt)
-{
-       struct fio_option *o;
-
-       for (o = &options[0]; o->name; o++)
-               if (o_match(o, opt))
-                       return o;
-
-       return NULL;
-}
-
-extern struct fio_option *fio_option_find(const char *name);
+extern struct fio_option *find_option(struct fio_option *, const char *);
+extern struct fio_option *fio_option_find(const char *);
 extern unsigned int fio_get_kb_base(void *);
 
 #endif
 extern unsigned int fio_get_kb_base(void *);
 
 #endif