• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd.
4  * Created by Huang Jianan <huangjianan@oppo.com>
5  */
6 #ifndef __EROFS_DECOMPRESS_H
7 #define __EROFS_DECOMPRESS_H
8 
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
14 #include "internal.h"
15 
16 struct z_erofs_decompress_req {
17 	char *in, *out;
18 
19 	/*
20 	 * initial decompressed bytes that need to be skipped
21 	 * when finally copying to output buffer
22 	 */
23 	unsigned int decodedskip;
24 	unsigned int inputsize, decodedlength;
25 
26 	/* indicate the algorithm will be used for decompression */
27 	unsigned int alg;
28 	bool partial_decoding;
29 };
30 
31 int z_erofs_decompress(struct z_erofs_decompress_req *rq);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
38