diff options
Diffstat (limited to 'include/sys/zio_compress.h')
-rw-r--r-- | include/sys/zio_compress.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/sys/zio_compress.h b/include/sys/zio_compress.h index 30bed1a67..49946af4b 100644 --- a/include/sys/zio_compress.h +++ b/include/sys/zio_compress.h @@ -54,6 +54,12 @@ typedef struct zio_compress_info { extern zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS]; /* + * lz4 compression init & free + */ +extern void lz4_init(void); +extern void lz4_fini(void); + +/* * Compression routines. */ extern size_t lzjb_compress(void *src, void *dst, size_t s_len, size_t d_len, @@ -68,6 +74,10 @@ extern size_t zle_compress(void *src, void *dst, size_t s_len, size_t d_len, int level); extern int zle_decompress(void *src, void *dst, size_t s_len, size_t d_len, int level); +extern size_t lz4_compress(void *src, void *dst, size_t s_len, size_t d_len, + int level); +extern int lz4_decompress(void *src, void *dst, size_t s_len, size_t d_len, + int level); /* * Compress and decompress data if necessary. |