]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow control over JSON string pretty printing
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 9 Aug 2012 10:46:29 +0000 (11:46 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 15 Aug 2012 09:55:51 +0000 (10:55 +0100)
commitecf00158ff9cce0cbf258f1ad2666549f4dbadc3
tree9ed8e5ce6e4acedb917d2975c52fa0a0653f1128
parent4ee867214648385d38e350f300418eaf37191ca3
Allow control over JSON string pretty printing

While the QEMU monitor/agent do not want JSON strings pretty
printed, other parts of libvirt might. Instead of hardcoding
QEMU's desired behaviour in virJSONValueToString(), add a
boolean flag to control pretty printing

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_agent.c
src/qemu/qemu_monitor_json.c
src/util/json.c
src/util/json.h