summaryrefslogtreecommitdiffstats
path: root/common/messages.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2010-06-18 17:11:39 +0200
committerAlexander Larsson <alexl@redhat.com>2010-06-18 20:27:32 +0200
commit3c8cb83af5cbe85e6ab41ec1c0b41c5a29230d9e (patch)
treedb8fbd3bf3c04216a9fc97011e8e00d3d0b21e03 /common/messages.h
parent7fa29ea67e5202d4a3f6678445cef9bcad54aa79 (diff)
downloadspice-3c8cb83af5cbe85e6ab41ec1c0b41c5a29230d9e.tar.gz
spice-3c8cb83af5cbe85e6ab41ec1c0b41c5a29230d9e.tar.xz
spice-3c8cb83af5cbe85e6ab41ec1c0b41c5a29230d9e.zip
Make cursor data @as_ptr to avoid copying data
Diffstat (limited to 'common/messages.h')
-rw-r--r--common/messages.h3
1 files changed, 2 insertions, 1 deletions
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 {