[Spice-devel] [PATCH] vd_agent: Add some comments to clipboard messages

Frediano Ziglio fziglio at redhat.com
Wed Nov 9 16:03:16 UTC 2016


Document what the messages are meant to do.

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

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index c49f596..b95f924 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -66,10 +66,23 @@ enum {
     VD_AGENT_MOUSE_STATE = 1,
     VD_AGENT_MONITORS_CONFIG,
     VD_AGENT_REPLY,
+    /* Set clipboard data (both directions).
+     * Message came with type and data.
+     * See VDAgentClipboard structure.
+     */
     VD_AGENT_CLIPBOARD,
     VD_AGENT_DISPLAY_CONFIG,
     VD_AGENT_ANNOUNCE_CAPABILITIES,
+    /* Asks to listen for clipboard changes (both directions).
+     * Remote will empty clipboard and wait for one
+     * of the types passed.
+     * See VDAgentClipboardGrab structure.
+     */
     VD_AGENT_CLIPBOARD_GRAB,
+    /* Asks for clipboard data (both directions).
+     * Request came with a specific type.
+     * See VDAgentClipboardRequest structure.
+     */
     VD_AGENT_CLIPBOARD_REQUEST,
     VD_AGENT_CLIPBOARD_RELEASE,
     VD_AGENT_FILE_XFER_START,
-- 
2.7.4



More information about the Spice-devel mailing list