aboutsummaryrefslogtreecommitdiff
path: root/include/ui/qemu-spice.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-02-25 12:39:06 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-03-13 10:27:46 +0100
commitcd153e2aa2f0ec39c04c2b732ebebfc6d4766986 (patch)
treef49f3d93d8ce23061debb120181db655027fb9f2 /include/ui/qemu-spice.h
parent548cbb36f415d6086f5252309ab5aa7634497ab5 (diff)
chardev: add spice support to qapi
This patch adds 'spicevmc' and 'spiceport' support to qapi and also switches over the spice chardev initialization to the new qapi code path.
Diffstat (limited to 'include/ui/qemu-spice.h')
-rw-r--r--include/ui/qemu-spice.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index 5a78fd764d..eba6d77d1d 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -44,10 +44,13 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
void do_info_spice_print(Monitor *mon, const QObject *data);
void do_info_spice(Monitor *mon, QObject **ret_data);
-CharDriverState *qemu_chr_open_spice(QemuOpts *opts);
+CharDriverState *qemu_chr_open_spice_vmc(const char *type);
#if SPICE_SERVER_VERSION >= 0x000c02
-CharDriverState *qemu_chr_open_spice_port(QemuOpts *opts);
+CharDriverState *qemu_chr_open_spice_port(const char *name);
void qemu_spice_register_ports(void);
+#else
+static inline CharDriverState *qemu_chr_open_spice_port(const char *name)
+{ return NULL; }
#endif
#else /* CONFIG_SPICE */