2016-06-29 08:12:57 +00:00
|
|
|
#ifndef QEMU_CONFIG_FILE_H
|
|
|
|
#define QEMU_CONFIG_FILE_H
|
2009-09-10 08:58:34 +00:00
|
|
|
|
2012-03-28 17:16:37 +00:00
|
|
|
|
2010-02-10 19:09:14 +00:00
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
2012-03-28 17:16:37 +00:00
|
|
|
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
|
2014-03-06 09:39:24 +00:00
|
|
|
QemuOpts *qemu_find_opts_singleton(const char *group);
|
|
|
|
|
2010-08-20 11:52:00 +00:00
|
|
|
void qemu_add_opts(QemuOptsList *list);
|
2013-11-09 04:15:47 +00:00
|
|
|
void qemu_add_drive_opts(QemuOptsList *list);
|
2009-07-31 10:25:36 +00:00
|
|
|
int qemu_set_option(const char *str);
|
2009-12-08 12:11:34 +00:00
|
|
|
int qemu_global_option(const char *str);
|
2009-09-10 08:58:34 +00:00
|
|
|
|
2009-10-14 08:39:26 +00:00
|
|
|
void qemu_config_write(FILE *fp);
|
2010-03-05 17:21:56 +00:00
|
|
|
int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
|
2009-10-14 08:39:26 +00:00
|
|
|
|
2010-03-05 16:25:55 +00:00
|
|
|
int qemu_read_config_file(const char *filename);
|
|
|
|
|
2013-12-20 18:28:05 +00:00
|
|
|
/* Parse QDict options as a replacement for a config file (allowing multiple
|
|
|
|
enumerated (0..(n-1)) configuration "sections") */
|
|
|
|
void qemu_config_parse_qdict(QDict *options, QemuOptsList **lists,
|
|
|
|
Error **errp);
|
|
|
|
|
2016-06-29 08:12:57 +00:00
|
|
|
#endif /* QEMU_CONFIG_FILE_H */
|