mirror of
https://github.com/mii443/qemu.git
synced 2025-08-29 10:29:27 +00:00
ui/vdagent: add serial capability support
The Spice agent implements a simple serial mechanism to avoid clipboard
races between client & guest. See:
045a6978d6
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
@ -102,6 +102,8 @@ struct QemuClipboardNotify {
|
||||
* @owner: clipboard owner.
|
||||
* @selection: clipboard selection.
|
||||
* @types: clipboard data array (one entry per type).
|
||||
* @has_serial: whether @serial is available.
|
||||
* @serial: the grab serial counter.
|
||||
*
|
||||
* Clipboard content data and metadata.
|
||||
*/
|
||||
@ -109,6 +111,8 @@ struct QemuClipboardInfo {
|
||||
uint32_t refcount;
|
||||
QemuClipboardPeer *owner;
|
||||
QemuClipboardSelection selection;
|
||||
bool has_serial;
|
||||
uint32_t serial;
|
||||
struct {
|
||||
bool available;
|
||||
bool requested;
|
||||
|
Reference in New Issue
Block a user