]> git.ipfire.org Git - thirdparty/qemu.git/commit
ui/clipboard: add vmstate_cbinfo
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 11 Mar 2025 13:55:21 +0000 (17:55 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 24 May 2025 14:33:18 +0000 (16:33 +0200)
commitd0de94cbc053c4475fbf705cafa1ab488eae3a19
treec08790260e4c012fda8c76e65aebb26102e7e3e0
parenta3f59c70d6c943e3a4d9c44ed138fa15c5ded70b
ui/clipboard: add vmstate_cbinfo

Add a VMStateDescriptor for QemuClipboardInfo.

Each clipboard owner will have to save its QemuClipboardInfo and
reregister its owned clipboard after loading. (the global cbinfo has
only pointers to owners, so it can't restore the relation with its owner
if it was to handle migration)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
include/ui/clipboard.h
ui/clipboard.c