summaryrefslogtreecommitdiff
path: root/qemu-config.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2010-03-15 17:01:24 +0100
committerKevin Wolf <kwolf@redhat.com>2010-04-23 16:08:45 +0200
commit4d24cfc7cb3dd266f25212d56d3ab489a7209dc8 (patch)
treeb4066fc7c1369efe2c7312c16550d8bb5b82f0da /qemu-config.c
parentd12049309c92704f56472bf1aa7b8abef5b1bca7 (diff)
downloadqemu-4d24cfc7cb3dd266f25212d56d3ab489a7209dc8.tar.gz
qemu-4d24cfc7cb3dd266f25212d56d3ab489a7209dc8.tar.bz2
qemu-4d24cfc7cb3dd266f25212d56d3ab489a7209dc8.zip
Make qemu-config available for tools
To be able to use config files for blkdebug, we need to make these functions available in the tools. This involves moving two functions that can only be built in the context of the emulator. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/qemu-config.c b/qemu-config.c
index 9b5fe78fdc..9f0f1435fd 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -378,23 +378,6 @@ int qemu_global_option(const char *str)
return 0;
}
-static int qemu_add_one_global(QemuOpts *opts, void *opaque)
-{
- GlobalProperty *g;
-
- g = qemu_mallocz(sizeof(*g));
- g->driver = qemu_opt_get(opts, "driver");
- g->property = qemu_opt_get(opts, "property");
- g->value = qemu_opt_get(opts, "value");
- qdev_prop_register_global(g);
- return 0;
-}
-
-void qemu_add_globals(void)
-{
- qemu_opts_foreach(&qemu_global_opts, qemu_add_one_global, NULL, 0);
-}
-
struct ConfigWriteData {
QemuOptsList *list;
FILE *fp;