[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/8] spice-qemu-char: Move spice_chr_close down
From: |
Hans de Goede |
Subject: |
[Qemu-devel] [PATCH 6/8] spice-qemu-char: Move spice_chr_close down |
Date: |
Thu, 14 Mar 2013 17:36:55 +0100 |
This puts it in a more logical place and avoids the need for forward
declarations in the next patch of this series.
Note no code changes, just moving it around.
Signed-off-by: Hans de Goede <address@hidden>
---
spice-qemu-char.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/spice-qemu-char.c b/spice-qemu-char.c
index 607abb6..530d9a6 100644
--- a/spice-qemu-char.c
+++ b/spice-qemu-char.c
@@ -199,6 +199,18 @@ static int spice_chr_write(CharDriverState *chr, const
uint8_t *buf, int len)
return read_bytes;
}
+static void spice_chr_guest_open(struct CharDriverState *chr)
+{
+ SpiceCharDriver *s = chr->opaque;
+ vmc_register_interface(s);
+}
+
+static void spice_chr_guest_close(struct CharDriverState *chr)
+{
+ SpiceCharDriver *s = chr->opaque;
+ vmc_unregister_interface(s);
+}
+
static void spice_chr_close(struct CharDriverState *chr)
{
SpiceCharDriver *s = chr->opaque;
@@ -213,18 +225,6 @@ static void spice_chr_close(struct CharDriverState *chr)
g_free(s);
}
-static void spice_chr_guest_open(struct CharDriverState *chr)
-{
- SpiceCharDriver *s = chr->opaque;
- vmc_register_interface(s);
-}
-
-static void spice_chr_guest_close(struct CharDriverState *chr)
-{
- SpiceCharDriver *s = chr->opaque;
- vmc_unregister_interface(s);
-}
-
static void print_allowed_subtypes(void)
{
const char** psubtype;
--
1.8.1.4
- [Qemu-devel] Spice / usb-redir chardev flowcontrol patches v2, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 1/8] virtio-console: Also throttle when less was written then requested, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 4/8] spice-qemu-char: Add watch support, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 2/8] virtio-console: Remove any pending watches on close, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 3/8] spice-qemu-char: Remove #ifdef-ed code for old spice-server compat, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 7/8] spice-qemu-char: Register interface on post load, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 6/8] spice-qemu-char: Move spice_chr_close down,
Hans de Goede <=
- [Qemu-devel] [PATCH 8/8] usb-redir: Add flow control support, Hans de Goede, 2013/03/14
- [Qemu-devel] [PATCH 5/8] spice-qemu-char: Remove intermediate buffer, Hans de Goede, 2013/03/14
- Re: [Qemu-devel] Spice / usb-redir chardev flowcontrol patches v2, Amit Shah, 2013/03/18