Cleanup profile support
This is closer to where it needs to end up. No ext_options, just
include profile options in the general option table (and mark them
private for that profile).
Profile options are only available after loading a specific profile,
so there should be less confusion.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/options.h b/options.h
index 96c81a1..cf823fc 100644
--- a/options.h
+++ b/options.h
@@ -1,18 +1,15 @@
#ifndef FIO_OPTION_H
#define FIO_OPTION_H
+#define FIO_MAX_OPTS 512
+
#include "parse.h"
#include "flist.h"
#define td_var_offset(var) ((size_t) &((struct thread_options *)0)->var)
-struct ext_option {
- struct flist_head list;
- const char *prof_name;
- struct fio_option o;
-};
-
-void register_ext_option(struct ext_option *);
-void prune_profile_options(const char *);
+int add_option(struct fio_option *);
+void invalidate_profile_options(const char *);
+extern char *exec_profile;
#endif