summaryrefslogtreecommitdiff
path: root/profile.h
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2010-03-04 14:30:02 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-03-04 14:30:02 +0100
commit2363d8df7c0c6fe0613dc8e7ae2fa6f098cbc0d8 (patch)
tree4e01a556596c3ed2112cebefc23304abfc5fd753 /profile.h
parente2de69dac799a1eecac1b52085f908729591ef5a (diff)
downloadfio-2363d8df7c0c6fe0613dc8e7ae2fa6f098cbc0d8.tar.gz
More progress on per-profile options support
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/profile.h b/profile.h
index 5268d4ae..8ea77d9b 100644
--- a/profile.h
+++ b/profile.h
@@ -3,16 +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 *);