aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_json.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-02-07 17:01:57 +0000
committerIan Campbell <ian.campbell@citrix.com>2012-02-07 17:01:57 +0000
commit9faa8b12d80ffb9615bc07adc2249af60c0e32f8 (patch)
tree288e80d3464bd8e0a742f371162308d4707759f4 /tools/libxl/libxl_json.h
parent914e61c1ec5a7996a3e71692ce41e77359e70e0c (diff)
downloadxen-9faa8b12d80ffb9615bc07adc2249af60c0e32f8.tar.gz
xen-9faa8b12d80ffb9615bc07adc2249af60c0e32f8.tar.bz2
xen-9faa8b12d80ffb9615bc07adc2249af60c0e32f8.zip
xl: use json output by default
Move the sxp producing code off into a separate file. It is supported for legacy reasons and needn't be updated other than the improve compatibility with xm. libxl_domain_config is not currently generated by the IDL (adding the necessary support for Array types is on my to do list) so hand code the json generation function for now. Since this rather directly exposes a libxl data structure it's not clear what sort of forward compatibility guarantees we can make. However it seems like it should be as stable as libxl's own API (which we are looking to stabilise) (Gratuitous string.h include needed for memset in libxl_util.h) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <Ian.Jackson@eu.citrix.com> Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxl/libxl_json.h')
-rw-r--r--tools/libxl/libxl_json.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxl/libxl_json.h b/tools/libxl/libxl_json.h
index 898dec79e7..bee029317f 100644
--- a/tools/libxl/libxl_json.h
+++ b/tools/libxl/libxl_json.h
@@ -70,4 +70,7 @@ static inline yajl_gen libxl__yajl_gen_alloc(const yajl_alloc_funcs *allocFuncs)
#endif /* !HAVE_YAJL_V2 */
+yajl_gen_status libxl_domain_config_gen_json(yajl_gen hand,
+ libxl_domain_config *p);
+
#endif /* LIBXL_JSON_H */