Enhance the output in machine parseable mode, by outputting all the
messages of OCaml tools as JSON to the machine parseable stream.
Related, although not strictly needed for this (and thus can be split
if requested), is the addition of the fd format for the machine
readable stream.
Pino Toscano (4):
common/mltools: move the code for machine readable up
common/mltools: make sure machine readable output is flushed
common/mltools: allow fd for machine readable output
OCaml tools: output messages into JSON for machine readable
common/mltools/Makefile.am | 2 +-
common/mltools/tools_utils-c.c | 68 ++++++++++++++++++++++++++
common/mltools/tools_utils.ml | 88 ++++++++++++++++++++++------------
lib/guestfs.pod | 24 ++++++++++
4 files changed, 151 insertions(+), 31 deletions(-)
--
2.20.1