summaryrefslogtreecommitdiffstats
path: root/include/uncompress.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uncompress.h')
-rw-r--r--include/uncompress.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/uncompress.h b/include/uncompress.h
index 4bdb03d4f5..69ba18000e 100644
--- a/include/uncompress.h
+++ b/include/uncompress.h
@@ -2,11 +2,11 @@
#ifndef __UNCOMPRESS_H
#define __UNCOMPRESS_H
-int uncompress(unsigned char *inbuf, int len,
- int(*fill)(void*, unsigned int),
- int(*flush)(void*, unsigned int),
+int uncompress(unsigned char *inbuf, long len,
+ long(*fill)(void*, unsigned long),
+ long(*flush)(void*, unsigned long),
unsigned char *output,
- int *pos,
+ long *pos,
void(*error_fn)(char *x));
int uncompress_fd_to_fd(int infd, int outfd,
@@ -15,6 +15,12 @@ int uncompress_fd_to_fd(int infd, int outfd,
int uncompress_fd_to_buf(int infd, void *output,
void(*error_fn)(char *x));
+int uncompress_buf_to_fd(const void *input, size_t input_len,
+ int outfd, void(*error_fn)(char *x));
+
+ssize_t uncompress_buf_to_buf(const void *input, size_t input_len,
+ void **buf, void(*error_fn)(char *x));
+
void uncompress_err_stdout(char *);
#endif /* __UNCOMPRESS_H */