diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2007-09-30 20:56:49 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:53:57 -0400 |
commit | 8336793baf962163c9fab5a3f39614295fdbab27 (patch) | |
tree | 6940426f8880928444e227d43085ca3d2fbfba80 /include/linux/zlib.h | |
parent | b3448b0bde5f1a858397fe791f76632e978a1dc8 (diff) |
[ZLIB]: Move bnx2 driver gzip unpacker into zlib.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/zlib.h')
-rw-r--r-- | include/linux/zlib.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/zlib.h b/include/linux/zlib.h index 9e3192a7dc6f..40c49cb3eb51 100644 --- a/include/linux/zlib.h +++ b/include/linux/zlib.h | |||
@@ -82,7 +82,7 @@ | |||
82 | struct internal_state; | 82 | struct internal_state; |
83 | 83 | ||
84 | typedef struct z_stream_s { | 84 | typedef struct z_stream_s { |
85 | Byte *next_in; /* next input byte */ | 85 | const Byte *next_in; /* next input byte */ |
86 | uInt avail_in; /* number of bytes available at next_in */ | 86 | uInt avail_in; /* number of bytes available at next_in */ |
87 | uLong total_in; /* total nb of input bytes read so far */ | 87 | uLong total_in; /* total nb of input bytes read so far */ |
88 | 88 | ||
@@ -699,4 +699,8 @@ extern int zlib_inflateInit2(z_streamp strm, int windowBits); | |||
699 | struct internal_state {int dummy;}; /* hack for buggy compilers */ | 699 | struct internal_state {int dummy;}; /* hack for buggy compilers */ |
700 | #endif | 700 | #endif |
701 | 701 | ||
702 | /* Utility function: initialize zlib, unpack binary blob, clean up zlib, | ||
703 | * return len or negative error code. */ | ||
704 | extern int zlib_inflate_blob(void *dst, unsigned dst_sz, const void *src, unsigned src_sz); | ||
705 | |||
702 | #endif /* _ZLIB_H */ | 706 | #endif /* _ZLIB_H */ |