aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-10-19 09:52:13 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-10-21 15:46:14 +0200
commit63be30e6d53e78bbe5e21cbf930014ef4844fb31 (patch)
treec21989c2142805f241c33b7a368009c98b44c96b /include/ui
parent7477477ca7bbf42588575039edcac852fbdb1d75 (diff)
downloadqemu-63be30e6d53e78bbe5e21cbf930014ef4844fb31.zip
qemu-63be30e6d53e78bbe5e21cbf930014ef4844fb31.tar.gz
qemu-63be30e6d53e78bbe5e21cbf930014ef4844fb31.tar.bz2
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
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/qemu-spice-module.h1
-rw-r--r--include/ui/qemu-spice.h5
2 files changed, 1 insertions, 5 deletions
diff --git a/include/ui/qemu-spice-module.h b/include/ui/qemu-spice-module.h
index 7a9963d..b182bc4 100644
--- a/include/ui/qemu-spice-module.h
+++ b/include/ui/qemu-spice-module.h
@@ -19,6 +19,7 @@
#define QEMU_SPICE_MODULE_H
struct QemuSpiceOps {
+ void (*init)(void);
int (*migrate_info)(const char *h, int p, int t, const char *s);
};
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index 3157016..e6df0a8 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -26,7 +26,6 @@
#include <spice.h>
#include "qemu/config-file.h"
-void qemu_spice_init(void);
void qemu_spice_input_init(void);
void qemu_spice_display_init(void);
int qemu_spice_display_add_client(int csock, int skipauth, int tls);
@@ -74,10 +73,6 @@ static inline void qemu_spice_display_init(void)
abort();
}
-static inline void qemu_spice_init(void)
-{
-}
-
#endif /* CONFIG_SPICE */
static inline bool qemu_using_spice(Error **errp)