From 191bc01bc970bd1e86f34ddeab896b2b27fd5124 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Thu, 10 Sep 2009 10:58:35 +0200 Subject: switch chardev to QemuOpts: infrastructure, null device start switching chardevs to QemuOpts. This patch adds the infrastructure and converts the null device. The patch brings two new functions: qemu_chr_open_opts() same as qemu_chr_open(), but uses QemuOpts instead of a option char string. qemu_chr_parse_compat() accepts a traditional chardev option string, returns the corresponding QemuOpts instance, to handle backward compatibility. The patch also adds a new -chardev switch which can be used to create named+unconnected chardevs, like this: -chardev null,id=test This uses the new qemu_chr_open_opts. Thus with this patch alone only the null device works. The other devices will follow ... Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori --- qemu-config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qemu-config.h') diff --git a/qemu-config.h b/qemu-config.h index e49d715091..13b0f19304 100644 --- a/qemu-config.h +++ b/qemu-config.h @@ -2,6 +2,7 @@ #define QEMU_CONFIG_H extern QemuOptsList qemu_drive_opts; +extern QemuOptsList qemu_chardev_opts; extern QemuOptsList qemu_device_opts; int qemu_set_option(const char *str); -- cgit v1.2.3