The message will be used for transferring the keyboard layout
from the client to the guest. When the agent receives this message,
it tries to set the specified keyboard layout.

https://bugs.freedesktop.org/show_bug.cgi?id=85332
---
VDAgentMessage will be used for the transfer, the type of the message depends 
on a client.
Linux clients use VD_AGENT_KEYBOARD_DESCRIPTION_XKB,
windows clients use VD_AGENT_KEYBOARD_DESCRIPTION_WINDOWS.
---
 spice/vd_agent.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/spice/vd_agent.h b/spice/vd_agent.h
index 7464661..79cc39d 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_KEYBOARD_DESCRIPTION,
     VD_AGENT_END_MESSAGE,
 };
 
@@ -245,6 +246,11 @@ typedef struct SPICE_ATTR_PACKED 
VDAgentAnnounceCapabilities {
 #define VD_AGENT_SET_CAPABILITY(caps, index) \
     { (caps)[(index) / 32] |= (1 << ((index) % 32)); }
 
+enum {
+    VD_AGENT_KEYBOARD_DESCRIPTION_XKB,
+    VD_AGENT_KEYBOARD_DESCRIPTION_WINDOWS,
+};
+
 #include <spice/end-packed.h>
 
 #endif /* _H_VD_AGENT */
-- 
1.9.3

_______________________________________________
Spice-devel mailing list
Spice-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/spice-devel

Reply via email to