spice: move qemu_spice_init() to QemuSpiceOps.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201019075224.14803-4-kraxel@redhat.com
This commit is contained in:
Gerd Hoffmann
2020-10-19 09:52:13 +02:00
parent 7477477ca7
commit 63be30e6d5
5 changed files with 9 additions and 7 deletions

View File

@@ -22,6 +22,10 @@
int using_spice;
static void qemu_spice_init_stub(void)
{
}
static int qemu_spice_migrate_info_stub(const char *h, int p, int t,
const char *s)
{
@@ -29,5 +33,6 @@ static int qemu_spice_migrate_info_stub(const char *h, int p, int t,
}
struct QemuSpiceOps qemu_spice = {
.init = qemu_spice_init_stub,
.migrate_info = qemu_spice_migrate_info_stub,
};