[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v1 09/16] io: pull Buffer code out of VNC module
From: |
Daniel P. Berrange |
Subject: |
Re: [Qemu-devel] [PATCH v1 09/16] io: pull Buffer code out of VNC module |
Date: |
Tue, 22 Sep 2015 13:20:56 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Sep 22, 2015 at 02:04:35PM +0200, Paolo Bonzini wrote:
>
>
> On 18/09/2015 15:19, Daniel P. Berrange wrote:
> > The Buffer code in the VNC server is useful for the IO channel
> > code, so pull it out into a shared module, QIOBuffer.
>
> Do all traces disappear from VNC once you're done? If not, can you
> instead move it to util/?
It is still used in VNC code for decoding of various framebuffer
encodings. Only the websock usage gets eliminated. I'm happy to
move it to util/ directory. Any preference on a name for the
APIs. I used QIOBuffer since i placed it under io/ directory.
Could keep that name when moved to util/, or give it a different
one.
> > Signed-off-by: Daniel P. Berrange <address@hidden>
> > ---
> > include/io/buffer.h | 118
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++
> > io/Makefile.objs | 3 +-
> > io/buffer.c | 65 +++++++++++++++++++++++++++++
> > ui/vnc-auth-sasl.c | 4 +-
> > ui/vnc-enc-tight.c | 38 ++++++++---------
> > ui/vnc-enc-zlib.c | 6 +--
> > ui/vnc-enc-zrle.c | 18 ++++----
> > ui/vnc-jobs.c | 15 +++----
> > ui/vnc-ws.c | 36 ++++++++--------
> > ui/vnc-ws.h | 6 +--
> > ui/vnc.c | 67 ++++++-----------------------
> > ui/vnc.h | 50 ++++++++--------------
> > 12 files changed, 277 insertions(+), 149 deletions(-)
> > create mode 100644 include/io/buffer.h
> > create mode 100644 io/buffer.c
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
- Re: [Qemu-devel] [PATCH v1 07/16] io: add abstract QIOChannel classes, (continued)
- [Qemu-devel] [PATCH v1 10/16] io: add QIOTask class for async operations, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 16/16] io: add QIOChannelBuffer class, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 08/16] io: add helper module for creating watches on FDs, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 11/16] io: add QIOChannelSocket class, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 04/16] ui: convert VNC startup code to use SocketAddress, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 06/16] coroutine: move into libqemuutil.a library, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 09/16] io: pull Buffer code out of VNC module, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 03/16] sockets: allow port to be NULL when listening on IP address, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 01/16] sockets: add helpers for creating SocketAddress from a socket, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 15/16] io: add QIOChannelCommand class, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 13/16] io: add QIOChannelTLS class, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 12/16] io: add QIOChannelFile class, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 05/16] osdep: add qemu_fork() wrapper for safely handling signals, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 02/16] sockets: move qapi_copy_SocketAddress into qemu-sockets.c, Daniel P. Berrange, 2015/09/18
- [Qemu-devel] [PATCH v1 14/16] io: add QIOChannelWebsock class, Daniel P. Berrange, 2015/09/18
- Re: [Qemu-devel] [PATCH v1 00/16] Introduce I/O channels framework, Paolo Bonzini, 2015/09/22