aboutsummaryrefslogtreecommitdiff
path: root/qemu-config.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-18 19:48:33 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 16:58:32 +0100
commitcf5a65aaaf3e9382e50df550ba049a1c8691a5dd (patch)
treecefb10d2cab499ba0d7c76682503a309c187dc4a /qemu-config.h
parent65abca0a3441fb47024553e7676f6f3eef685a32 (diff)
downloadqemu-cf5a65aaaf3e9382e50df550ba049a1c8691a5dd.zip
qemu-cf5a65aaaf3e9382e50df550ba049a1c8691a5dd.tar.gz
qemu-cf5a65aaaf3e9382e50df550ba049a1c8691a5dd.tar.bz2
error: Track locations in configuration files
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:)
Diffstat (limited to 'qemu-config.h')
-rw-r--r--qemu-config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-config.h b/qemu-config.h
index b335c42..c507687 100644
--- a/qemu-config.h
+++ b/qemu-config.h
@@ -16,6 +16,6 @@ int qemu_global_option(const char *str);
void qemu_add_globals(void);
void qemu_config_write(FILE *fp);
-int qemu_config_parse(FILE *fp);
+int qemu_config_parse(FILE *fp, const char *fname);
#endif /* QEMU_CONFIG_H */