1 /***************************************************************************
2 * lzx.h - LZX decompression routines *
3 * ------------------- *
5 * maintainer: Jed Wing <jedwin@ugcs.caltech.edu> *
6 * source: modified lzx.c from cabextract v0.5 *
7 * notes: This file was taken from cabextract v0.5, which was, *
8 * itself, a modified version of the lzx decompression code *
10 ***************************************************************************/
12 /***************************************************************************
14 * Copyright(C) Stuart Caie *
16 * This library is free software; you can redistribute it and/or modify *
17 * it under the terms of the GNU Lesser General Public License as *
18 * published by the Free Software Foundation; either version 2.1 of the *
19 * License, or (at your option) any later version. *
21 ***************************************************************************/
23 #ifndef INCLUDED_LZX_H
24 #define INCLUDED_LZX_H
28 #define DECR_DATAFORMAT (1)
29 #define DECR_ILLEGALDATA (2)
30 #define DECR_NOMEMORY (3)
32 /* opaque state structure */
35 /* create an lzx state object */
36 struct LZXstate
*LZXinit(int window
);
38 /* destroy an lzx state object */
39 void LZXteardown(struct LZXstate
*pState
);
41 /* reset an lzx stream */
42 int LZXreset(struct LZXstate
*pState
);
44 /* decompress an LZX compressed block */
45 int LZXdecompress(struct LZXstate
*pState
,
47 unsigned char *outpos
,
51 #endif /* INCLUDED_LZX_H */