mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2026-08-10 18:43:29 +00:00
Make cursor data @as_ptr to avoid copying data
This commit is contained in:
parent
53f8a1a7ba
commit
101ceba717
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user