aboutsummaryrefslogtreecommitdiff
path: root/ui/spice-module.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/spice-module.c')
-rw-r--r--ui/spice-module.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/ui/spice-module.c b/ui/spice-module.c
index a30fa452ea..56868aaffe 100644
--- a/ui/spice-module.c
+++ b/ui/spice-module.c
@@ -18,6 +18,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/error-report.h"
#include "ui/qemu-spice-module.h"
int using_spice;
@@ -26,6 +27,13 @@ static void qemu_spice_init_stub(void)
{
}
+static void qemu_spice_display_init_stub(void)
+{
+ /* This must never be called if CONFIG_SPICE is disabled */
+ error_report("spice support is disabled");
+ abort();
+}
+
static int qemu_spice_migrate_info_stub(const char *h, int p, int t,
const char *s)
{
@@ -34,5 +42,6 @@ static int qemu_spice_migrate_info_stub(const char *h, int p, int t,
struct QemuSpiceOps qemu_spice = {
.init = qemu_spice_init_stub,
+ .display_init = qemu_spice_display_init_stub,
.migrate_info = qemu_spice_migrate_info_stub,
};