From 3c8cb83af5cbe85e6ab41ec1c0b41c5a29230d9e Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 18 Jun 2010 17:11:39 +0200 Subject: Make cursor data @as_ptr to avoid copying data --- common/messages.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/messages.h') diff --git a/common/messages.h b/common/messages.h index f6c2aebd..2ba14bf2 100644 --- a/common/messages.h +++ b/common/messages.h @@ -173,7 +173,8 @@ typedef struct SpiceMsgcMainMouseModeRequest { typedef struct SpiceCursor { uint32_t flags; SpiceCursorHeader header; - uint8_t data[0]; + uint32_t data_size; + uint8_t *data; } SpiceCursor; typedef struct SpiceMsgDisplayMode { -- cgit