[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/19] qemu-char: move spice registration to spice-q
From: |
Anthony Liguori |
Subject: |
[Qemu-devel] [PATCH 14/19] qemu-char: move spice registration to spice-qemu-char.c |
Date: |
Mon, 18 Feb 2013 15:48:11 -0600 |
Signed-off-by: Anthony Liguori <address@hidden>
---
qemu-char.c | 6 ------
spice-qemu-char.c | 10 ++++++++++
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 0c375f9..8b4c9a5 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -3681,12 +3681,6 @@ static void register_types(void)
|| defined(__FreeBSD_kernel__)
register_char_driver("parport", qemu_chr_open_pp);
#endif
-#ifdef CONFIG_SPICE
- register_char_driver("spicevmc", qemu_chr_open_spice);
-#if SPICE_SERVER_VERSION >= 0x000c02
- register_char_driver("spiceport", qemu_chr_open_spice_port);
-#endif
-#endif
}
type_init(register_types);
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);
--
1.8.0
- [Qemu-devel] [PATCH 00/19] chardev flow control, Anthony Liguori, 2013/02/19
- [Qemu-devel] [PATCH 07/19] qemu-char: tcp: make use GIOChannel, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 08/19] qemu-char: add watch support, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 06/19] qemu-char: convert UDP to GIOChannel, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 09/19] qemu-char: add pty watch, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 10/19] char: add gio watch fn for tcp backends, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 11/19] qemu-char: use a glib timeout instead of qemu-timer, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 12/19] qemu-char: remove use of QEMUTimer in favor of glib idle function, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 13/19] qemu-char: make char drivers dynamically registerable, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 14/19] qemu-char: move spice registration to spice-qemu-char.c,
Anthony Liguori <=
- [Qemu-devel] [PATCH 19/19] virtio: console: add flow control, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 18/19] serial: add flow control to transmit, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 15/19] qemu-char: move baum registration to baum.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 16/19] qemu-char: move msmouse registeration to msmouse.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 17/19] qemu-char: move text console init to console.c, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 02/19] qemu-char: remove dead/confusing logic with nb_stdio_clients, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 04/19] qemu-char: convert fd_chr to use a GIOChannel, Anthony Liguori, 2013/02/18
- [Qemu-devel] [PATCH 05/19] qemu-char: convert pty to GIOChannel, Anthony Liguori, 2013/02/19
- Re: [Qemu-devel] [PATCH 00/19] chardev flow control, Amit Shah, 2013/02/19
- Re: [Qemu-devel] [PATCH 00/19] chardev flow control, Hans de Goede, 2013/02/19