• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

krfb

  • sources
  • kde-4.12
  • kdenetwork
  • krfb
  • libvncserver
minilzo.h
Go to the documentation of this file.
1 /* minilzo.h -- mini subset of the LZO real-time data compression library
2 
3  This file is part of the LZO real-time data compression library.
4 
5  Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer
6  Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer
7  Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer
8  Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer
9  Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer
10  Copyright (C) 2005 Markus Franz Xaver Johannes Oberhumer
11  Copyright (C) 2004 Markus Franz Xaver Johannes Oberhumer
12  Copyright (C) 2003 Markus Franz Xaver Johannes Oberhumer
13  Copyright (C) 2002 Markus Franz Xaver Johannes Oberhumer
14  Copyright (C) 2001 Markus Franz Xaver Johannes Oberhumer
15  Copyright (C) 2000 Markus Franz Xaver Johannes Oberhumer
16  Copyright (C) 1999 Markus Franz Xaver Johannes Oberhumer
17  Copyright (C) 1998 Markus Franz Xaver Johannes Oberhumer
18  Copyright (C) 1997 Markus Franz Xaver Johannes Oberhumer
19  Copyright (C) 1996 Markus Franz Xaver Johannes Oberhumer
20  All Rights Reserved.
21 
22  The LZO library is free software; you can redistribute it and/or
23  modify it under the terms of the GNU General Public License as
24  published by the Free Software Foundation; either version 2 of
25  the License, or (at your option) any later version.
26 
27  The LZO library is distributed in the hope that it will be useful,
28  but WITHOUT ANY WARRANTY; without even the implied warranty of
29  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30  GNU General Public License for more details.
31 
32  You should have received a copy of the GNU General Public License
33  along with the LZO library; see the file COPYING.
34  If not, write to the Free Software Foundation, Inc.,
35  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36 
37  Markus F.X.J. Oberhumer
38  <markus@oberhumer.com>
39  http://www.oberhumer.com/opensource/lzo/
40  */
41 
42 /*
43  * NOTE:
44  * the full LZO package can be found at
45  * http://www.oberhumer.com/opensource/lzo/
46  */
47 
48 
49 #ifndef __MINILZO_H
50 #define __MINILZO_H 1
51 
52 #define MINILZO_VERSION 0x2040
53 
54 #ifdef __LZOCONF_H
55 # error "you cannot use both LZO and miniLZO"
56 #endif
57 
58 #undef LZO_HAVE_CONFIG_H
59 #include "lzoconf.h"
60 
61 #if !defined(LZO_VERSION) || (LZO_VERSION != MINILZO_VERSION)
62 # error "version mismatch in header files"
63 #endif
64 
65 
66 #ifdef __cplusplus
67 extern "C" {
68 #endif
69 
70 
71 /***********************************************************************
72 //
73 ************************************************************************/
74 
75 /* Memory required for the wrkmem parameter.
76  * When the required size is 0, you can also pass a NULL pointer.
77  */
78 
79 #define LZO1X_MEM_COMPRESS LZO1X_1_MEM_COMPRESS
80 #define LZO1X_1_MEM_COMPRESS ((lzo_uint32) (16384L * lzo_sizeof_dict_t))
81 #define LZO1X_MEM_DECOMPRESS (0)
82 
83 
84 /* compression */
85 LZO_EXTERN(int)
86 lzo1x_1_compress ( const lzo_bytep src, lzo_uint src_len,
87  lzo_bytep dst, lzo_uintp dst_len,
88  lzo_voidp wrkmem );
89 
90 /* decompression */
91 LZO_EXTERN(int)
92 lzo1x_decompress ( const lzo_bytep src, lzo_uint src_len,
93  lzo_bytep dst, lzo_uintp dst_len,
94  lzo_voidp wrkmem /* NOT USED */ );
95 
96 /* safe decompression with overrun testing */
97 LZO_EXTERN(int)
98 lzo1x_decompress_safe ( const lzo_bytep src, lzo_uint src_len,
99  lzo_bytep dst, lzo_uintp dst_len,
100  lzo_voidp wrkmem /* NOT USED */ );
101 
102 
103 #ifdef __cplusplus
104 } /* extern "C" */
105 #endif
106 
107 #endif /* already included */
108 
lzo1x_decompress_safe
lzo1x_decompress_safe(const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem)
lzo1x_decompress
lzo1x_decompress(const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem)
lzo_bytep
#define lzo_bytep
Definition: lzoconf.h:182
dst
lzo_uint lzo_bytep dst
Definition: lzoconf.h:239
LZO_EXTERN
#define LZO_EXTERN(_rettype)
Definition: lzoconf.h:231
lzo_uint
typedef lzo_uint
Definition: lzoconf.h:281
lzo_voidp
typedef lzo_voidp(__LZO_CDECL *lzo_alloc_func_t)(lzo_callback_p self
wrkmem
lzo_uint lzo_bytep lzo_uintp lzo_voidp wrkmem
Definition: lzoconf.h:239
lzo1x_1_compress
lzo1x_1_compress(const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem)
lzoconf.h
lzo_uintp
#define lzo_uintp
Definition: lzoconf.h:189
src_len
lzo_uint src_len
Definition: lzoconf.h:239
dst_len
lzo_uint lzo_bytep lzo_uintp dst_len
Definition: lzoconf.h:239
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:54:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

krfb

Skip menu "krfb"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal