aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/block.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/liblzma/api/lzma/block.h')
-rw-r--r--src/liblzma/api/lzma/block.h25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/liblzma/api/lzma/block.h b/src/liblzma/api/lzma/block.h
index 7ac0a02c..845d828e 100644
--- a/src/liblzma/api/lzma/block.h
+++ b/src/liblzma/api/lzma/block.h
@@ -280,7 +280,7 @@ typedef struct {
* filter chain, consider using lzma_memlimit_encoder() which as
* a side-effect validates the filter chain.
*/
-extern lzma_ret lzma_block_header_size(lzma_block *block)
+extern LZMA_API lzma_ret lzma_block_header_size(lzma_block *block)
lzma_attr_warn_unused_result;
@@ -302,7 +302,8 @@ extern lzma_ret lzma_block_header_size(lzma_block *block)
* - LZMA_PROG_ERROR: Invalid arguments, for example
* block->header_size is invalid or block->filters is NULL.
*/
-extern lzma_ret lzma_block_header_encode(const lzma_block *block, uint8_t *out)
+extern LZMA_API lzma_ret lzma_block_header_encode(
+ const lzma_block *block, uint8_t *out)
lzma_attr_warn_unused_result;
@@ -331,7 +332,7 @@ extern lzma_ret lzma_block_header_encode(const lzma_block *block, uint8_t *out)
* - LZMA_PROG_ERROR: Invalid arguments, for example
* block->header_size is invalid or block->filters is NULL.
*/
-extern lzma_ret lzma_block_header_decode(lzma_block *block,
+extern LZMA_API lzma_ret lzma_block_header_decode(lzma_block *block,
lzma_allocator *allocator, const uint8_t *in)
lzma_attr_warn_unused_result;
@@ -363,7 +364,7 @@ extern lzma_ret lzma_block_header_decode(lzma_block *block,
* block->header_size must be a multiple of four and
* between 8 and 1024 inclusive.
*/
-extern lzma_ret lzma_block_compressed_size(
+extern LZMA_API lzma_ret lzma_block_compressed_size(
lzma_block *block, lzma_vli unpadded_size)
lzma_attr_warn_unused_result;
@@ -379,7 +380,7 @@ extern lzma_ret lzma_block_compressed_size(
*
* \return Unpadded Size on success, or zero on error.
*/
-extern lzma_vli lzma_block_unpadded_size(const lzma_block *block)
+extern LZMA_API lzma_vli lzma_block_unpadded_size(const lzma_block *block)
lzma_attr_pure;
@@ -392,7 +393,7 @@ extern lzma_vli lzma_block_unpadded_size(const lzma_block *block)
* \return On success, total encoded size of the Block. On error,
* zero is returned.
*/
-extern lzma_vli lzma_block_total_size(const lzma_block *block)
+extern LZMA_API lzma_vli lzma_block_total_size(const lzma_block *block)
lzma_attr_pure;
@@ -410,7 +411,8 @@ extern lzma_vli lzma_block_total_size(const lzma_block *block)
* the encoder failed.
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_block_encoder(lzma_stream *strm, lzma_block *block)
+extern LZMA_API lzma_ret lzma_block_encoder(
+ lzma_stream *strm, lzma_block *block)
lzma_attr_warn_unused_result;
@@ -427,7 +429,8 @@ extern lzma_ret lzma_block_encoder(lzma_stream *strm, lzma_block *block)
* - LZMA_PROG_ERROR
* - LZMA_MEM_ERROR
*/
-extern lzma_ret lzma_block_decoder(lzma_stream *strm, lzma_block *block)
+extern LZMA_API lzma_ret lzma_block_decoder(
+ lzma_stream *strm, lzma_block *block)
lzma_attr_warn_unused_result;
@@ -437,7 +440,7 @@ extern lzma_ret lzma_block_decoder(lzma_stream *strm, lzma_block *block)
* This is equivalent to lzma_stream_buffer_bound() but for .xz Blocks.
* See the documentation of lzma_stream_buffer_bound().
*/
-extern size_t lzma_block_buffer_bound(size_t uncompressed_size);
+extern LZMA_API size_t lzma_block_buffer_bound(size_t uncompressed_size);
/**
@@ -476,7 +479,7 @@ extern size_t lzma_block_buffer_bound(size_t uncompressed_size);
* - LZMA_DATA_ERROR
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_block_buffer_encode(
+extern LZMA_API lzma_ret lzma_block_buffer_encode(
lzma_block *block, lzma_allocator *allocator,
const uint8_t *in, size_t in_size,
uint8_t *out, size_t *out_pos, size_t out_size)
@@ -510,7 +513,7 @@ extern lzma_ret lzma_block_buffer_encode(
* - LZMA_BUF_ERROR: Output buffer was too small.
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_block_buffer_decode(
+extern LZMA_API lzma_ret lzma_block_buffer_decode(
lzma_block *block, 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);