Re: [Qemu-devel] [PATCH v3 12/18] qapi: Add qobject_to_json_pretty_prefix()

2016-05-03 Thread Markus Armbruster
Eric Blake writes: > On 05/02/2016 07:56 AM, Markus Armbruster wrote: >> Eric Blake writes: >> >>> The next patch will add pretty indentation to the JSON visitor. >>> But in order to support pretty output in the type_any() callback, >>> we need to prefix every line of the QObject visitor by the

Re: [Qemu-devel] [PATCH v3 12/18] qapi: Add qobject_to_json_pretty_prefix()

2016-05-02 Thread Eric Blake
On 05/02/2016 07:56 AM, Markus Armbruster wrote: > Eric Blake writes: > >> The next patch will add pretty indentation to the JSON visitor. >> But in order to support pretty output in the type_any() callback, >> we need to prefix every line of the QObject visitor by the current >> indentation in t

Re: [Qemu-devel] [PATCH v3 12/18] qapi: Add qobject_to_json_pretty_prefix()

2016-05-02 Thread Markus Armbruster
Eric Blake writes: > The next patch will add pretty indentation to the JSON visitor. > But in order to support pretty output in the type_any() callback, > we need to prefix every line of the QObject visitor by the current > indentation in the JSON visitor. Hence, a new function > qobject_to_json

[Qemu-devel] [PATCH v3 12/18] qapi: Add qobject_to_json_pretty_prefix()

2016-04-28 Thread Eric Blake
The next patch will add pretty indentation to the JSON visitor. But in order to support pretty output in the type_any() callback, we need to prefix every line of the QObject visitor by the current indentation in the JSON visitor. Hence, a new function qobject_to_json_pretty_indent(), and the old f