aboutsummaryrefslogtreecommitdiff
path: root/ui/clipboard.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-07-19 19:49:56 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-12-21 10:50:21 +0400
commit505dbf9b99e937853c02d7995f9eebe95508e8d4 (patch)
tree1e710bb13a8d7d17045636fe98bca04b349a2812 /ui/clipboard.c
parent349504e5a1533c795cd5f72e629766b996982050 (diff)
downloadqemu-505dbf9b99e937853c02d7995f9eebe95508e8d4.zip
qemu-505dbf9b99e937853c02d7995f9eebe95508e8d4.tar.gz
qemu-505dbf9b99e937853c02d7995f9eebe95508e8d4.tar.bz2
ui/clipboard: add a clipboard reset serial event
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/clipboard.c')
-rw-r--r--ui/clipboard.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/clipboard.c b/ui/clipboard.c
index ffbd80e..82572ea 100644
--- a/ui/clipboard.c
+++ b/ui/clipboard.c
@@ -129,6 +129,13 @@ void qemu_clipboard_request(QemuClipboardInfo *info,
info->owner->request(info, type);
}
+void qemu_clipboard_reset_serial(void)
+{
+ QemuClipboardNotify notify = { .type = QEMU_CLIPBOARD_RESET_SERIAL };
+
+ notifier_list_notify(&clipboard_notifiers, &notify);
+}
+
void qemu_clipboard_set_data(QemuClipboardPeer *peer,
QemuClipboardInfo *info,
QemuClipboardType type,