]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: Add helper to format -object strings from JSON representation
authorPeter Krempa <pkrempa@redhat.com>
Tue, 13 Jan 2015 17:19:34 +0000 (18:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 31 Jan 2015 07:53:22 +0000 (08:53 +0100)
commit331b2583ec2928bf9ad5d9ca6f42d1e0c12caf34
tree4e2e3ad1c095d55afe62433aa348aebf78439d22
parenta6f277a67bc6912a2cbb79a00ffd856599d989ef
qemu: command: Add helper to format -object strings from JSON representation

Unlike -device, qemu uses a JSON object to add backend "objects" via the
monitor rather than the string that would be passed on the commandline.

To be able to reuse code parts that configure backends for various
devices, this patch adds a helper that will allow generating the command
line representations from the JSON property object.
src/qemu/qemu_command.c
src/qemu/qemu_command.h
tests/Makefile.am
tests/qemucommandutiltest.c [new file with mode: 0644]