diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-07-19 00:33:31 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2021-12-21 10:50:21 +0400 |
commit | 835f69f4e64e2285253bae57f618a75a2756f27c (patch) | |
tree | 51413bf4743019cfe78eddf1bf5ca79d0c564c61 /include | |
parent | 1b17f1e9f962f5ae9cd559d7f23718ceed71b813 (diff) | |
download | qemu-835f69f4e64e2285253bae57f618a75a2756f27c.zip qemu-835f69f4e64e2285253bae57f618a75a2756f27c.tar.gz qemu-835f69f4e64e2285253bae57f618a75a2756f27c.tar.bz2 |
ui/vdagent: add serial capability support
The Spice agent implements a simple serial mechanism to avoid clipboard
races between client & guest. See:
https://gitlab.freedesktop.org/spice/spice-protocol/-/commit/045a6978d6dbbf7046affc5c321fa8177c8cce56
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/ui/clipboard.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ui/clipboard.h b/include/ui/clipboard.h index d82cf31..e590b45 100644 --- a/include/ui/clipboard.h +++ b/include/ui/clipboard.h @@ -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; |