summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/mspack/mszip.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/mspack/mszip.h')
-rw-r--r--rbutil/rbutilqt/mspack/mszip.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/mspack/mszip.h b/rbutil/rbutilqt/mspack/mszip.h
index 13c9542ee6..2cd608234e 100644
--- a/rbutil/rbutilqt/mspack/mszip.h
+++ b/rbutil/rbutilqt/mspack/mszip.h
@@ -32,14 +32,14 @@ extern "C" {
32# define MSZIP_LITERAL_TABLESIZE (MSZIP_LITERAL_MAXSYMBOLS * 4) 32# define MSZIP_LITERAL_TABLESIZE (MSZIP_LITERAL_MAXSYMBOLS * 4)
33#else 33#else
34# define MSZIP_LITERAL_TABLESIZE ((1 << MSZIP_LITERAL_TABLEBITS) + \ 34# define MSZIP_LITERAL_TABLESIZE ((1 << MSZIP_LITERAL_TABLEBITS) + \
35 (MSZIP_LITERAL_MAXSYMBOLS * 2)) 35 (MSZIP_LITERAL_MAXSYMBOLS * 2))
36#endif 36#endif
37 37
38#if (1 << MSZIP_DISTANCE_TABLEBITS) < (MSZIP_DISTANCE_MAXSYMBOLS * 2) 38#if (1 << MSZIP_DISTANCE_TABLEBITS) < (MSZIP_DISTANCE_MAXSYMBOLS * 2)
39# define MSZIP_DISTANCE_TABLESIZE (MSZIP_DISTANCE_MAXSYMBOLS * 4) 39# define MSZIP_DISTANCE_TABLESIZE (MSZIP_DISTANCE_MAXSYMBOLS * 4)
40#else 40#else
41# define MSZIP_DISTANCE_TABLESIZE ((1 << MSZIP_DISTANCE_TABLEBITS) + \ 41# define MSZIP_DISTANCE_TABLESIZE ((1 << MSZIP_DISTANCE_TABLEBITS) + \
42 (MSZIP_DISTANCE_MAXSYMBOLS * 2)) 42 (MSZIP_DISTANCE_MAXSYMBOLS * 2))
43#endif 43#endif
44 44
45struct mszipd_stream { 45struct mszipd_stream {
@@ -83,10 +83,10 @@ struct mszipd_stream {
83 * a partial recovery of erroneous data. 83 * a partial recovery of erroneous data.
84 */ 84 */
85extern struct mszipd_stream *mszipd_init(struct mspack_system *system, 85extern struct mszipd_stream *mszipd_init(struct mspack_system *system,
86 struct mspack_file *input, 86 struct mspack_file *input,
87 struct mspack_file *output, 87 struct mspack_file *output,
88 int input_buffer_size, 88 int input_buffer_size,
89 int repair_mode); 89 int repair_mode);
90 90
91/* decompresses, or decompresses more of, an MS-ZIP stream. 91/* decompresses, or decompresses more of, an MS-ZIP stream.
92 * 92 *
@@ -108,6 +108,11 @@ extern struct mszipd_stream *mszipd_init(struct mspack_system *system,
108 */ 108 */
109extern int mszipd_decompress(struct mszipd_stream *zip, off_t out_bytes); 109extern int mszipd_decompress(struct mszipd_stream *zip, off_t out_bytes);
110 110
111/* decompresses an entire MS-ZIP stream in a KWAJ file. Acts very much
112 * like mszipd_decompress(), but doesn't take an out_bytes parameter
113 */
114extern int mszipd_decompress_kwaj(struct mszipd_stream *zip);
115
111/* frees all stream associated with an MS-ZIP data stream 116/* frees all stream associated with an MS-ZIP data stream
112 * 117 *
113 * - calls system->free() using the system pointer given in mszipd_init() 118 * - calls system->free() using the system pointer given in mszipd_init()