New LOC_FILE. Use it for tracking file name and line number in
qemu_config_parse(). We now report errors like
qemu:foo.conf:42: Did not find I2C bus for smbus-eeprom
In particular, gems like this message:
-device: no driver specified
become almost nice now:
qemu:foo.conf:44: -device: no driver specified
(A later commit will get rid of the bogus -device:)
22 lines
602 B
C
22 lines
602 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;
|
|
|
|
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);
|
|
|
|
#endif /* QEMU_CONFIG_H */
|