mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
dcfb0939bd
Introduce a new function qemu_read_config_file which reads the VM configuration from a config file. Unlike qemu_config_parse it doesn't take a open file but a filename and reduces code duplication as a side effect. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
25 lines
701 B
C
25 lines
701 B
C
#ifndef QEMU_CONFIG_H
|
|
#define QEMU_CONFIG_H
|
|
|
|
extern QemuOptsList qemu_drive_opts;
|
|
extern QemuOptsList qemu_chardev_opts;
|
|
extern QemuOptsList qemu_device_opts;
|
|
extern QemuOptsList qemu_netdev_opts;
|
|
extern QemuOptsList qemu_net_opts;
|
|
extern QemuOptsList qemu_rtc_opts;
|
|
extern QemuOptsList qemu_global_opts;
|
|
extern QemuOptsList qemu_mon_opts;
|
|
extern QemuOptsList qemu_cpudef_opts;
|
|
|
|
QemuOptsList *qemu_find_opts(const char *group);
|
|
int qemu_set_option(const char *str);
|
|
int qemu_global_option(const char *str);
|
|
void qemu_add_globals(void);
|
|
|
|
void qemu_config_write(FILE *fp);
|
|
int qemu_config_parse(FILE *fp, const char *fname);
|
|
|
|
int qemu_read_config_file(const char *filename);
|
|
|
|
#endif /* QEMU_CONFIG_H */
|