diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-12 12:42:37 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-12 12:42:37 +0300 |
commit | 9a4377be0d21e597c66bad6c7452873aebfb3c1c (patch) | |
tree | 2b3213e234b6d28a57dbb3f55b5557b079a962ac /src/liblzma/api/lzma | |
parent | Remove doubled words from documentation and comments. (diff) | |
download | xz-9a4377be0d21e597c66bad6c7452873aebfb3c1c.tar.xz |
Put the unstable APIs behind #ifdef LZMA_UNSTABLE.
This way people hopefully won't complain if these APIs
change and break code that used an older API.
Diffstat (limited to 'src/liblzma/api/lzma')
-rw-r--r-- | src/liblzma/api/lzma/container.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liblzma/api/lzma/container.h b/src/liblzma/api/lzma/container.h index e68c8940..499d8b9a 100644 --- a/src/liblzma/api/lzma/container.h +++ b/src/liblzma/api/lzma/container.h @@ -60,6 +60,7 @@ #define LZMA_PRESET_EXTREME (UINT32_C(1) << 31) +#ifdef LZMA_UNSTABLE /* Unstable API that may change. Use only for testing. */ /** * \brief Multithreading options */ @@ -179,6 +180,7 @@ typedef struct { void *reserved_ptr4; } lzma_mt; +#endif /** @@ -311,6 +313,7 @@ extern LZMA_API(lzma_ret) lzma_stream_encoder(lzma_stream *strm, lzma_nothrow lzma_attr_warn_unused_result; +#ifdef LZMA_UNSTABLE /* Unstable API that may change. Use only for testing. */ /** * \brief Calculate approximate memory usage of multithreaded .xz encoder * @@ -351,6 +354,7 @@ extern LZMA_API(uint64_t) lzma_stream_encoder_mt_memusage( extern LZMA_API(lzma_ret) lzma_stream_encoder_mt( lzma_stream *strm, const lzma_mt *options) lzma_nothrow lzma_attr_warn_unused_result; +#endif /** |