From 6371ecbcb104ba0c8b6e3cce17b465ec2ce5448e Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Thu, 9 Nov 2017 11:40:14 -0600 Subject: [PATCH] Change STREAM_MSG_CAPABILITIES_MAX_BYTES Clarify that this value specifies the size in bytes, not the number of capabilities. Signed-off-by: Jonathon Jongsma Acked-by: Frediano Ziglio --- spice/stream-device.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spice/stream-device.h b/spice/stream-device.h index 57de98b..2e7c50e 100644 --- a/spice/stream-device.h +++ b/spice/stream-device.h @@ -98,8 +98,8 @@ typedef enum StreamMsgType { * If it is not sent, it means that guest/host doesn't support any extension. * Guest should send this as a reply from same type of message * from the host. - * This message should be limited to STREAM_MSG_CAPABILITIES_MAX. This allows - * plenty of negotiations. + * This message should be limited to STREAM_MSG_CAPABILITIES_MAX_BYTES. This + * allows plenty of negotiations. * * States allowed: Initial(host), Idle(guest) * state will change to Idle. @@ -108,7 +108,7 @@ typedef struct StreamMsgCapabilities { uint8_t capabilities[0]; } StreamMsgCapabilities; -#define STREAM_MSG_CAPABILITIES_MAX 1024 +#define STREAM_MSG_CAPABILITIES_MAX_BYTES 1024 /* Define the format of the stream, start a new stream. * This message is sent by the guest to the host to