mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 18:37:34 +00:00
migration_protocol: add inputs channel migration data
Storing the motion count in uint16_t and not in uint32_t since the exact count is not important, just its division in SPICE_INPUT_MOTION_ACK_BUNCH (see the next 2 patches).
This commit is contained in:
parent
115d095d46
commit
0f4bc12090
@ -182,6 +182,18 @@ typedef struct __attribute__ ((__packed__)) MigrateDisplaySurfacesAtClientLossy
|
||||
MigrateDisplaySurfaceLossy surfaces[0];
|
||||
} MigrateDisplaySurfacesAtClientLossy;
|
||||
|
||||
/* ****************
|
||||
* inputs channel
|
||||
* ***************/
|
||||
|
||||
#define SPICE_MIGRATE_DATA_INPUTS_VERSION 1
|
||||
#define SPICE_MIGRATE_DATA_INPUTS_MAGIC (*(uint32_t *)"ICMD")
|
||||
|
||||
|
||||
typedef struct __attribute__ ((__packed__)) SpiceMigrateDataInputs {
|
||||
uint16_t motion_count;
|
||||
} SpiceMigrateDataInputs;
|
||||
|
||||
static inline int migration_protocol_validate_header(SpiceMigrateDataHeader *header,
|
||||
uint32_t magic,
|
||||
uint32_t version)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user