aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/container.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-01-31 11:01:48 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-01-31 11:01:48 +0200
commit6a2eb54092fc625d59921a607ff68cd1a90aa898 (patch)
tree83d03f866e998f3576e127196a41b5ff5265c1d4 /src/liblzma/api/lzma/container.h
parentUse _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows. (diff)
downloadxz-6a2eb54092fc625d59921a607ff68cd1a90aa898.tar.xz
Add LZMA_API to liblzma API headers. It's useful at least
on Windows. sysdefs.h no longer #includes lzma.h, so lzma.h has to be #included separately where needed.
Diffstat (limited to '')
-rw-r--r--src/liblzma/api/lzma/container.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/liblzma/api/lzma/container.h b/src/liblzma/api/lzma/container.h
index a6cee0fe..dc7dc855 100644
--- a/src/liblzma/api/lzma/container.h
+++ b/src/liblzma/api/lzma/container.h
@@ -71,7 +71,7 @@
*
* \param preset Compression preset (level and possible flags)
*/
-extern uint64_t lzma_easy_encoder_memusage(uint32_t preset)
+extern LZMA_API uint64_t lzma_easy_encoder_memusage(uint32_t preset)
lzma_attr_pure;
@@ -82,7 +82,7 @@ extern uint64_t lzma_easy_encoder_memusage(uint32_t preset)
*
* \param preset Compression preset (level and possible flags)
*/
-extern uint64_t lzma_easy_decoder_memusage(uint32_t preset)
+extern LZMA_API uint64_t lzma_easy_decoder_memusage(uint32_t preset)
lzma_attr_pure;
@@ -119,7 +119,7 @@ extern uint64_t lzma_easy_decoder_memusage(uint32_t preset)
* LZMA_RUN, LZMA_SYNC_FLUSH, LZMA_FULL_FLUSH, and LZMA_FINISH. In future,
* there may be compression levels or flags that don't support LZMA_SYNC_FLUSH.
*/
-extern lzma_ret lzma_easy_encoder(
+extern LZMA_API lzma_ret lzma_easy_encoder(
lzma_stream *strm, uint32_t preset, lzma_check check)
lzma_attr_warn_unused_result;
@@ -139,7 +139,7 @@ extern lzma_ret lzma_easy_encoder(
* - LZMA_OPTIONS_ERROR
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_stream_encoder(lzma_stream *strm,
+extern LZMA_API lzma_ret lzma_stream_encoder(lzma_stream *strm,
const lzma_filter *filters, lzma_check check)
lzma_attr_warn_unused_result;
@@ -164,7 +164,7 @@ extern lzma_ret lzma_stream_encoder(lzma_stream *strm,
* - LZMA_OPTIONS_ERROR
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_alone_encoder(
+extern LZMA_API lzma_ret lzma_alone_encoder(
lzma_stream *strm, const lzma_options_lzma *options)
lzma_attr_warn_unused_result;
@@ -191,7 +191,7 @@ extern lzma_ret lzma_alone_encoder(
* uncompressible data. Currently there is no function to
* calculate the maximum expansion of multi-call encoding.
*/
-extern size_t lzma_stream_buffer_bound(size_t uncompressed_size);
+extern LZMA_API size_t lzma_stream_buffer_bound(size_t uncompressed_size);
/**
@@ -219,7 +219,7 @@ extern size_t lzma_stream_buffer_bound(size_t uncompressed_size);
* - LZMA_DATA_ERROR
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_stream_buffer_encode(
+extern LZMA_API lzma_ret lzma_stream_buffer_encode(
lzma_filter *filters, lzma_check check,
lzma_allocator *allocator, const uint8_t *in, size_t in_size,
uint8_t *out, size_t *out_pos, size_t out_size)
@@ -286,7 +286,7 @@ extern lzma_ret lzma_stream_buffer_encode(
* - LZMA_MEM_ERROR: Cannot allocate memory.
* - LZMA_OPTIONS_ERROR: Unsupported flags
*/
-extern lzma_ret lzma_stream_decoder(
+extern LZMA_API lzma_ret lzma_stream_decoder(
lzma_stream *strm, uint64_t memlimit, uint32_t flags)
lzma_attr_warn_unused_result;
@@ -306,7 +306,7 @@ extern lzma_ret lzma_stream_decoder(
* - LZMA_MEM_ERROR: Cannot allocate memory.
* - LZMA_OPTIONS_ERROR: Unsupported flags
*/
-extern lzma_ret lzma_auto_decoder(
+extern LZMA_API lzma_ret lzma_auto_decoder(
lzma_stream *strm, uint64_t memlimit, uint32_t flags)
lzma_attr_warn_unused_result;
@@ -321,7 +321,8 @@ extern lzma_ret lzma_auto_decoder(
* \return - LZMA_OK
* - LZMA_MEM_ERROR
*/
-extern lzma_ret lzma_alone_decoder(lzma_stream *strm, uint64_t memlimit)
+extern LZMA_API lzma_ret lzma_alone_decoder(
+ lzma_stream *strm, uint64_t memlimit)
lzma_attr_warn_unused_result;
@@ -363,7 +364,7 @@ extern lzma_ret lzma_alone_decoder(lzma_stream *strm, uint64_t memlimit)
* - LZMA_BUF_ERROR: Output buffer was too small.
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_stream_buffer_decode(
+extern LZMA_API lzma_ret lzma_stream_buffer_decode(
uint64_t *memlimit, uint32_t flags, lzma_allocator *allocator,
const uint8_t *in, size_t *in_pos, size_t in_size,
uint8_t *out, size_t *out_pos, size_t out_size)