]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Add human mode to StringOutputVisitor
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Feb 2014 10:01:50 +0000 (11:01 +0100)
committerAndreas Färber <afaerber@suse.de>
Fri, 14 Feb 2014 20:12:03 +0000 (21:12 +0100)
commit0b7593e085e66c7f5ab980a1ed8ee683c36b7347
treef883f5fc027994008c1e5a214d5b36100c7ad1ee
parent98a6528461acf7a6f321d846e6f4e77e87305965
qapi: Add human mode to StringOutputVisitor

This will be used by "info qtree".  For numbers it prints both the
decimal and hex values.  For sizes it rounds to the nearest power
of 2^10.  For strings, it puts quotes around the string and separates
NULL and empty string.

Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
include/qapi/string-output-visitor.h
include/qom/object.h
qapi/string-output-visitor.c
qdev-monitor.c
qom/object.c
tests/test-string-output-visitor.c
tests/test-visitor-serialization.c