diff options
author | Marc-André Lureau | 2021-08-05 15:57:04 +0200 |
---|---|---|
committer | Marc-André Lureau | 2021-08-31 15:25:14 +0200 |
commit | 1387865eca16984fc6d57702ac9e999527681b22 (patch) | |
tree | 20ff9afc790becdedd001ec16c5db4cb5827b39b /include/ui | |
parent | ui/clipboard: add qemu_clipboard_peer_owns() helper (diff) | |
download | qemu-1387865eca16984fc6d57702ac9e999527681b22.tar.gz qemu-1387865eca16984fc6d57702ac9e999527681b22.tar.xz qemu-1387865eca16984fc6d57702ac9e999527681b22.zip |
ui/clipboard: add qemu_clipboard_peer_release() helper
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210805135715.857938-8-marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/clipboard.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ui/clipboard.h b/include/ui/clipboard.h index 25e0b470c8..6298986b15 100644 --- a/include/ui/clipboard.h +++ b/include/ui/clipboard.h @@ -121,6 +121,17 @@ bool qemu_clipboard_peer_owns(QemuClipboardPeer *peer, QemuClipboardSelection selection); /** + * qemu_clipboard_peer_release + * + * @peer: peer information. + * @selection: clipboard selection. + * + * If the peer owns the clipboard, release it. + */ +void qemu_clipboard_peer_release(QemuClipboardPeer *peer, + QemuClipboardSelection selection); + +/** * qemu_clipboard_info * * @selection: clipboard selection. |