summaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
authorMarc-André Lureau2021-08-05 15:57:03 +0200
committerMarc-André Lureau2021-08-31 15:25:14 +0200
commit482bbaf4776d223971ec68ddd4d31d8861d31f1c (patch)
tree6a8acb007f1b8a2d4bf1567668e1b7e51dc76efe /include/ui
parentui/clipboard: add helper to retrieve current clipboard (diff)
downloadqemu-482bbaf4776d223971ec68ddd4d31d8861d31f1c.tar.gz
qemu-482bbaf4776d223971ec68ddd4d31d8861d31f1c.tar.xz
qemu-482bbaf4776d223971ec68ddd4d31d8861d31f1c.zip
ui/clipboard: add qemu_clipboard_peer_owns() helper
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-7-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/clipboard.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ui/clipboard.h b/include/ui/clipboard.h
index e9fcb15c66..25e0b470c8 100644
--- a/include/ui/clipboard.h
+++ b/include/ui/clipboard.h
@@ -110,6 +110,17 @@ void qemu_clipboard_peer_register(QemuClipboardPeer *peer);
void qemu_clipboard_peer_unregister(QemuClipboardPeer *peer);
/**
+ * qemu_clipboard_peer_owns
+ *
+ * @peer: peer information.
+ * @selection: clipboard selection.
+ *
+ * Return TRUE if the peer owns the clipboard.
+ */
+bool qemu_clipboard_peer_owns(QemuClipboardPeer *peer,
+ QemuClipboardSelection selection);
+
+/**
* qemu_clipboard_info
*
* @selection: clipboard selection.