diff options
author | Marc-André Lureau | 2021-07-18 22:33:31 +0200 |
---|---|---|
committer | Marc-André Lureau | 2021-12-21 07:50:21 +0100 |
commit | 835f69f4e64e2285253bae57f618a75a2756f27c (patch) | |
tree | 51413bf4743019cfe78eddf1bf5ca79d0c564c61 /include/ui | |
parent | ui: generalize clipboard notifier (diff) | |
download | qemu-835f69f4e64e2285253bae57f618a75a2756f27c.tar.gz qemu-835f69f4e64e2285253bae57f618a75a2756f27c.tar.xz qemu-835f69f4e64e2285253bae57f618a75a2756f27c.zip |
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/ui')
-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 d82cf31481..e590b453c8 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; |