xref: /openbmc/linux/fs/ntfs3/lib/lib.h (revision 5e87622c)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * Adapted for linux kernel by Alexander Mamaev:
4  * - remove implementations of get_unaligned_
5  * - assume GCC is always defined
6  * - ISO C90
7  * - linux kernel code style
8  */
9 
10 
11 /* globals from xpress_decompress.c */
12 struct xpress_decompressor *xpress_allocate_decompressor(void);
13 void xpress_free_decompressor(struct xpress_decompressor *d);
14 int xpress_decompress(struct xpress_decompressor *__restrict d,
15 		      const void *__restrict compressed_data,
16 		      size_t compressed_size,
17 		      void *__restrict uncompressed_data,
18 		      size_t uncompressed_size);
19 
20 /* globals from lzx_decompress.c */
21 struct lzx_decompressor *lzx_allocate_decompressor(void);
22 void lzx_free_decompressor(struct lzx_decompressor *d);
23 int lzx_decompress(struct lzx_decompressor *__restrict d,
24 		   const void *__restrict compressed_data,
25 		   size_t compressed_size, void *__restrict uncompressed_data,
26 		   size_t uncompressed_size);
27