Huang Jianan | 7dcfbb1 | 2022-02-26 15:05:49 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | #ifndef __EROFS_DECOMPRESS_H |
| 3 | #define __EROFS_DECOMPRESS_H |
| 4 | |
| 5 | #include "internal.h" |
| 6 | |
| 7 | struct z_erofs_decompress_req { |
| 8 | char *in, *out; |
| 9 | |
| 10 | /* |
| 11 | * initial decompressed bytes that need to be skipped |
| 12 | * when finally copying to output buffer |
| 13 | */ |
| 14 | unsigned int decodedskip; |
| 15 | unsigned int inputsize, decodedlength; |
| 16 | |
| 17 | /* indicate the algorithm will be used for decompression */ |
| 18 | unsigned int alg; |
| 19 | bool partial_decoding; |
| 20 | }; |
| 21 | |
| 22 | int z_erofs_decompress(struct z_erofs_decompress_req *rq); |
| 23 | |
| 24 | #endif |