summaryrefslogtreecommitdiffstats
path: root/include/gunzip.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-11-28 13:46:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-11-29 21:12:42 +0100
commit4b09cdc798ef62602f874a4da03d2a54ca60b4ae (patch)
tree7e60ac75f8f1fee86e11130064bdffee924df7f7 /include/gunzip.h
parent15fcc719abbfe8f42057eeec275ce574ba2fbdd0 (diff)
downloadbarebox-4b09cdc798ef62602f874a4da03d2a54ca60b4ae.tar.gz
barebox-4b09cdc798ef62602f874a4da03d2a54ca60b4ae.tar.xz
add kernel gunzip implementation
The kernel uncompression functions have a unified API so use this implementation to get it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/gunzip.h')
-rw-r--r--include/gunzip.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/gunzip.h b/include/gunzip.h
new file mode 100644
index 0000000000..8c0aef1ba5
--- /dev/null
+++ b/include/gunzip.h
@@ -0,0 +1,10 @@
+#ifndef INFLATE_H
+#define INFLATE_H
+
+int gunzip(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));
+#endif