[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /* $Id: lzx.h 6648 2011-11-25 14:41:53Z dbo $ */ 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 * 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 * 22 * in general. * 23 * * 24 ***************************************************************************/ 25 26 #ifndef INCLUDED_LZX_H 27 #define INCLUDED_LZX_H 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /* return codes */ 34 #define DECR_OK (0) 35 #define DECR_DATAFORMAT (1) 36 #define DECR_ILLEGALDATA (2) 37 #define DECR_NOMEMORY (3) 38 39 /* opaque state structure */ 40 struct LZXstate; 41 42 /* create an lzx state object */ 43 struct LZXstate *LZXinit(int window); 44 45 /* destroy an lzx state object */ 46 void LZXteardown(struct LZXstate *pState); 47 48 /* reset an lzx stream */ 49 int LZXreset(struct LZXstate *pState); 50 51 /* decompress an LZX compressed block */ 52 int LZXdecompress(struct LZXstate *pState, 53 unsigned char *inpos, 54 unsigned char *outpos, 55 long long inlen, 56 unsigned long outlen); 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /* INCLUDED_LZX_H */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 17 22:47:18 2015 | Cross-referenced by PHPXref 0.7.1 |