From 84f04d8f0dbfc24a48ee888011ca7410b7bbafc5 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 7 Oct 2013 09:42:51 +0200 Subject: libxc: add LZ4 decompression support Since there's no shared or static library to link against, this simply re-uses the hypervisor side code. However, I only audited the code added here for possible security issues, not the referenced code in the hypervisor tree. Signed-off-by: Jan Beulich Acked-by: Keir Fraser Acked-by: Ian Campbell --- tools/libxc/xc_dom_decompress.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/libxc/xc_dom_decompress.h (limited to 'tools/libxc/xc_dom_decompress.h') diff --git a/tools/libxc/xc_dom_decompress.h b/tools/libxc/xc_dom_decompress.h new file mode 100644 index 0000000000..42cefa3f0e --- /dev/null +++ b/tools/libxc/xc_dom_decompress.h @@ -0,0 +1,8 @@ +#ifndef __MINIOS__ +# include "xc_dom.h" +#else +# include "xc_dom_decompress_unsafe.h" +#endif + +int xc_try_lz4_decode(struct xc_dom_image *dom, void **blob, size_t *size); + -- cgit v1.2.3