18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Wrapper for decompressing XZ-compressed kernel, initramfs, and initrd
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Author: Lasse Collin <lasse.collin@tukaani.org>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * This file has been put into the public domain.
78c2ecf20Sopenharmony_ci * You can do whatever you want with this file.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#ifndef DECOMPRESS_UNXZ_H
118c2ecf20Sopenharmony_ci#define DECOMPRESS_UNXZ_H
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciint unxz(unsigned char *in, long in_size,
148c2ecf20Sopenharmony_ci	 long (*fill)(void *dest, unsigned long size),
158c2ecf20Sopenharmony_ci	 long (*flush)(void *src, unsigned long size),
168c2ecf20Sopenharmony_ci	 unsigned char *out, long *in_used,
178c2ecf20Sopenharmony_ci	 void (*error)(char *x));
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#endif
20