123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- #ifndef __MINILZO_H_INCLUDED
- #define __MINILZO_H_INCLUDED 1
- #define MINILZO_VERSION 0x2090
- #if defined(__LZOCONF_H_INCLUDED)
- # error "you cannot use both LZO and miniLZO"
- #endif
- #ifdef MINILZO_HAVE_CONFIG_H
- # include <config.h>
- #endif
- #include <limits.h>
- #include <stddef.h>
- #ifndef __LZODEFS_H_INCLUDED
- #include "lzodefs.h"
- #endif
- #undef LZO_HAVE_CONFIG_H
- #include "lzoconf.h"
- #if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION)
- # error "version mismatch in header files"
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define LZO1X_MEM_COMPRESS LZO1X_1_MEM_COMPRESS
- #define LZO1X_1_MEM_COMPRESS ((lzo_uint32_t) (16384L * lzo_sizeof_dict_t))
- #define LZO1X_MEM_DECOMPRESS (0)
- LZO_EXTERN(int)
- lzo1x_1_compress ( const lzo_bytep src, lzo_uint src_len,
- lzo_bytep dst, lzo_uintp dst_len,
- lzo_voidp wrkmem );
- LZO_EXTERN(int)
- lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len,
- lzo_bytep dst, lzo_uintp dst_len,
- lzo_voidp wrkmem );
- LZO_EXTERN(int)
- lzo1x_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
- lzo_bytep dst, lzo_uintp dst_len,
- lzo_voidp wrkmem );
- #ifdef __cplusplus
- }
- #endif
- #endif
|