Re: [PATCH spice-protocol] Add definition of STREAM_MSG_CAPABILITIES_MAX

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

 



> 
> This message is specified to have a size limit of 1024, so provide this
> as a #define
> ---
>  spice/stream-device.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/spice/stream-device.h b/spice/stream-device.h
> index bf919ed..02d0e68 100644
> --- a/spice/stream-device.h
> +++ b/spice/stream-device.h
> @@ -108,6 +108,8 @@ typedef struct StreamMsgCapabilities {
>      uint8_t capabilities[0];
>  } StreamMsgCapabilities;
>  
> +#define STREAM_MSG_CAPABILITIES_MAX 1024
> +
>  /* Define the format of the stream, start a new stream.
>   * This message is sent by the guest to the host to
>   * tell the host the new stream format.

I would replace also the 1024 comment with STREAM_MSG_CAPABILITIES_MAX.

Frediano
_______________________________________________
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]