Blame common/minilzo.h

Packit 9c64f8
/* minilzo.h -- mini subset of the LZO real-time data compression library
Packit 9c64f8
Packit 9c64f8
   This file is part of the LZO real-time data compression library.
Packit 9c64f8
Packit 9c64f8
   Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
Packit 9c64f8
   All Rights Reserved.
Packit 9c64f8
Packit 9c64f8
   The LZO library is free software; you can redistribute it and/or
Packit 9c64f8
   modify it under the terms of the GNU General Public License as
Packit 9c64f8
   published by the Free Software Foundation; either version 2 of
Packit 9c64f8
   the License, or (at your option) any later version.
Packit 9c64f8
Packit 9c64f8
   The LZO library is distributed in the hope that it will be useful,
Packit 9c64f8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 9c64f8
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 9c64f8
   GNU General Public License for more details.
Packit 9c64f8
Packit 9c64f8
   You should have received a copy of the GNU General Public License
Packit 9c64f8
   along with the LZO library; see the file COPYING.
Packit 9c64f8
   If not, write to the Free Software Foundation, Inc.,
Packit 9c64f8
   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Packit 9c64f8
Packit 9c64f8
   Markus F.X.J. Oberhumer
Packit 9c64f8
   <markus@oberhumer.com>
Packit 9c64f8
   http://www.oberhumer.com/opensource/lzo/
Packit 9c64f8
 */
Packit 9c64f8
Packit 9c64f8
/*
Packit 9c64f8
 * NOTE:
Packit 9c64f8
 *   the full LZO package can be found at
Packit 9c64f8
 *   http://www.oberhumer.com/opensource/lzo/
Packit 9c64f8
 */
Packit 9c64f8
Packit 9c64f8
Packit 9c64f8
#ifndef __MINILZO_H
Packit 9c64f8
#define __MINILZO_H 1
Packit 9c64f8
Packit 9c64f8
#define MINILZO_VERSION         0x2070
Packit 9c64f8
Packit 9c64f8
#ifdef __LZOCONF_H
Packit 9c64f8
#  error "you cannot use both LZO and miniLZO"
Packit 9c64f8
#endif
Packit 9c64f8
Packit 9c64f8
#undef LZO_HAVE_CONFIG_H
Packit 9c64f8
#include "lzoconf.h"
Packit 9c64f8
Packit 9c64f8
#if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION)
Packit 9c64f8
#  error "version mismatch in header files"
Packit 9c64f8
#endif
Packit 9c64f8
Packit 9c64f8
Packit 9c64f8
#ifdef __cplusplus
Packit 9c64f8
extern "C" {
Packit 9c64f8
#endif
Packit 9c64f8
Packit 9c64f8
Packit 9c64f8
/***********************************************************************
Packit 9c64f8
//
Packit 9c64f8
************************************************************************/
Packit 9c64f8
Packit 9c64f8
/* Memory required for the wrkmem parameter.
Packit 9c64f8
 * When the required size is 0, you can also pass a NULL pointer.
Packit 9c64f8
 */
Packit 9c64f8
Packit 9c64f8
#define LZO1X_MEM_COMPRESS      LZO1X_1_MEM_COMPRESS
Packit 9c64f8
#define LZO1X_1_MEM_COMPRESS    ((lzo_uint32_t) (16384L * lzo_sizeof_dict_t))
Packit 9c64f8
#define LZO1X_MEM_DECOMPRESS    (0)
Packit 9c64f8
Packit 9c64f8
Packit 9c64f8
/* compression */
Packit 9c64f8
LZO_EXTERN(int)
Packit 9c64f8
lzo1x_1_compress        ( const lzo_bytep src, lzo_uint  src_len,
Packit 9c64f8
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 9c64f8
                                lzo_voidp wrkmem );
Packit 9c64f8
Packit 9c64f8
/* decompression */
Packit 9c64f8
LZO_EXTERN(int)
Packit 9c64f8
lzo1x_decompress        ( const lzo_bytep src, lzo_uint  src_len,
Packit 9c64f8
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 9c64f8
                                lzo_voidp wrkmem /* NOT USED */ );
Packit 9c64f8
Packit 9c64f8
/* safe decompression with overrun testing */
Packit 9c64f8
LZO_EXTERN(int)
Packit 9c64f8
lzo1x_decompress_safe   ( const lzo_bytep src, lzo_uint  src_len,
Packit 9c64f8
                                lzo_bytep dst, lzo_uintp dst_len,
Packit 9c64f8
                                lzo_voidp wrkmem /* NOT USED */ );
Packit 9c64f8
Packit 9c64f8
Packit 9c64f8
#ifdef __cplusplus
Packit 9c64f8
} /* extern "C" */
Packit 9c64f8
#endif
Packit 9c64f8
Packit 9c64f8
#endif /* already included */
Packit 9c64f8