mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
spice: add QemuSpiceOps, move migrate_info
Add QemuSpiceOps struct. This struct holds function pointers to the spice functions. It will be initialized with pointers to the stub functions. When spice gets initialized the function pointers will be re-written to the real functions. The spice stubs will move from qemu-spice.h to spice-module.c for that, because they will be needed for both "CONFIG_SPICE=n" and "CONFIG_SPICE=y but spice module not loaded" cases. This patch adds the infrastructure and starts with moving qemu_spice_migrate_info() to QemuSpiceOps. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 20201019075224.14803-3-kraxel@redhat.com
This commit is contained in:
parent
2e31e210a8
commit
7477477ca7
5 changed files with 21 additions and 6 deletions
|
@ -437,7 +437,7 @@ void qmp_client_migrate_info(const char *protocol, const char *hostname,
|
|||
return;
|
||||
}
|
||||
|
||||
if (qemu_spice_migrate_info(hostname,
|
||||
if (qemu_spice.migrate_info(hostname,
|
||||
has_port ? port : -1,
|
||||
has_tls_port ? tls_port : -1,
|
||||
cert_subject)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue