1 #include "xc_dom.h" 2 3 typedef int decompress_fn(unsigned char *inbuf, unsigned int len, 4 int (*fill)(void*, unsigned int), 5 int (*flush)(void*, unsigned int), 6 unsigned char *outbuf, unsigned int *posp, 7 void (*error)(const char *x)); 8 9 int xc_dom_decompress_unsafe( 10 decompress_fn fn, struct xc_dom_image *dom, void **blob, size_t *size) 11 __attribute__((visibility("internal"))); 12 13 int xc_try_bzip2_decode(struct xc_dom_image *dom, void **blob, size_t *size) 14 __attribute__((visibility("internal"))); 15 int xc_try_lzma_decode(struct xc_dom_image *dom, void **blob, size_t *size) 16 __attribute__((visibility("internal"))); 17 int xc_try_lzo1x_decode(struct xc_dom_image *dom, void **blob, size_t *size) 18 __attribute__((visibility("internal"))); 19 int xc_try_xz_decode(struct xc_dom_image *dom, void **blob, size_t *size) 20 __attribute__((visibility("internal"))); 21