> > I have No idea what this opaque is for, but I prefer the information to be
> explicit.
> 
> I just read this:  http://spice-space.org/page/Whiteboard/AgentProtocol
> 
> According to that, this field is exactly for that use case.
> 
> > What if you consider it as a different message with a different
> > structure somehow?
> 
> Why don't you simply always include those bytes instead?

I think any serious client will support clipboard selection, so I would
simply use:

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



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

Reply via email to