Add profile description
[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];
e58eb86d 9 char desc[64];
79d16311
JA
10 int flags;
11
2363d8df
JA
12 /*
13 * Profile specific options
14 */
e2de69da 15 struct fio_option *options;
2363d8df
JA
16
17 /*
18 * Called after parsing options, to prepare 'cmdline'
19 */
20 void (*prep_cmd)(void);
21
22 /*
23 * The complete command line
24 */
25 const char **cmdline;
79d16311
JA
26};
27
07b3232d 28int register_profile(struct profile_ops *);
79d16311
JA
29void unregister_profile(struct profile_ops *);
30int load_profile(const char *);
31
32#endif