libxl: Add wrapper around libxl__json_object_to_json JSON
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 22 Nov 2018 18:38:39 +0000 (18:38 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 11 Jan 2019 14:57:35 +0000 (14:57 +0000)
commit0778f1a499a5d398feeb53332efa48073b998172
treeee6d52e64bed72c94fe3444f8e94c3a3bcfc7112
parent535dface491c4132d5b7e3af077058b25e1cd40c
libxl: Add wrapper around libxl__json_object_to_json JSON

That wrapper is going to be used to safely log a json_object, as
libxl__json_object_to_json return NULL on error. In the error case,
JSON() will return an invalid json string.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_internal.h