]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: qemu: Add wrapper for JSON -> commandline conversion
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 Jul 2016 13:54:57 +0000 (15:54 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Jul 2016 07:39:46 +0000 (09:39 +0200)
commitf0276c34891cb17c4b20ad9956267d6249d24cfa
treec0c47195c8ac4b7dd0724c15244c2c62b288db02
parentbc4339719eb8eb5c83127d6f152f9e77915a7b9c
util: qemu: Add wrapper for JSON -> commandline conversion

Refactor the command line generator by adding a wrapper (with
documentation) that will handle the outermost object iteration.

This patch also renames the functions and tweaks the error message for
nested arrays to be more universal.

The new function is then reused to simplify qemucommandutiltest.
src/libvirt_private.syms
src/util/virqemu.c
src/util/virqemu.h
tests/qemucommandutiltest.c