summaryrefslogtreecommitdiff
path: root/spice-qemu-char.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2013-03-05 23:21:29 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2013-03-08 13:57:15 -0600
commit26c60614524f41bc9016cbe27eaefe59473d3461 (patch)
treebbd92197cab1d1f42425eb11683a426f1972195a /spice-qemu-char.c
parentd654f34ec8bf006f9b57a067e0f272ab94ee8e06 (diff)
downloadqemu-26c60614524f41bc9016cbe27eaefe59473d3461.tar.gz
qemu-26c60614524f41bc9016cbe27eaefe59473d3461.tar.bz2
qemu-26c60614524f41bc9016cbe27eaefe59473d3461.zip
qemu-char: move spice registration to spice-qemu-char.c
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Message-id: 49a8d12eeb117e5530b2fab02af7681b54f9245c.1362505276.git.amit.shah@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'spice-qemu-char.c')
-rw-r--r--spice-qemu-char.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/spice-qemu-char.c b/spice-qemu-char.c
index a4d7de8c4f..aea3d24e7d 100644
--- a/spice-qemu-char.c
+++ b/spice-qemu-char.c
@@ -307,3 +307,13 @@ void qemu_spice_register_ports(void)
}
}
#endif
+
+static void register_types(void)
+{
+ register_char_driver("spicevmc", qemu_chr_open_spice);
+#if SPICE_SERVER_VERSION >= 0x000c02
+ register_char_driver("spiceport", qemu_chr_open_spice_port);
+#endif
+}
+
+type_init(register_types);