# minilzo.h

Go to the documentation of this file.

    00001 /* $Id: minilzo.h 12971 2008-05-06 15:11:33Z rubidium $ */
    00002
    00041 #ifndef MINILZO_H
    00042 #define MINILZO_H
    00043
    00044 #define MINILZO_VERSION         0x1080
    00045
    00046 #ifdef __LZOCONF_H
    00047 #  error "you cannot use both LZO and miniLZO"
    00048 #endif
    00049
    00050 #undef LZO_HAVE_CONFIG_H
    00051 #include "lzoconf.h"
    00052
    00053 #if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION)
    00054 #  error "version mismatch in header files"
    00055 #endif
    00056
    00057
    00058 #ifdef __cplusplus
    00059 extern "C" {
    00060 #endif
    00061
    00062
    00063 /* Memory required for the wrkmem parameter.
    00064  * When the required size is 0, you can also pass a NULL pointer.
    00065  */
    00066
    00067 #define LZO1X_MEM_COMPRESS      LZO1X_1_MEM_COMPRESS
    00068 #define LZO1X_1_MEM_COMPRESS    ((lzo_uint32) (16384L * lzo_sizeof_dict_t))
    00069 #define LZO1X_MEM_DECOMPRESS    (0)
    00070
    00071
    00072 /* compression */
    00073 LZO_EXTERN(int)
    00074 lzo1x_1_compress        ( const lzo_byte *src, lzo_uint  src_len,
    00075                                 lzo_byte *dst, lzo_uintp dst_len,
    00076                                 lzo_voidp wrkmem );
    00077
    00078 /* decompression */
    00079 LZO_EXTERN(int)
    00080 lzo1x_decompress        ( const lzo_byte *src, lzo_uint  src_len,
    00081                                 lzo_byte *dst, lzo_uintp dst_len,
    00082                                 lzo_voidp wrkmem /* NOT USED */ );
    00083
    00084 /* safe decompression with overrun testing */
    00085 LZO_EXTERN(int)
    00086 lzo1x_decompress_safe   ( const lzo_byte *src, lzo_uint  src_len,
    00087                                 lzo_byte *dst, lzo_uintp dst_len,
    00088                                 lzo_voidp wrkmem /* NOT USED */ );
    00089
    00090
    00091 #ifdef __cplusplus
    00092 } /* extern "C" */
    00093 #endif
    00094
    00095 #endif /* MINILZO_H */