diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-19 09:52:15 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-21 15:46:14 +0200 |
commit | 05b53636d01c1c9b650465def20b683ea1382f63 (patch) | |
tree | c84cf24f4f06136a5eff1b34e74e050df66afdab /include/ui | |
parent | b192cd1e4f9321b74e1d8b13b94a239a4750abfb (diff) |
spice: move add_interface() to QemuSpiceOps.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201019075224.14803-6-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/qemu-spice-module.h | 7 | ||||
-rw-r--r-- | include/ui/qemu-spice.h | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/ui/qemu-spice-module.h b/include/ui/qemu-spice-module.h index dbe09035da..f93acde574 100644 --- a/include/ui/qemu-spice-module.h +++ b/include/ui/qemu-spice-module.h @@ -18,10 +18,17 @@ #ifndef QEMU_SPICE_MODULE_H #define QEMU_SPICE_MODULE_H +#ifdef CONFIG_SPICE +#include <spice.h> +#endif + struct QemuSpiceOps { void (*init)(void); void (*display_init)(void); int (*migrate_info)(const char *h, int p, int t, const char *s); +#ifdef CONFIG_SPICE + int (*add_interface)(SpiceBaseInstance *sin); +#endif }; extern int using_spice; diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h index a3fd1ea5ad..6018577c52 100644 --- a/include/ui/qemu-spice.h +++ b/include/ui/qemu-spice.h @@ -29,7 +29,6 @@ void qemu_spice_input_init(void); void qemu_spice_display_init(void); int qemu_spice_display_add_client(int csock, int skipauth, int tls); -int qemu_spice_add_interface(SpiceBaseInstance *sin); bool qemu_spice_have_display_interface(QemuConsole *con); int qemu_spice_add_display_interface(QXLInstance *qxlin, QemuConsole *con); int qemu_spice_set_passwd(const char *passwd, |