[PATCH spice-protocol] Add agent information message

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

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://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]