summaryrefslogtreecommitdiffstats
path: root/include/uncompress.h
blob: 4bdb03d4f5b695fe6f42efa9c4bf44d9c315ea5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */
#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 */