diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-02-07 17:01:57 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-02-07 17:01:57 +0000 |
commit | 9faa8b12d80ffb9615bc07adc2249af60c0e32f8 (patch) | |
tree | 288e80d3464bd8e0a742f371162308d4707759f4 /tools/libxl/xl.h | |
parent | 914e61c1ec5a7996a3e71692ce41e77359e70e0c (diff) | |
download | xen-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/xl.h')
-rw-r--r-- | tools/libxl/xl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libxl/xl.h b/tools/libxl/xl.h index 6c30765c7a..a852a43d36 100644 --- a/tools/libxl/xl.h +++ b/tools/libxl/xl.h @@ -111,6 +111,14 @@ extern int dryrun_only; extern char *lockfile; extern char *default_vifscript; +enum output_format { + OUTPUT_FORMAT_JSON, + OUTPUT_FORMAT_SXP, +}; +extern enum output_format default_output_format; + +extern void printf_info_sexp(int domid, libxl_domain_config *d_config); + #endif /* XL_H */ /* |