mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-protocol
synced 2025-12-26 14:18:31 +00:00
Add definition of STREAM_MSG_CAPABILITIES_MAX
This message is specified to have a size limit of 1024, so provide this as a #define Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Acked-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
c05cc91972
commit
e2176efb0e
@ -98,7 +98,7 @@ 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 1024 bytes. This allows
|
||||
* This message should be limited to STREAM_MSG_CAPABILITIES_MAX. This allows
|
||||
* plenty of negotiations.
|
||||
*
|
||||
* States allowed: Initial(host), Idle(guest)
|
||||
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user