[Spice-devel] [PATCH spice-protocol] Add definition of STREAM_MSG_CAPABILITIES_MAX
Frediano Ziglio
fziglio at redhat.com
Wed Nov 1 09:44:19 UTC 2017
>
> 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
More information about the Spice-devel
mailing list