diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-27 18:36:05 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-27 18:36:05 +0200 |
commit | f76e39cf930f888d460b443d18f977ebedea8b2a (patch) | |
tree | 314f531dc9953c5b87a5268d53373e6646598323 /src/liblzma/lz/lz_decoder.h | |
parent | Regenerate the CRC tables without trailing blanks. (diff) | |
download | xz-f76e39cf930f888d460b443d18f977ebedea8b2a.tar.xz |
Added initial support for preset dictionary for raw LZMA1
and LZMA2. It is not supported by the .xz format or the xz
command line tool yet.
Diffstat (limited to 'src/liblzma/lz/lz_decoder.h')
-rw-r--r-- | src/liblzma/lz/lz_decoder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/liblzma/lz/lz_decoder.h b/src/liblzma/lz/lz_decoder.h index 5ac44057..9041d0bd 100644 --- a/src/liblzma/lz/lz_decoder.h +++ b/src/liblzma/lz/lz_decoder.h @@ -52,6 +52,13 @@ typedef struct { typedef struct { + size_t dict_size; + const uint8_t *preset_dict; + size_t preset_dict_size; +} lzma_lz_options; + + +typedef struct { /// Data specific to the LZ-based decoder lzma_coder *coder; @@ -86,7 +93,7 @@ extern lzma_ret lzma_lz_decoder_init(lzma_next_coder *next, lzma_allocator *allocator, const lzma_filter_info *filters, lzma_ret (*lz_init)(lzma_lz_decoder *lz, lzma_allocator *allocator, const void *options, - size_t *dict_size)); + lzma_lz_options *lz_options)); extern uint64_t lzma_lz_decoder_memusage(size_t dictionary_size); |