lzo: update to 2.09
[tomato.git] / release / src / router / lzo / src / compr1b.h
blob8c23fe857cc4f8251600bd2cc3e41932b42ce05a
1 /* compr1b.h --
3 This file is part of the LZO real-time data compression library.
5 Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
6 All Rights Reserved.
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.
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.
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 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 Markus F.X.J. Oberhumer
24 <markus@oberhumer.com>
25 http://www.oberhumer.com/opensource/lzo/
29 #define LZO_NEED_DICT_H 1
30 #include "config1b.h"
33 #if !defined(COMPRESS_ID)
34 #define COMPRESS_ID LZO_PP_ECONCAT2(DD_BITS,CLEVEL)
35 #endif
38 #include "lzo1b_c.ch"
41 /***********************************************************************
43 ************************************************************************/
45 #define LZO_COMPRESS \
46 LZO_PP_ECONCAT3(lzo1b_,COMPRESS_ID,_compress)
48 #define LZO_COMPRESS_FUNC \
49 LZO_PP_ECONCAT3(_lzo1b_,COMPRESS_ID,_compress_func)
53 /***********************************************************************
55 ************************************************************************/
57 const lzo_compress_t LZO_COMPRESS_FUNC = do_compress;
59 LZO_PUBLIC(int)
60 LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
61 lzo_bytep out, lzo_uintp out_len,
62 lzo_voidp wrkmem )
64 return _lzo1b_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
68 /* vim:set ts=4 sw=4 et: */