aboutsummaryrefslogtreecommitdiff
path: root/include/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-10-19 09:52:18 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-10-21 15:46:14 +0200
commitdb5732c9cfcbf109ff97ee392c285a4675ffe398 (patch)
treef37563572f830f925eb12429c8ee8315611bcce6 /include/ui
parent864a024c69da2bcf77ecfd0d8bd77f628ded5ba0 (diff)
downloadqemu-db5732c9cfcbf109ff97ee392c285a4675ffe398.zip
qemu-db5732c9cfcbf109ff97ee392c285a4675ffe398.tar.gz
qemu-db5732c9cfcbf109ff97ee392c285a4675ffe398.tar.bz2
spice: wire up monitor in QemuSpiceOps.
Rename qmp_query_spice() to qmp_query_spice_real(), add to QemuSpiceOps. Add new qmp_query_spice() function which calls the real function via QemuSpiceOps if available, otherwise return SpiceInfo.enabled = false. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20201019075224.14803-9-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/qemu-spice-module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ui/qemu-spice-module.h b/include/ui/qemu-spice-module.h
index 7422f64..1f22d55 100644
--- a/include/ui/qemu-spice-module.h
+++ b/include/ui/qemu-spice-module.h
@@ -22,6 +22,8 @@
#include <spice.h>
#endif
+typedef struct SpiceInfo SpiceInfo;
+
struct QemuSpiceOps {
void (*init)(void);
void (*display_init)(void);
@@ -32,6 +34,7 @@ struct QemuSpiceOps {
int (*display_add_client)(int csock, int skipauth, int tls);
#ifdef CONFIG_SPICE
int (*add_interface)(SpiceBaseInstance *sin);
+ SpiceInfo* (*qmp_query)(Error **errp);
#endif
};