1
/* $Id: lzx.h 109 2006-02-04 08:41:34Z gyunaev $ */
2
/***************************************************************************
3
* lzx.h - LZX decompression routines *
4
* ------------------- *
6
* maintainer: Jed Wing <jedwin@ugcs.caltech.edu> *
7
* source: modified lzx.c from cabextract v0.5 *
8
* notes: This file was taken from cabextract v0.5, which was, *
9
* itself, a modified version of the lzx decompression code *
11
***************************************************************************/
13
/***************************************************************************
15
* This program is free software; you can redistribute it and/or modify *
16
* it under the terms of the GNU General Public License as published by *
17
* the Free Software Foundation; either version 2 of the License, or *
18
* (at your option) any later version. Note that an exemption to this *
19
* license has been granted by Stuart Caie for the purposes of *
20
* distribution with chmlib. This does not, to the best of my *
21
* knowledge, constitute a change in the license of this (the LZX) code *
24
***************************************************************************/
26
#ifndef INCLUDED_LZX_H
27
#define INCLUDED_LZX_H
35
#define DECR_DATAFORMAT (1)
36
#define DECR_ILLEGALDATA (2)
37
#define DECR_NOMEMORY (3)
39
/* opaque state structure */
42
/* create an lzx state object */
43
struct LZXstate *LZXinit(int window);
45
/* destroy an lzx state object */
46
void LZXteardown(struct LZXstate *pState);
48
/* reset an lzx stream */
49
int LZXreset(struct LZXstate *pState);
51
/* decompress an LZX compressed block */
52
int LZXdecompress(struct LZXstate *pState,
54
unsigned char *outpos,
62
#endif /* INCLUDED_LZX_H */