From 25920d6ad61b078a69b6ba401d4d6cd46ce83804 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 15 Mar 2010 17:01:24 +0100 Subject: 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 --- qemu-config.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'qemu-config.c') 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; -- cgit v1.2.3