qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] io: introduce helper for creating channels from


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] io: introduce helper for creating channels from file descriptors
Date: Wed, 3 Feb 2016 09:17:29 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 02/03/2016 07:55 AM, Daniel P. Berrange wrote:
> Depending on what object a file descriptor refers to a different
> type of IO channel will be needed - either a QIOChannelFile or
> a QIOChannelSocket. Introduce a qio_channel_new_fd() method
> which will return the appropriate channel implementation.
> 
> Signed-off-by: Daniel P. Berrange <address@hidden>
> ---
> 
> Suggested during review of migration TLS patch series
> 
>   https://lists.gnu.org/archive/html/qemu-devel/2016-02/msg00607.html
> 
> and will be used by next posting of it.
> 
>  include/io/channel-util.h      | 52 
> ++++++++++++++++++++++++++++++++++++++++++
>  io/Makefile.objs               |  1 +
>  io/channel-util.c              | 50 ++++++++++++++++++++++++++++++++++++++++
>  tests/test-io-channel-file.c   | 22 ++++++++++++++++++
>  tests/test-io-channel-socket.c | 21 +++++++++++++++++
>  5 files changed, 146 insertions(+)
>  create mode 100644 include/io/channel-util.h
>  create mode 100644 io/channel-util.c
> 
> diff --git a/include/io/channel-util.h b/include/io/channel-util.h
> new file mode 100644
> index 0000000..6fb2baf
> --- /dev/null
> +++ b/include/io/channel-util.h
> @@ -0,0 +1,52 @@
> +/*
> + * QEMU I/O channels utility APIs
> + *
> + * Copyright (c) 2015 Red Hat, Inc.

2016?

> +++ b/io/channel-util.c
> @@ -0,0 +1,50 @@
> +/*
> + * QEMU I/O channels utility APIs
> + *
> + * Copyright (c) 2015 Red Hat, Inc.

and again

Otherwise,
Reviewed-by: Eric Blake <address@hidden>

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]