aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/api/lzma/index_hash.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/index_hash.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/index_hash.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/liblzma/api/lzma/index_hash.h b/src/liblzma/api/lzma/index_hash.h
index 6ebbe9fb..9acc92d1 100644
--- a/src/liblzma/api/lzma/index_hash.h
+++ b/src/liblzma/api/lzma/index_hash.h
@@ -41,7 +41,7 @@ typedef struct lzma_index_hash_s lzma_index_hash;
* returned. In this case, return value cannot be NULL or a different
* pointer than the index_hash that was given as an argument.
*/
-extern lzma_index_hash *lzma_index_hash_init(
+extern LZMA_API lzma_index_hash *lzma_index_hash_init(
lzma_index_hash *index_hash, lzma_allocator *allocator)
lzma_attr_warn_unused_result;
@@ -49,7 +49,7 @@ extern lzma_index_hash *lzma_index_hash_init(
/**
* \brief Deallocate lzma_index_hash structure
*/
-extern void lzma_index_hash_end(
+extern LZMA_API void lzma_index_hash_end(
lzma_index_hash *index_hash, lzma_allocator *allocator);
@@ -66,7 +66,7 @@ extern void lzma_index_hash_end(
* - LZMA_PROG_ERROR: Invalid arguments or this function is being
* used when lzma_index_hash_decode() has already been used.
*/
-extern lzma_ret lzma_index_hash_append(lzma_index_hash *index_hash,
+extern LZMA_API lzma_ret lzma_index_hash_append(lzma_index_hash *index_hash,
lzma_vli unpadded_size, lzma_vli uncompressed_size)
lzma_attr_warn_unused_result;
@@ -96,7 +96,7 @@ extern lzma_ret lzma_index_hash_append(lzma_index_hash *index_hash,
* - LZMA_BUF_ERROR: Cannot progress because *in_pos >= in_size.
* - LZMA_PROG_ERROR
*/
-extern lzma_ret lzma_index_hash_decode(lzma_index_hash *index_hash,
+extern LZMA_API lzma_ret lzma_index_hash_decode(lzma_index_hash *index_hash,
const uint8_t *in, size_t *in_pos, size_t in_size)
lzma_attr_warn_unused_result;
@@ -106,5 +106,6 @@ extern lzma_ret lzma_index_hash_decode(lzma_index_hash *index_hash,
*
* This is needed to verify the Backward Size field in the Stream Footer.
*/
-extern lzma_vli lzma_index_hash_size(const lzma_index_hash *index_hash)
+extern LZMA_API lzma_vli lzma_index_hash_size(
+ const lzma_index_hash *index_hash)
lzma_attr_pure;