[Spice-devel] [PATCH spice-protocol] Add ioctls structures to qxl_windows.h
Sameeh Jubran
sameeh at daynix.com
Tue Aug 16 10:15:25 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 | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h
index bc2ceff..c4776d4 100644
--- a/spice/qxl_windows.h
+++ b/spice/qxl_windows.h
@@ -2,20 +2,28 @@
#define _H_QXL_WINDOWS
#include <spice/types.h>
-
+#include <spice/qxl_dev.h>
#include <spice/start-packed.h>
enum {
QXL_ESCAPE_SET_CUSTOM_DISPLAY = 0x10001,
- QXL_ESCAPE_MONITOR_CONFIG
+ QXL_ESCAPE_MONITOR_CONFIG,
+ QXL_ESCAPE_VDAGENT_RUNNING
};
-typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
+struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
uint32_t xres;
uint32_t yres;
uint32_t bpp;
-} QXLEscapeSetCustomDisplay;
+};
+struct SPICE_ATTR_PACKED QXL_ESCAPE {
+ uint32_t ioctl;
+ union {
+ QXLEscapeSetCustomDisplay custom_display;
+ QXLHead monitor_config;
+ };
+};
#include <spice/end-packed.h>
#endif /* _H_QXL_WINDOWS */
--
2.7.4
More information about the Spice-devel
mailing list