[Spice-commits] spice/vd_agent.h

Alon Levy alon at kemper.freedesktop.org
Sun Jul 11 02:11:42 PDT 2010


 spice/vd_agent.h |   13 +++++++++++++
 1 file changed, 13 insertions(+)

New commits:
commit a94a5b171aea36fece4b3d94b3b2c112cd0f93e3
Author: Alon Levy <alevy at redhat.com>
Date:   Sun Jul 11 12:09:31 2010 +0300

    clipboard agent message added

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index b0c496c..4e6fcf7 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -44,11 +44,13 @@ typedef struct SPICE_ATTR_PACKED VDAgentMessage {
 } VDAgentMessage;
 
 #define VD_AGENT_PROTOCOL 1
+#define VD_AGENT_MAX_DATA_SIZE 2048
 
 enum {
     VD_AGENT_MOUSE_STATE = 1,
     VD_AGENT_MONITORS_CONFIG,
     VD_AGENT_REPLY,
+    VD_AGENT_CLIPBOARD,
 };
 
 typedef struct SPICE_ATTR_PACKED VDAgentMonConfig {
@@ -92,6 +94,17 @@ enum {
     VD_AGENT_ERROR,
 };
 
+//FIXME: size required?
+typedef struct SPICE_ATTR_PACKED VDAgentClipboard {
+    uint32_t type;
+    uint8_t data[0];
+} VDAgentClipboard;
+
+enum {
+    VD_AGENT_CLIPBOARD_UTF8_TEXT = 1,
+};
+
+
 #include <spice/end-packed.h>
 
 #endif /* _H_VD_AGENT */


More information about the Spice-commits mailing list