]> xenbits.xensource.com Git - libvirt.git/commit
util: qemu: Allow for different approaches to format JSON arrays
authorPeter Krempa <pkrempa@redhat.com>
Fri, 22 Jul 2016 15:50:03 +0000 (17:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Jul 2016 07:40:07 +0000 (09:40 +0200)
commitb7eef33df20dc19b3c70285ee29dabd2ee7391fa
treeb85f44ce16a099b71c7849f1c30af92424616c38
parentcd86d6f4656d01894141840531d61595e40e4682
util: qemu: Allow for different approaches to format JSON arrays

For use with memory hotplug virQEMUBuildCommandLineJSONRecurse attempted
to format JSON arrays as bitmap on the command line. Make the formatter
function configurable so that it can be reused with different syntaxes
of arrays such as numbered arrays for use with disk sources.

This patch extracts the code and adds a parameter for the function that
will allow to plug in different formatters.
src/libvirt_private.syms
src/util/virqemu.c
src/util/virqemu.h
tests/qemucommandutiltest.c