From 26c60614524f41bc9016cbe27eaefe59473d3461 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Tue, 5 Mar 2013 23:21:29 +0530 Subject: qemu-char: move spice registration to spice-qemu-char.c Signed-off-by: Anthony Liguori Signed-off-by: Amit Shah Message-id: 49a8d12eeb117e5530b2fab02af7681b54f9245c.1362505276.git.amit.shah@redhat.com Signed-off-by: Anthony Liguori --- spice-qemu-char.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spice-qemu-char.c') diff --git a/spice-qemu-char.c b/spice-qemu-char.c index a4d7de8..aea3d24 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); -- cgit v1.1