History | View | Annotate | Download (730 Bytes)
qjson.h: include compiler.h for GCC_FMT_ATTR
Signed-off-by: Alon Levy <alevy@redhat.com>Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Merge remote branch 'qmp/for-anthony' into staging
Use GCC_FMT_ATTR (format checking)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)
Since version 4.4.x, gcc supports additional format attributes. attribute ((format (gnu_printf, 1, 2)))should be used instead of attribute ((format (printf, 1, 2))...
Add support for JSON pretty printing
The monitor does not pretty-print JSON output, so that everythingwill be on a single line reply. When JSON docs get large this isquite unpleasant to read. For the future command line capabilitiesquery ability, huge JSON docs will be available. This needs the...
QJSON: Introduce qobject_from_jsonv()
It accepts a va_list and will be used by QError. Also simplifiesthe code a little, as the other qobject_from_() functions canuse it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Provide marshalling mechanism for json
This introduces qobject_to_json which will convert a QObject to a JSON stringrepresentation.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Add a QObject JSON wrapper
This provides a QObject interface for creating QObjects from a JSON expression.