diff options
author | Kevin Wolf <kwolf@redhat.com> | 2010-03-15 17:01:24 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-04-23 16:08:45 +0200 |
commit | 25920d6ad61b078a69b6ba401d4d6cd46ce83804 (patch) | |
tree | b4066fc7c1369efe2c7312c16550d8bb5b82f0da /qemu-config.c | |
parent | b9f66d96950b7c10253f9f27b9109df5ff8aa611 (diff) |
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.c | 17 |
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; |