[Spice-devel] [PATCH spice-protocol] Add agent information message

Pavel Grunt pgrunt at redhat.com
Thu Oct 23 09:08:57 PDT 2014


Message will be used by client for requesting an information about
a version of the agent running on the guest side.
---
The intention is to show this information in virt-viewer
---
 spice/vd_agent.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index 7464661..ef37e9e 100644
--- a/spice/vd_agent.h
+++ b/spice/vd_agent.h
@@ -77,6 +77,7 @@ enum {
     VD_AGENT_FILE_XFER_DATA,
     VD_AGENT_CLIENT_DISCONNECTED,
     VD_AGENT_MAX_CLIPBOARD,
+    VD_AGENT_INFORMATION,
     VD_AGENT_END_MESSAGE,
 };
 
@@ -245,6 +246,15 @@ typedef struct SPICE_ATTR_PACKED VDAgentAnnounceCapabilities {
 #define VD_AGENT_SET_CAPABILITY(caps, index) \
     { (caps)[(index) / 32] |= (1 << ((index) % 32)); }
 
+typedef struct SPICE_ATTR_PACKED VDAgentInformation {
+    uint32_t type;
+    uint32_t data[0];
+} VDAgentInformation;
+
+enum {
+    VD_AGENT_INFORMATION_VERSION,
+};
+
 #include <spice/end-packed.h>
 
 #endif /* _H_VD_AGENT */
-- 
1.9.3



More information about the Spice-devel mailing list