[Spice-devel] [PATCH spice-protocol v2] Adding new ioctl for updating Vdagent state
Sameeh Jubran
sameeh at daynix.com
Mon Aug 8 15:21:43 UTC 2016
A new ioctl for updating the driver with vdagent running state.
This patch adds new ioctl operation to Vdagent in order to update
the driver on Vdagent state. This allows the driver to know
when Vdagent is running and when it is off.
Spice supports two mouse modes: server and client. The server mouse
mode pointer should be enabled when vdagent is off and the client
mouse mode should be enabled when it is on. The mouse mode
is updated by the driver and thus this patch is needed.
Signed-off-by: Sameeh Jubran <sameeh at daynix.com>
---
spice/qxl_windows.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/spice/qxl_windows.h b/spice/qxl_windows.h
index bc2ceff..6e557f7 100644
--- a/spice/qxl_windows.h
+++ b/spice/qxl_windows.h
@@ -7,7 +7,8 @@
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 {
@@ -16,6 +17,10 @@ typedef struct SPICE_ATTR_PACKED QXLEscapeSetCustomDisplay {
uint32_t bpp;
} QXLEscapeSetCustomDisplay;
+typedef struct QXLEscapeVDAgentRunning {
+ uint32_t running;
+} QXLEscapeVDAgentRunning;
#include <spice/end-packed.h>
#endif /* _H_QXL_WINDOWS */
+
--
2.7.4
More information about the Spice-devel
mailing list