Make ping data @as_ptr to avoid copying data

This commit is contained in:
Alexander Larsson 2010-06-18 17:12:07 +02:00
parent 3c8cb83af5
commit 4ce4364f84
2 changed files with 3 additions and 1 deletions

View File

@ -150,6 +150,8 @@ typedef struct SpiceMsgMainMouseMode {
typedef struct SpiceMsgPing {
uint32_t id;
uint64_t timestamp;
void *data;
uint32_t data_len;
} SpiceMsgPing;
typedef struct SpiceMsgMainAgentDisconnect {

View File

@ -111,7 +111,7 @@ channel BaseChannel {
message {
uint32 id;
uint64 timestamp;
uint8 data[] @end @ctype(uint8_t);
uint8 data[] @end @ctype(uint8_t) @as_ptr(data_len);
} ping;
message {