spice: move display_init() to QemuSpiceOps.

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

View file

@ -20,6 +20,7 @@
struct QemuSpiceOps {
void (*init)(void);
void (*display_init)(void);
int (*migrate_info)(const char *h, int p, int t, const char *s);
};

View file

@ -66,13 +66,6 @@ static inline int qemu_spice_display_add_client(int csock, int skipauth,
return -1;
}
static inline void qemu_spice_display_init(void)
{
/* This must never be called if CONFIG_SPICE is disabled */
error_report("spice support is disabled");
abort();
}
#endif /* CONFIG_SPICE */
static inline bool qemu_using_spice(Error **errp)