Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenlzx.h
Go to the documentation of this file.
00001 /*************************************************************************** 00002 * lzx.h - LZX decompression routines * 00003 * ------------------- * 00004 * * 00005 * maintainer: Jed Wing <jedwin@ugcs.caltech.edu> * 00006 * source: modified lzx.c from cabextract v0.5 * 00007 * notes: This file was taken from cabextract v0.5, which was, * 00008 * itself, a modified version of the lzx decompression code * 00009 * from unlzx. * 00010 ***************************************************************************/ 00011 00012 /*************************************************************************** 00013 * 00014 * Copyright(C) Stuart Caie 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free Software 00028 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00029 * 00030 ***************************************************************************/ 00031 00032 #ifndef INCLUDED_LZX_H 00033 #define INCLUDED_LZX_H 00034 00035 /* return codes */ 00036 #define DECR_OK (0) 00037 #define DECR_DATAFORMAT (1) 00038 #define DECR_ILLEGALDATA (2) 00039 #define DECR_NOMEMORY (3) 00040 00041 /* opaque state structure */ 00042 struct LZXstate; 00043 00044 /* create an lzx state object */ 00045 struct LZXstate *LZXinit(int window); 00046 00047 /* destroy an lzx state object */ 00048 void LZXteardown(struct LZXstate *pState); 00049 00050 /* reset an lzx stream */ 00051 int LZXreset(struct LZXstate *pState); 00052 00053 /* decompress an LZX compressed block */ 00054 int LZXdecompress(struct LZXstate *pState, 00055 unsigned char *inpos, 00056 unsigned char *outpos, 00057 int inlen, 00058 int outlen); 00059 00060 #endif /* INCLUDED_LZX_H */ Generated on Thu May 24 2012 04:24:32 for ReactOS by
1.7.6.1
|