Make cursor data @as_ptr to avoid copying data

This commit is contained in:
Alexander Larsson 2010-06-18 17:11:39 +02:00 committed by Marc-André Lureau
parent 53f8a1a7ba
commit 101ceba717
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -867,7 +867,7 @@ struct CursorHeader {
struct Cursor {
cursor_flags flags;
CursorHeader header;
uint8 data[] @end;
uint8 data[] @end @as_ptr(data_size);
};
channel CursorChannel : BaseChannel {