mips: Add some missing syscalls for mips32
[valgrind.git] / coregrind / m_debuginfo / minilzo.h
blob4c7b237849912ea6a766fbbf94ac04db00f87fdb
1 /* minilzo.h -- mini subset of the LZO real-time data compression library
3 This file is part of the LZO real-time data compression library.
5 Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer
6 Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
7 Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
8 Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
9 Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
10 Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
11 Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
12 Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
13 Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
14 Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
15 Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
16 Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
17 Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
18 Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
19 Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
20 Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
21 All Rights Reserved.
23 The LZO library is free software; you can redistribute it and/or
24 modify it under the terms of the GNU General Public License as
25 published by the Free Software Foundation; either version 2 of
26 the License, or (at your option) any later version.
28 The LZO library is distributed in the hope that it will be useful,
29 but WITHOUT ANY WARRANTY; without even the implied warranty of
30 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31 GNU General Public License for more details.
33 You should have received a copy of the GNU General Public License
34 along with the LZO library; see the file COPYING.
35 If not, write to the Free Software Foundation, Inc.,
36 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38 Markus F.X.J. Oberhumer
39 <markus@oberhumer.com>
40 http://www.oberhumer.com/opensource/lzo/
44 * NOTE:
45 * the full LZO package can be found at
46 * http://www.oberhumer.com/opensource/lzo/
50 #ifndef __MINILZO_H
51 #define __MINILZO_H 1
53 #define MINILZO_VERSION 0x2060
55 #ifdef __LZOCONF_H
56 # error "you cannot use both LZO and miniLZO"
57 #endif
59 #undef LZO_HAVE_CONFIG_H
60 #include "lzoconf.h"
62 #if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION)
63 # error "version mismatch in header files"
64 #endif
67 #ifdef __cplusplus
68 extern "C" {
69 #endif
72 /***********************************************************************
74 ************************************************************************/
76 /* Memory required for the wrkmem parameter.
77 * When the required size is 0, you can also pass a NULL pointer.
80 #define LZO1X_MEM_COMPRESS LZO1X_1_MEM_COMPRESS
81 #define LZO1X_1_MEM_COMPRESS ((lzo_uint32) (16384L * lzo_sizeof_dict_t))
82 #define LZO1X_MEM_DECOMPRESS (0)
85 /* compression */
86 LZO_EXTERN(int)
87 lzo1x_1_compress ( const lzo_bytep src, lzo_uint src_len,
88 lzo_bytep dst, lzo_uintp dst_len,
89 lzo_voidp wrkmem );
91 /* decompression */
92 LZO_EXTERN(int)
93 lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len,
94 lzo_bytep dst, lzo_uintp dst_len,
95 lzo_voidp wrkmem /* NOT USED */ );
97 /* safe decompression with overrun testing */
98 LZO_EXTERN(int)
99 lzo1x_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
100 lzo_bytep dst, lzo_uintp dst_len,
101 lzo_voidp wrkmem /* NOT USED */ );
104 #ifdef __cplusplus
105 } /* extern "C" */
106 #endif
108 #endif /* already included */