[RFC PATCH spice-common v2 01/20] Add a monitors config message from the client to the server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The message is based on the VDAgentMonitorsConfig message already being
sent from the client (but keeping the naming conventions of the
SpiceMsgDisplayMonitorsConfig, that is being sent from the client to the
server on the display channel), but adds the channel_id and monitor_id
unique identification pair.

Signed-off-by: Lukáš Hrázký <lhrazky@xxxxxxxxxx>
---
 common/messages.h | 16 ++++++++++++++++
 spice.proto       | 14 ++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/common/messages.h b/common/messages.h
index 55de76e..942ba07 100644
--- a/common/messages.h
+++ b/common/messages.h
@@ -112,6 +112,22 @@ typedef struct SpiceMsgMainMigrationSwitchHost {
     uint8_t *cert_subject_data;
 } SpiceMsgMainMigrationSwitchHost;
 
+typedef struct SpiceMsgcMainHead {
+    uint32_t channel_id;
+    uint32_t monitor_id;
+    uint32_t width;
+    uint32_t height;
+    uint32_t depth;
+    uint32_t x;
+    uint32_t y;
+} SpiceMainHead;
+
+typedef struct SpiceMsgcMainMonitorsConfig {
+    uint16_t count;
+    uint32_t flags;
+    SpiceMainHead heads[0];
+} SpiceMsgcMainMonitorsConfig;
+
 
 typedef struct SpiceMsgMigrate {
     uint32_t flags;
diff --git a/spice.proto b/spice.proto
index 07f11ec..80976d4 100644
--- a/spice.proto
+++ b/spice.proto
@@ -340,6 +340,20 @@ channel MainChannel : BaseChannel {
     } migrate_dst_do_seamless;
 
     Empty migrate_connected_seamless;
+
+    message {
+        uint16 count;
+        uint32 flags;
+        struct MainHead {
+            uint32 channel_id;
+            uint32 monitor_id;
+            uint32 width;
+            uint32 height;
+            uint32 depth;
+            uint32 x;
+            uint32 y;
+        } heads[count] @end;
+    } monitors_config;
 };
 
 enum8 clip_type {
-- 
2.18.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]