[libvirt] [PATCH 02/23] Allow control over JSON string pretty printing

Eric Blake eblake at redhat.com
Tue Aug 14 23:35:01 UTC 2012


On 08/09/2012 09:20 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> 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 at redhat.com>
> ---
>  src/qemu/qemu_agent.c        | 10 +++++-----
>  src/qemu/qemu_monitor_json.c | 12 ++++++------
>  src/util/json.c              |  9 +++++----
>  src/util/json.h              |  3 ++-
>  4 files changed, 18 insertions(+), 16 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120814/5fcb61a6/attachment-0001.sig>


More information about the libvir-list mailing list