20 #include <freerdp/config.h>
22 #include <winpr/crt.h>
23 #include <winpr/stream.h>
24 #include <freerdp/channels/log.h>
26 #define TAG CHANNELS_TAG("gfxredir.common")
28 #include "gfxredir_common.h"
37 if (!Stream_CheckAndLogRequiredLength(TAG, s, 8))
38 return ERROR_INVALID_DATA;
40 Stream_Read_UINT32(s, header->cmdId);
41 Stream_Read_UINT32(s, header->length);
52 Stream_Write_UINT32(s, header->cmdId);
53 Stream_Write_UINT32(s, header->length);