summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-08 18:09:22 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:13:13 +0300
commit0f4bc12090d0cc21f18a3379506b1d3b13bbf135 (patch)
treeea5c85348069cd34ac85ab34eaca8ab9f3e1a6e7
parent115d095d469cd6e9697c4947e985379ec86fc768 (diff)
downloadspice-0f4bc12090d0cc21f18a3379506b1d3b13bbf135.tar.gz
spice-0f4bc12090d0cc21f18a3379506b1d3b13bbf135.tar.xz
spice-0f4bc12090d0cc21f18a3379506b1d3b13bbf135.zip
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).
-rw-r--r--server/migration_protocol.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/migration_protocol.h b/server/migration_protocol.h
index 285d86d1..c96b60a0 100644
--- a/server/migration_protocol.h
+++ b/server/migration_protocol.h
@@ -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)