Re: [PATCH 1/2] Mark VD_AGENT_CLIPBOARD_MAX as deprecated

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

 



too bad I don't run spelling correcter in my git workflow ;)

On Wed, Nov 6, 2013 at 9:07 PM, Marc-André Lureau
<marcandre.lureau@xxxxxxxxx> wrote:
> There is no use for those 2 values, and the default limit would be quite
> wrong. Let's just but then in a deprecated block. If someone really uses
> them, they will have to add -DSPICE_DEPRECATED, or just fix their code.

Put them in a deprecated block. If someone uses them, he will have to
add -DSPICE_DEPRECATED, or just fix the code.

> ---
>  spice/vd_agent.h | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/spice/vd_agent.h b/spice/vd_agent.h
> index c331d84..6d1555b 100644
> --- a/spice/vd_agent.h
> +++ b/spice/vd_agent.h
> @@ -56,8 +56,11 @@ typedef struct SPICE_ATTR_PACKED VDAgentMessage {
>
>  #define VD_AGENT_PROTOCOL 1
>  #define VD_AGENT_MAX_DATA_SIZE 2048
> +
> +#ifdef SPICE_DEPRECATED
>  #define VD_AGENT_CLIPBOARD_MAX_SIZE_DEFAULT 1024
>  #define VD_AGENT_CLIPBOARD_MAX_SIZE_ENV "SPICE_CLIPBOARD_MAX_SIZE"
> +#endif
>
>  enum {
>      VD_AGENT_MOUSE_STATE = 1,
> --
> 1.8.3.1
>



-- 
Marc-André Lureau
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]