Cleanup profile support
[fio.git] / profile.h
CommitLineData
79d16311
JA
1#ifndef FIO_PROFILE_H
2#define FIO_PROFILE_H
3
4#include "flist.h"
5
79d16311
JA
6struct profile_ops {
7 struct flist_head list;
8 char name[32];
79d16311
JA
9 int flags;
10
2363d8df
JA
11 /*
12 * Profile specific options
13 */
e2de69da 14 struct fio_option *options;
2363d8df
JA
15
16 /*
17 * Called after parsing options, to prepare 'cmdline'
18 */
19 void (*prep_cmd)(void);
20
21 /*
22 * The complete command line
23 */
24 const char **cmdline;
79d16311
JA
25};
26
07b3232d 27int register_profile(struct profile_ops *);
79d16311
JA
28void unregister_profile(struct profile_ops *);
29int load_profile(const char *);
30
31#endif