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 * Copyright(C) Stuart Caie *
17 * This library is free software; you can redistribute it and/or modify *
18 * it under the terms of the GNU Lesser General Public License as *
19 * published by the Free Software Foundation; either version 2.1 of the *
20 * License, or (at your option) any later version. *
22 ***************************************************************************/
24 #ifndef INCLUDED_LZX_H
25 #define INCLUDED_LZX_H
29 #define DECR_DATAFORMAT (1)
30 #define DECR_ILLEGALDATA (2)
31 #define DECR_NOMEMORY (3)
33 /* opaque state structure */
36 /* create an lzx state object */
37 struct LZXstate *LZXinit(int window);
39 /* destroy an lzx state object */
40 void LZXteardown(struct LZXstate *pState);
42 /* reset an lzx stream */
43 int LZXreset(struct LZXstate *pState);
45 /* decompress an LZX compressed block */
46 int LZXdecompress(struct LZXstate *pState,
48 unsigned char *outpos,
52 #endif /* INCLUDED_LZX_H */