[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/20] qemu-char: move spice registration to spice-q
From: |
Amit Shah |
Subject: |
[Qemu-devel] [PATCH 14/20] qemu-char: move spice registration to spice-qemu-char.c |
Date: |
Tue, 5 Mar 2013 23:21:29 +0530 |
From: Anthony Liguori <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Signed-off-by: Amit Shah <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 9bcdf73..2e9f92e 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -3690,12 +3690,6 @@ static void register_types(void)
register_char_driver("parallel", qemu_chr_open_pp);
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.1.2
- [Qemu-devel] [PATCH 08/20] qemu-char: add watch support, (continued)
- [Qemu-devel] [PATCH 12/20] qemu-char: remove use of QEMUTimer in favor of glib idle function, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 13/20] qemu-char: make char drivers dynamically registerable, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 14/20] qemu-char: move spice registration to spice-qemu-char.c,
Amit Shah <=
- [Qemu-devel] [PATCH 15/20] qemu-char: move baum registration to baum.c, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 16/20] qemu-char: move msmouse registeration to msmouse.c, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 17/20] qemu-char: move text console init to console.c, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 18/20] serial: add flow control to transmit, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 19/20] virtio: console: add flow control, Amit Shah, 2013/03/05
- [Qemu-devel] [PATCH 20/20] virtio-serial: make flow control explicit in virtio-console, Amit Shah, 2013/03/05
- Re: [Qemu-devel] [PATCH 00/20] chardev flow control, Anthony Liguori, 2013/03/11