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

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

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 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

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




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