summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-07-11 12:09:31 +0300
committerAlon Levy <alevy@redhat.com>2010-07-11 12:09:31 +0300
commita94a5b171aea36fece4b3d94b3b2c112cd0f93e3 (patch)
tree96efb756e0d84bcfaad30b87b2db81858adc4356
parenta9bbc090a5c95f017c6962aacadaa59b5d97908b (diff)
clipboard agent message added
-rw-r--r--spice/vd_agent.h13
1 files changed, 13 insertions, 0 deletions
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 */