Make sure profile options get added to long_options[]
[fio.git] / profile.h
index 6b1960623f8bccb4fe177599efbfc1c63a131fb3..8ea77d9b6537a2c54897cd8ffee751ef42344bb3 100644 (file)
--- a/profile.h
+++ b/profile.h
@@ -3,15 +3,25 @@
 
 #include "flist.h"
 
-#define FIO_PROFILE_VERSION    1
-
 struct profile_ops {
        struct flist_head list;
        char name[32];
-       int version;
        int flags;
 
-       const char **def_ops;
+       /*
+        * Profile specific options
+        */
+       struct fio_option *options;
+
+       /*
+        * Called after parsing options, to prepare 'cmdline'
+        */
+       void (*prep_cmd)(void);
+
+       /*
+        * The complete command line
+        */
+       const char **cmdline;
 };
 
 void register_profile(struct profile_ops *);