mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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:
parent
63be30e6d5
commit
b192cd1e4f
5 changed files with 12 additions and 8 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue