Authors: Stewart Caie<kyz@uklinux.net>, Jed Wing <jedwin@ugcs.caltech.edu>, Mike...
[wine] / dlls / itss / lzx.h
1 /* $Id$ */
2 /***************************************************************************
3  *                        lzx.h - LZX decompression routines               *
4  *                           -------------------                           *
5  *                                                                         *
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   *
10  *              from unlzx.                                                *
11  ***************************************************************************/
12
13 /***************************************************************************
14  *                                                                         *
15  *   Copyright(C) Stuart Caie                                              *
16  *                                                                         *
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.                       *
21  *                                                                         *
22  ***************************************************************************/
23
24 #ifndef INCLUDED_LZX_H
25 #define INCLUDED_LZX_H
26
27 /* return codes */
28 #define DECR_OK           (0)
29 #define DECR_DATAFORMAT   (1)
30 #define DECR_ILLEGALDATA  (2)
31 #define DECR_NOMEMORY     (3)
32
33 /* opaque state structure */
34 struct LZXstate;
35
36 /* create an lzx state object */
37 struct LZXstate *LZXinit(int window);
38
39 /* destroy an lzx state object */
40 void LZXteardown(struct LZXstate *pState);
41
42 /* reset an lzx stream */
43 int LZXreset(struct LZXstate *pState);
44
45 /* decompress an LZX compressed block */
46 int LZXdecompress(struct LZXstate *pState,
47                   unsigned char *inpos,
48                   unsigned char *outpos,
49                   int inlen,
50                   int outlen);
51
52 #endif /* INCLUDED_LZX_H */