diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-11 08:31:42 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-11 08:31:42 +0300 |
commit | a34730cf6af4d33a4057914e57227b6dfde6567e (patch) | |
tree | a9ff0156e66118acd06f7b28be8e3203c1794811 /src/liblzma/common/stream_encoder.c | |
parent | Revise mythread.h. (diff) | |
download | xz-a34730cf6af4d33a4057914e57227b6dfde6567e.tar.xz |
Revert "liblzma: Make lzma_stream_encoder_init() static."
This reverts commit 352ac82db5d3f64585c07b39e4759388dec0e4d7.
I don't know what I was thinking.
Diffstat (limited to 'src/liblzma/common/stream_encoder.c')
-rw-r--r-- | src/liblzma/common/stream_encoder.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/liblzma/common/stream_encoder.c b/src/liblzma/common/stream_encoder.c index b7d5cbf3..97a7a23a 100644 --- a/src/liblzma/common/stream_encoder.c +++ b/src/liblzma/common/stream_encoder.c @@ -10,6 +10,7 @@ // /////////////////////////////////////////////////////////////////////////////// +#include "stream_encoder.h" #include "block_encoder.h" #include "index_encoder.h" @@ -261,11 +262,11 @@ stream_encoder_update(lzma_coder *coder, lzma_allocator *allocator, } -static lzma_ret -stream_encoder_init(lzma_next_coder *next, lzma_allocator *allocator, +extern lzma_ret +lzma_stream_encoder_init(lzma_next_coder *next, lzma_allocator *allocator, const lzma_filter *filters, lzma_check check) { - lzma_next_coder_init(&stream_encoder_init, next, allocator); + lzma_next_coder_init(&lzma_stream_encoder_init, next, allocator); if (filters == NULL) return LZMA_PROG_ERROR; @@ -319,7 +320,7 @@ extern LZMA_API(lzma_ret) lzma_stream_encoder(lzma_stream *strm, const lzma_filter *filters, lzma_check check) { - lzma_next_strm_init(stream_encoder_init, strm, filters, check); + lzma_next_strm_init(lzma_stream_encoder_init, strm, filters, check); strm->internal->supported_actions[LZMA_RUN] = true; strm->internal->supported_actions[LZMA_SYNC_FLUSH] = true; |