]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBuildObjectCommandlineFromJSON: Format directly into the virCommand
authorPeter Krempa <pkrempa@redhat.com>
Fri, 24 Sep 2021 14:15:38 +0000 (16:15 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 12 Oct 2021 08:25:59 +0000 (10:25 +0200)
commit6da02fecca2ded0935210efa617f5fbab8e9cb3d
treed6c9dad5c978cda7e8388ab6906d2259371e1ff5
parentf8f9c49302dbf8828085ebc46f444d4b868da97a
qemuBuildObjectCommandlineFromJSON: Format directly into the virCommand

All callers basically end up dumping the buffer into a string and then
adding '-object' 'props' arguments to virCommand. Simplify all callers
by doing this in the function itself.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_command.c