mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
ed7fa564cb
We want to make it independent of QemuOpts. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
24 lines
790 B
C
24 lines
790 B
C
#ifndef QEMU_CONFIG_FILE_H
|
|
#define QEMU_CONFIG_FILE_H
|
|
|
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
|
QemuOptsList *qemu_find_opts_err(const char *group, Error **errp);
|
|
QemuOpts *qemu_find_opts_singleton(const char *group);
|
|
|
|
void qemu_add_opts(QemuOptsList *list);
|
|
void qemu_add_drive_opts(QemuOptsList *list);
|
|
int qemu_global_option(const char *str);
|
|
|
|
void qemu_config_write(FILE *fp);
|
|
int qemu_config_parse(FILE *fp, QemuOptsList **lists, const char *fname);
|
|
|
|
int qemu_read_config_file(const char *filename);
|
|
|
|
/* 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);
|
|
|
|
#endif /* QEMU_CONFIG_FILE_H */
|