summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/mspack/mszip.h
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-06-08 21:44:02 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-08-07 22:18:41 +0200
commit729b6e4f33419489415a6111bb98e5d95221a338 (patch)
tree87e83604959f7d848e80287aa799900cd0a9f989 /rbutil/rbutilqt/mspack/mszip.h
parentb0f22620a2dbfb991b10a8e1e8b0c8db5e3ee117 (diff)
downloadrockbox-729b6e4f33.tar.gz
rockbox-729b6e4f33.tar.bz2
rockbox-729b6e4f33.zip
rbutil: Update libmspack to 0.10.1alpha.
Update to the most recent release. Fix name / include clashes, as has been done before. Change-Id: Ia712bb2b5f4b9018b65a46b8bdd04ba42363be8b
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" {
# define MSZIP_LITERAL_TABLESIZE (MSZIP_LITERAL_MAXSYMBOLS * 4)
#else
# define MSZIP_LITERAL_TABLESIZE ((1 << MSZIP_LITERAL_TABLEBITS) + \
- (MSZIP_LITERAL_MAXSYMBOLS * 2))
+ (MSZIP_LITERAL_MAXSYMBOLS * 2))
#endif
#if (1 << MSZIP_DISTANCE_TABLEBITS) < (MSZIP_DISTANCE_MAXSYMBOLS * 2)
# define MSZIP_DISTANCE_TABLESIZE (MSZIP_DISTANCE_MAXSYMBOLS * 4)
#else
# define MSZIP_DISTANCE_TABLESIZE ((1 << MSZIP_DISTANCE_TABLEBITS) + \
- (MSZIP_DISTANCE_MAXSYMBOLS * 2))
+ (MSZIP_DISTANCE_MAXSYMBOLS * 2))
#endif
struct mszipd_stream {
@@ -83,10 +83,10 @@ struct mszipd_stream {
* a partial recovery of erroneous data.
*/
extern struct mszipd_stream *mszipd_init(struct mspack_system *system,
- struct mspack_file *input,
- struct mspack_file *output,
- int input_buffer_size,
- int repair_mode);
+ struct mspack_file *input,
+ struct mspack_file *output,
+ int input_buffer_size,
+ int repair_mode);
/* decompresses, or decompresses more of, an MS-ZIP stream.
*
@@ -108,6 +108,11 @@ extern struct mszipd_stream *mszipd_init(struct mspack_system *system,
*/
extern int mszipd_decompress(struct mszipd_stream *zip, off_t out_bytes);
+/* decompresses an entire MS-ZIP stream in a KWAJ file. Acts very much
+ * like mszipd_decompress(), but doesn't take an out_bytes parameter
+ */
+extern int mszipd_decompress_kwaj(struct mszipd_stream *zip);
+
/* frees all stream associated with an MS-ZIP data stream
*
* - calls system->free() using the system pointer given in mszipd_init()