]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Make wrapping of 'props' of 'object-add' optional
authorPeter Krempa <pkrempa@redhat.com>
Mon, 30 Nov 2020 15:03:57 +0000 (16:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Mar 2021 13:06:31 +0000 (14:06 +0100)
commite0eeb2cc67d960a48937f99c659fb63dbd4049dc
tree7adf9a4dce50ea98235513598d9a749fd27763c8
parent3d50ecc9bb2be88a56f00cd60335215b0d1132c2
qemu: monitor: Make wrapping of 'props' of 'object-add' optional

Construct the JSON object which is used for object-add without the
'props' wrapper and add the wrapper only in the monitor code.

This simplifies the JSON->commandline generator in the first place and
also prepares for upcoming qemu where 'props' will be removed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_monitor.c
src/util/virqemu.c