File: linux_lunzip.h

package info (click to toggle)
xlunzip 0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 276 kB
  • sloc: ansic: 2,063; sh: 430; makefile: 109
file content (23 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_DECOMPRESS_LUNZIP_H
#define LINUX_DECOMPRESS_LUNZIP_H

int lunzip(unsigned char *inbuf, long in_len,
	   long (*fill)(void*, unsigned long),
	   long (*flush)(void*, unsigned long),
	   unsigned char *outbuf,
	   long *in_posp,
	   void (*error)(char *x));

/* This internal function is required because the decompress_fn above
 * (see include/linux/decompress/generic.h) should have an out_size
 * argument to prevent overflowing outbuf in case of corruption of the
 * compressed data.
 */
int __lunzip(unsigned char *inbuf, long in_len,
	     long (*fill)(void*, unsigned long),
	     long (*flush)(void*, unsigned long),
	     unsigned char *outbuf, long out_size,
	     long *in_posp, long *out_posp,
	     void (*error)(char *x));
#endif