On a Thursday in 2021, Peter Krempa wrote:
Base the JSON output on a regular capability flag rather than purely
internal flag. This will prepare for the time when QEMU will accept JSON
argumets for -netdev.

For now the capability is not set (thus we for now don't have QMP
schema validation) but that will be addressed later.

To achieve this 'qemuBuildNetdevCommandlineFromJSON' is introduced
and all callers of 'virQEMUBuildNetdevCommandlineFromJSON' are
refactored to use the new helper.

Signed-off-by: Peter Krempa <[email protected]>
---
src/libvirt_private.syms |  1 +
src/qemu/qemu_command.c  | 55 ++++++++++++++++++++++++++--------------
src/util/virqemu.c       |  2 +-
src/util/virqemu.h       |  4 +++
4 files changed, 42 insertions(+), 20 deletions(-)


Reviewed-by: Ján Tomko <[email protected]>

Jano

Attachment: signature.asc
Description: PGP signature

Reply via email to