X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flzx-decompress.c;h=18fa3d008b6b137bc77b8235839c8a93679a4871;hb=c6a1140e085f633273fcf47a6462bd9382ce118a;hp=da462186c06870b2038098bc0b3aab97dc6dd229;hpb=a3bb2e86f2640f5d593d00250a627d3dcc9747a2;p=wimlib diff --git a/src/lzx-decompress.c b/src/lzx-decompress.c index da462186..18fa3d00 100644 --- a/src/lzx-decompress.c +++ b/src/lzx-decompress.c @@ -107,6 +107,7 @@ */ #include "util.h" +#include "wimlib.h" #include "lzx.h" #include "decompress.h" #include @@ -786,27 +787,10 @@ lzx_decompress_block(int block_type, unsigned block_size, return 0; } -/* - * Decompresses a block of LZX-compressed data as used in the WIM file format. - * - * Note that this will NOT work unmodified for LZX as used in the cabinet - * format, which is not the same as in the WIM format! - * - * @compressed_data: A pointer to the compressed data. - * - * @compressed_len: The length of the compressed data, in bytes. - * - * @uncompressed_data: A pointer to the buffer into which to write the - * uncompressed data. - * - * @uncompressed_len: The length of the uncompressed data. It must be - * 32768 bytes or less. - * - * Return 0 on success; non-zero on failure. - */ -int -lzx_decompress(const void *compressed_data, unsigned compressed_len, - void *uncompressed_data, unsigned uncompressed_len) +/* Documented in wimlib.h */ +WIMLIBAPI int +wimlib_lzx_decompress(const void *compressed_data, unsigned compressed_len, + void *uncompressed_data, unsigned uncompressed_len) { struct lzx_tables tables; struct input_bitstream istream;