[Spice-devel] [PATCH spice-protocol v3 5/5] Add support for mouse movement

Frediano Ziglio fziglio at redhat.com
Wed Aug 23 09:22:06 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 spice/stream-device.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/spice/stream-device.h b/spice/stream-device.h
index d8612a4..bf919ed 100644
--- a/spice/stream-device.h
+++ b/spice/stream-device.h
@@ -87,6 +87,8 @@ typedef enum StreamMsgType {
     STREAM_TYPE_NOTIFY_ERROR,
     /* guest cursor */
     STREAM_TYPE_CURSOR_SET,
+    /* guest cursor position */
+    STREAM_TYPE_CURSOR_MOVE,
 } StreamMsgType;
 
 /* Generic extension capabilities.
@@ -196,5 +198,14 @@ typedef struct StreamMsgCursorSet {
     uint8_t data[0];
 } StreamMsgCursorSet;
 
+/* Guest cursor position
+ * This message is sent by the guest to the host.
+ *
+ * States allowed: Streaming
+ */
+typedef struct StreamMsgCursorMove {
+    int32_t x;
+    int32_t y;
+} StreamMsgCursorMove;
 
 #endif /* SPICE_STREAM_DEVICE_H_ */
-- 
2.13.5



More information about the Spice-devel mailing list