[Spice-devel] [PATCH spice-protocol v2] Add ioctls structures to qxl_windows.h

Sameeh Jubran sameeh at daynix.com
Tue Aug 16 12:58:50 UTC 2016


This patch defines the structures of ioctls that are used between
win-vdagent and the qxl-wddm-dod driver.

Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
---
 spice/qxl_windows.h | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h
index bc2ceff..89aeac9 100644
--- a/spice/qxl_windows.h
+++ b/spice/qxl_windows.h
@@ -2,7 +2,7 @@
 #define _H_QXL_WINDOWS
 
 #include <spice/types.h>
-
+#include <spice/qxl_dev.h>
 #include <spice/start-packed.h>
 
 enum {
@@ -11,11 +11,18 @@ enum {
 };
 
 typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
-    uint32_t xres;
-    uint32_t yres;
-    uint32_t bpp;
+    uint32_t _xres;
+    uint32_t _yres;
+    uint32_t _bpp;
 } QXLEscapeSetCustomDisplay;
 
+typedef struct SPICE_ATTR_PACKED QXL_ESCAPE {
+    uint32_t _ioctl;
+    union {
+        QXLEscapeSetCustomDisplay _custom_display;
+        QXLHead _monitor_config;
+    };
+} QXL_ESCAPE;
 #include <spice/end-packed.h>
 
 #endif /* _H_QXL_WINDOWS */
-- 
2.7.4



More information about the Spice-devel mailing list