aboutsummaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorLei Wen <adrian.wenl@gmail.com>2012-09-28 04:26:46 +0000
committerTom Rini <trini@ti.com>2012-09-29 07:26:08 -0700
commit88d52c6affa69971caad651e26dcac88a1484a4b (patch)
treee6bf966b00a00df2ffb487f267c02014c97f51aa /include/common.h
parent869c2abbaf98e91e7c9ef71806f6c8eef91206ae (diff)
lib: add gzip lib function callback
Signed-off-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 55025c0af..a7fb05e52 100644
--- a/include/common.h
+++ b/include/common.h
@@ -829,6 +829,13 @@ void fputc(int file, const char c);
int ftstc(int file);
int fgetc(int file);
+/* lib/gzip.c */
+int gzip(void *dst, unsigned long *lenp,
+ unsigned char *src, unsigned long srclen);
+int zzip(void *dst, unsigned long *lenp, unsigned char *src,
+ unsigned long srclen, int stoponerr,
+ int (*func)(unsigned long, unsigned long));
+
/* lib/net_utils.c */
#include <net.h>
static inline IPaddr_t getenv_IPaddr(char *var)