4 #include "qemu/option.h"
5 #include "qapi/qmp/qdict.h"
7 QemuOptsList
*qemu_find_opts(const char *group
);
8 QemuOptsList
*qemu_find_opts_err(const char *group
, Error
**errp
);
9 QemuOpts
*qemu_find_opts_singleton(const char *group
);
11 void qemu_add_opts(QemuOptsList
*list
);
12 void qemu_add_drive_opts(QemuOptsList
*list
);
13 int qemu_set_option(const char *str
);
14 int qemu_global_option(const char *str
);
15 void qemu_add_globals(void);
17 void qemu_config_write(FILE *fp
);
18 int qemu_config_parse(FILE *fp
, QemuOptsList
**lists
, const char *fname
);
20 int qemu_read_config_file(const char *filename
);
22 /* Parse QDict options as a replacement for a config file (allowing multiple
23 enumerated (0..(n-1)) configuration "sections") */
24 void qemu_config_parse_qdict(QDict
*options
, QemuOptsList
**lists
,
27 /* Read default QEMU config files
29 int qemu_read_default_config_files(bool userconfig
);
31 #endif /* QEMU_CONFIG_H */