diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-19 09:52:18 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-10-21 15:46:14 +0200 |
commit | db5732c9cfcbf109ff97ee392c285a4675ffe398 (patch) | |
tree | f37563572f830f925eb12429c8ee8315611bcce6 /include | |
parent | 864a024c69da2bcf77ecfd0d8bd77f628ded5ba0 (diff) | |
download | qemu-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')
-rw-r--r-- | include/ui/qemu-spice-module.h | 3 |
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 }; |