Re: [vdagent-win PATCH v10 1/6] Move image handling to a separate file

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

 



On Fri, Jul 21, 2017 at 02:51:36PM +0100, Frediano Ziglio wrote:
> This will make easier to change code that handle images.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>
> ---
>  Makefile.am         |  2 ++
>  vdagent/image.cpp   | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  vdagent/image.h     | 48 +++++++++++++++++++++++++++++
>  vdagent/vdagent.cpp | 57 +++++-----------------------------
>  4 files changed, 146 insertions(+), 49 deletions(-)
>  create mode 100644 vdagent/image.cpp
>  create mode 100644 vdagent/image.h
> 
> diff --git a/Makefile.am b/Makefile.am
> index b60a718..868199e 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -42,6 +42,8 @@ vdagent_SOURCES =			\
>  	vdagent/vdagent.cpp		\
>  	vdagent/as_user.cpp		\
>  	vdagent/as_user.h		\
> +	vdagent/image.cpp		\
> +	vdagent/image.h			\
>  	$(NULL)
>  
>  vdagent_rc.$(OBJEXT): vdagent/vdagent.rc
> diff --git a/vdagent/image.cpp b/vdagent/image.cpp
> +
> +void free_raw_clipboard_image(uint8_t *data)
> +{
> +    // this is really just a free however is better to make
> +    // the free from CxImage code as on Windows the free
> +    // can be different between libraries

Forgot to mention this in the past reviews, but I don't think this
comment is needed. But this is just a minor nitpick, I'm happy to ACK
with/without it.

Christophe

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]