[Spice-devel] vdagent protocol question

Dietmar Maurer dietmar at proxmox.com
Fri Sep 13 10:25:36 PDT 2013


The clipboard message currently include an optional 4bytes enty for 'selection':

typedef struct SPICE_ATTR_PACKED VDAgentClipboardGrab {
#if 0 /* VD_AGENT_CAP_CLIPBOARD_SELECTION */
    uint8_t selection;
    uint8_t __reserved[sizeof(uint32_t) - 1 * sizeof(uint8_t)];
#endif
    uint32_t types[0];
} VDAgentClipboardGrab;

This makes it really hard to write nice code.

I wonder why it does not simply use the 'opaque' field of VDAgentMessage instead?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130913/e4aac67b/attachment.html>


More information about the Spice-devel mailing list