aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2022-01-05 13:49:37 +0000
committerAlex Bennée <alex.bennee@linaro.org>2022-01-18 16:42:41 +0000
commit9dcafa400e57d75f77c67151ff57508065651dd8 (patch)
tree56f22e05785eee9d28cb2183b8e74ba223e87882 /include
parent70a54b01693eda3c61814b05d699aba41015ac48 (diff)
downloadqemu-9dcafa400e57d75f77c67151ff57508065651dd8.zip
qemu-9dcafa400e57d75f77c67151ff57508065651dd8.tar.gz
qemu-9dcafa400e57d75f77c67151ff57508065651dd8.tar.bz2
spice: Update QXLInterface for spice >= 0.15.0
spice updated the spelling (and arguments) of "attache_worker" in 0.15.0. Update QEMU to match, preventing -Wdeprecated-declarations compilations from reporting build errors. See also: https://gitlab.freedesktop.org/spice/spice/-/commit/974692bda1e77af92b71ed43b022439448492cb9 Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20211215141949.3512719-3-berrange@redhat.com> Message-Id: <20220105135009.1584676-3-alex.bennee@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/ui/qemu-spice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ui/qemu-spice.h b/include/ui/qemu-spice.h
index 71ecd6c..21fe195 100644
--- a/include/ui/qemu-spice.h
+++ b/include/ui/qemu-spice.h
@@ -40,6 +40,12 @@ int qemu_spice_migrate_info(const char *hostname, int port, int tls_port,
#define SPICE_NEEDS_SET_MM_TIME 0
#endif
+#if defined(SPICE_SERVER_VERSION) && (SPICE_SERVER_VERSION >= 0x000f00)
+#define SPICE_HAS_ATTACHED_WORKER 1
+#else
+#define SPICE_HAS_ATTACHED_WORKER 0
+#endif
+
#else /* CONFIG_SPICE */
#include "qemu/error-report.h"