2016-06-29 10:12:57 +02:00
|
|
|
#ifndef QEMU_CONFIG_FILE_H
|
|
|
|
#define QEMU_CONFIG_FILE_H
|
2009-09-10 10:58:34 +02:00
|
|
|
|
2021-05-24 12:57:50 +02:00
|
|
|
typedef void QEMUConfigCB(const char *group, QDict *qdict, void *opaque, Error **errp);
|
|
|
|
|
2021-05-18 15:08:17 +02:00
|
|
|
void qemu_load_module_for_opts(const char *group);
|
2010-02-10 20:09:14 +01:00
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
2012-03-28 19:16:37 +02:00
|
|
|
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
|
2014-03-06 10:39:24 +01:00
|
|
|
QemuOpts *qemu_find_opts_singleton(const char *group);
|
|
|
|
|
2010-08-20 13:52:00 +02:00
|
|
|
void qemu_add_opts(QemuOptsList *list);
|
2013-11-09 05:15:47 +01:00
|
|
|
void qemu_add_drive_opts(QemuOptsList *list);
|
2009-12-08 13:11:34 +01:00
|
|
|
int qemu_global_option(const char *str);
|
2009-09-10 10:58:34 +02:00
|
|
|
|
2021-02-26 18:08:16 +01:00
|
|
|
int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname,
|
|
|
|
Error **errp);
|
2009-10-14 10:39:26 +02:00
|
|
|
|
2021-05-24 12:57:50 +02:00
|
|
|
/* A default callback for qemu_read_config_file(). */
|
|
|
|
void qemu_config_do_parse(const char *group, QDict *qdict, void *opaque, Error **errp);
|
|
|
|
|
|
|
|
int qemu_read_config_file(const char *filename, QEMUConfigCB *f, Error **errp);
|
2010-03-05 17:25:55 +01:00
|
|
|
|
2013-12-20 19:28:05 +01: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 10:12:57 +02:00
|
|
|
#endif /* QEMU_CONFIG_FILE_H */
|