[Spice-devel] [RFC/POC PATCH spice-common 03/16] add output_id to SpiceMsgDisplayMonitorsConfig

Lukáš Hrázký lhrazky at redhat.com
Tue Jun 5 15:30:29 UTC 2018


TODO: To keep backwards compatibility, the message needs to be copied
under a new name and the output_id field added to the copy, then used.
---
 common/messages.h | 1 +
 spice.proto       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/common/messages.h b/common/messages.h
index 4fc03d4..b864add 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -617,6 +617,7 @@ typedef struct SpiceMsgcSmartcard {
 typedef struct SpiceMsgDisplayHead {
     uint32_t id;
     uint32_t surface_id;
+    uint32_t output_id;
     uint32_t width;
     uint32_t height;
     uint32_t x;
diff --git a/spice.proto b/spice.proto
index 6ee4766..399199d 100644
--- a/spice.proto
+++ b/spice.proto
@@ -710,6 +710,7 @@ struct StreamDataHeader {
 struct Head {
     uint32 id;
     uint32 surface_id;
+    uint32 output_id;
     uint32 width;
     uint32 height;
     uint32 x;
-- 
2.17.1



More information about the Spice-devel mailing list