aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-05 17:57:02 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-08-31 17:25:14 +0400
commit684e64d36d139c1473dd029661c20ba968c0fe53 (patch)
treed50e4db96b289f481f2e2294aca0074e7b9f958a /include/ui
parent6b32aef09a7d592491a8e25ce1714cb0503a3d6e (diff)
ui/clipboard: add helper to retrieve current clipboard
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-6-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/clipboard.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/ui/clipboard.h b/include/ui/clipboard.h
index eb789a285a..e9fcb15c66 100644
--- a/include/ui/clipboard.h
+++ b/include/ui/clipboard.h
@@ -110,6 +110,15 @@ void qemu_clipboard_peer_register(QemuClipboardPeer *peer);
void qemu_clipboard_peer_unregister(QemuClipboardPeer *peer);
/**
+ * qemu_clipboard_info
+ *
+ * @selection: clipboard selection.
+ *
+ * Return the current clipboard data & owner informations.
+ */
+QemuClipboardInfo *qemu_clipboard_info(QemuClipboardSelection selection);
+
+/**
* qemu_clipboard_info_new
*
* @owner: clipboard owner.