diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-28 12:50:28 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-29 21:12:27 +0100 |
commit | 5930f100aac7cebd4e45d4ec6c16e1cf5b2a1274 (patch) | |
tree | 25d5eb4517a90e275c2f64eaa110fdfd7ca82e72 /include/bunzip2.h | |
parent | f400980638b4d6388689f298c8a538d3979dad39 (diff) | |
download | barebox-5930f100aac7cebd4e45d4ec6c16e1cf5b2a1274.tar.gz barebox-5930f100aac7cebd4e45d4ec6c16e1cf5b2a1274.tar.xz |
use kernel bunzip implementation
The kernel uncompression functions have a unified API. Switch
to the kernel implementation to unify the different uncompression
APIs. As a bonus the kernel implementation is much smaller.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bunzip2.h')
-rw-r--r-- | include/bunzip2.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/bunzip2.h b/include/bunzip2.h new file mode 100644 index 0000000000..115272137a --- /dev/null +++ b/include/bunzip2.h @@ -0,0 +1,10 @@ +#ifndef DECOMPRESS_BUNZIP2_H +#define DECOMPRESS_BUNZIP2_H + +int bunzip2(unsigned char *inbuf, int len, + int(*fill)(void*, unsigned int), + int(*flush)(void*, unsigned int), + unsigned char *output, + int *pos, + void(*error)(char *x)); +#endif |