eb1c2e7de6
uncompress() has the same prototype as the various kernel decompress functions. It automatically detects the compression type and selects the correct uncompress function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
20 lines
464 B
C
20 lines
464 B
C
#ifndef __UNCOMPRESS_H
|
|
#define __UNCOMPRESS_H
|
|
|
|
int uncompress(unsigned char *inbuf, int len,
|
|
int(*fill)(void*, unsigned int),
|
|
int(*flush)(void*, unsigned int),
|
|
unsigned char *output,
|
|
int *pos,
|
|
void(*error_fn)(char *x));
|
|
|
|
int uncompress_fd_to_fd(int infd, int outfd,
|
|
void(*error_fn)(char *x));
|
|
|
|
int uncompress_fd_to_buf(int infd, void *output,
|
|
void(*error_fn)(char *x));
|
|
|
|
void uncompress_err_stdout(char *);
|
|
|
|
#endif /* __UNCOMPRESS_H */
|