home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mlzo100.zip / minilzo.100 / minilzo.h < prev    next >
C/C++ Source or Header  |  1997-07-13  |  3KB  |  84 lines

  1. /* minilzo.h -- mini version of the LZO real-time data compression library
  2.  
  3.    This file is part of the LZO real-time data compression library.
  4.  
  5.    Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
  6.    Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
  7.  
  8.    The LZO library is free software; you can redistribute it and/or
  9.    modify it under the terms of the GNU General Public License as
  10.    published by the Free Software Foundation; either version 2 of
  11.    the License, or (at your option) any later version.
  12.  
  13.    The LZO library is distributed in the hope that it will be useful,
  14.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.    GNU General Public License for more details.
  17.  
  18.    You should have received a copy of the GNU General Public License
  19.    along with the LZO library; see the file COPYING.
  20.    If not, write to the Free Software Foundation, Inc.,
  21.    59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22.  
  23.    Markus F.X.J. Oberhumer
  24.    markus.oberhumer@jk.uni-linz.ac.at
  25.  */
  26.  
  27. /*
  28.  * NOTE:
  29.  *   the full LZO package can be found at
  30.  *   http://www.infosys.tuwien.ac.at/Staff/lux/marco/lzo.html
  31.  */
  32.  
  33.  
  34. #ifndef __MINILZO_H
  35.  
  36. #ifdef __LZOCONF_H
  37. #  error you cannot use both LZO and miniLZO
  38. #endif
  39. #undef LZO_HAVE_CONFIG_H
  40. #include <lzoconf.h>
  41. #define __MINILZO_H
  42.  
  43. #define MINILZO_VERSION         0x1000
  44.  
  45.  
  46. #ifdef __cplusplus
  47. extern "C" {
  48. #endif
  49.  
  50.  
  51. /***********************************************************************
  52. //
  53. ************************************************************************/
  54.  
  55. #define LZO1X_MEM_COMPRESS      ((lzo_uint) (16384L * sizeof(lzo_byte *)))
  56. #define LZO1X_MEM_DECOMPRESS    (0)
  57.  
  58.  
  59. /* compression */
  60. LZO_EXTERN(int)
  61. lzo1x_1_compress        ( const lzo_byte *src, lzo_uint  src_len,
  62.                                 lzo_byte *dst, lzo_uint *dst_len,
  63.                                 lzo_voidp wrkmem );
  64.  
  65. /* decompression */
  66. LZO_EXTERN(int)
  67. lzo1x_decompress        ( const lzo_byte *src, lzo_uint  src_len,
  68.                                 lzo_byte *dst, lzo_uint *dst_len,
  69.                                 lzo_voidp wrkmem /* NOT USED */ );
  70.  
  71. /* safe decompression with overrun testing */
  72. LZO_EXTERN(int)
  73. lzo1x_decompress_safe   ( const lzo_byte *src, lzo_uint  src_len,
  74.                                 lzo_byte *dst, lzo_uint *dst_len,
  75.                                 lzo_voidp wrkmem /* NOT USED */ );
  76.  
  77.  
  78. #ifdef __cplusplus
  79. } /* extern "C" */
  80. #endif
  81.  
  82. #endif /* already included */
  83.  
  84.