libsigrok  unreleased development snapshot
sigrok hardware access and backend library
Data Structures | Macros | Typedefs | Functions | Variables
lzoconf.h File Reference
#include <limits.h>
#include <stddef.h>
#include <lzo/lzodefs.h>
+ Include dependency graph for lzoconf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lzo_callback_t
 
union  lzo_align_t
 
union  __lzo_pu_u
 
union  __lzo_pu32_u
 

Macros

#define LZO_VERSION   0x20a0 /* 2.10 */
 
#define LZO_VERSION_STRING   "2.10"
 
#define LZO_VERSION_DATE   "Mar 01 2017"
 
#define LZO_SIZEOF_LZO_INT   LZO_SIZEOF_LONG
 
#define LZO_TYPEOF_LZO_INT   LZO_TYPEOF_LONG
 
#define LZO_UINT_MAX   ULONG_MAX
 
#define LZO_INT_MAX   LONG_MAX
 
#define LZO_INT_MIN   LONG_MIN
 
#define lzo_xint   lzo_uint32_t
 
#define __LZO_MMODEL   /*empty*/
 
#define lzo_bytep   unsigned char __LZO_MMODEL *
 
#define lzo_charp   char __LZO_MMODEL *
 
#define lzo_voidp   void __LZO_MMODEL *
 
#define lzo_shortp   short __LZO_MMODEL *
 
#define lzo_ushortp   unsigned short __LZO_MMODEL *
 
#define lzo_intp   lzo_int __LZO_MMODEL *
 
#define lzo_uintp   lzo_uint __LZO_MMODEL *
 
#define lzo_xintp   lzo_xint __LZO_MMODEL *
 
#define lzo_voidpp   lzo_voidp __LZO_MMODEL *
 
#define lzo_bytepp   lzo_bytep __LZO_MMODEL *
 
#define lzo_int8_tp   lzo_int8_t __LZO_MMODEL *
 
#define lzo_uint8_tp   lzo_uint8_t __LZO_MMODEL *
 
#define lzo_int16_tp   lzo_int16_t __LZO_MMODEL *
 
#define lzo_uint16_tp   lzo_uint16_t __LZO_MMODEL *
 
#define lzo_int32_tp   lzo_int32_t __LZO_MMODEL *
 
#define lzo_uint32_tp   lzo_uint32_t __LZO_MMODEL *
 
#define __LZO_EXTERN_C   extern
 
#define __LZO_CDECL   __lzo_cdecl
 
#define __LZO_EXPORT1   /*empty*/
 
#define __LZO_EXPORT2   /*empty*/
 
#define LZO_PUBLIC(r)   __LZO_EXPORT1 r __LZO_EXPORT2 __LZO_CDECL
 
#define LZO_EXTERN(r)   __LZO_EXTERN_C LZO_PUBLIC(r)
 
#define LZO_PRIVATE(r)   static r __LZO_CDECL
 
#define lzo_callback_p   lzo_callback_t __LZO_MMODEL *
 
#define LZO_E_OK   0
 
#define LZO_E_ERROR   (-1)
 
#define LZO_E_OUT_OF_MEMORY   (-2) /* [lzo_alloc_func_t failure] */
 
#define LZO_E_NOT_COMPRESSIBLE   (-3) /* [not used right now] */
 
#define LZO_E_INPUT_OVERRUN   (-4)
 
#define LZO_E_OUTPUT_OVERRUN   (-5)
 
#define LZO_E_LOOKBEHIND_OVERRUN   (-6)
 
#define LZO_E_EOF_NOT_FOUND   (-7)
 
#define LZO_E_INPUT_NOT_CONSUMED   (-8)
 
#define LZO_E_NOT_YET_IMPLEMENTED   (-9) /* [not used right now] */
 
#define LZO_E_INVALID_ARGUMENT   (-10)
 
#define LZO_E_INVALID_ALIGNMENT   (-11) /* pointer argument is not properly aligned */
 
#define LZO_E_OUTPUT_NOT_CONSUMED   (-12)
 
#define LZO_E_INTERNAL_ERROR   (-99)
 
#define lzo_sizeof_dict_t   ((unsigned)sizeof(lzo_bytep))
 
#define lzo_init()
 
#define LZO_PTR_ALIGN_UP(p, size)   ((p) + (lzo_uint) __lzo_align_gap((const lzo_voidp)(p),(lzo_uint)(size)))
 
#define lzo_byte   unsigned char
 
#define lzo_int32   lzo_int32_t
 
#define lzo_uint32   lzo_uint32_t
 
#define lzo_int32p   lzo_int32_t __LZO_MMODEL *
 
#define lzo_uint32p   lzo_uint32_t __LZO_MMODEL *
 
#define LZO_INT32_MAX   LZO_INT32_C(2147483647)
 
#define LZO_UINT32_MAX   LZO_UINT32_C(4294967295)
 
#define LZO_SIZEOF_LZO_UINT   LZO_SIZEOF_LZO_INT
 

Typedefs

typedef unsigned long lzo_uint
 
typedef long lzo_int
 
typedef int lzo_bool
 
typedef lzo_uint src_len
 
typedef lzo_uint lzo_bytep dst
 
typedef lzo_uint lzo_bytep lzo_uintp dst_len
 
typedef lzo_uint lzo_bytep lzo_uintp lzo_voidp wrkmem
 
typedef int(__LZO_CDECLlzo_compress_dict_t) (const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem, const lzo_bytep dict, lzo_uint dict_len)
 
typedef int(__LZO_CDECLlzo_decompress_dict_t) (const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem, const lzo_bytep dict, lzo_uint dict_len)
 
typedef struct lzo_callback_t lzo_callback_t
 
typedef lzo_uint items
 
typedef lzo_uint lzo_uint size
 
typedef lzo_voidp ptr
 

Functions

 LZO_COMPILE_TIME_ASSERT_HEADER (sizeof(lzo_xint) >=sizeof(lzo_uint)) LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(lzo_xint) >
 
typedef int (__LZO_CDECL *lzo_decompress_t)(const lzo_bytep src
 
typedef lzo_voidp (__LZO_CDECL *lzo_alloc_func_t)(lzo_callback_p self
 
typedef void (__LZO_CDECL *lzo_free_func_t)(lzo_callback_p self
 
 LZO_EXTERN (int) __lzo_init_v2(unsigned
 
 LZO_EXTERN (unsigned) lzo_version(void)
 
 LZO_EXTERN (const char *) lzo_version_string(void)
 
 LZO_EXTERN (const lzo_charp) _lzo_version_string(void)
 
 lzo_memcmp (const lzo_voidp a, const lzo_voidp b, lzo_uint len)
 
 lzo_memcpy (lzo_voidp dst, const lzo_voidp src, lzo_uint len)
 
 lzo_memmove (lzo_voidp dst, const lzo_voidp src, lzo_uint len)
 
 lzo_memset (lzo_voidp buf, int c, lzo_uint len)
 
 lzo_adler32 (lzo_uint32_t c, const lzo_bytep buf, lzo_uint len)
 
 lzo_crc32 (lzo_uint32_t c, const lzo_bytep buf, lzo_uint len)
 
 lzo_get_crc32_table (void)
 

Variables

typedef int
 

Macro Definition Documentation

#define __LZO_CDECL   __lzo_cdecl
#define __LZO_EXPORT1   /*empty*/
#define __LZO_EXPORT2   /*empty*/
#define __LZO_EXTERN_C   extern
#define __LZO_MMODEL   /*empty*/
#define lzo_byte   unsigned char

Definition at line 388 of file lzoconf.h.

#define lzo_bytep   unsigned char __LZO_MMODEL *
#define lzo_bytepp   lzo_bytep __LZO_MMODEL *
#define lzo_callback_p   lzo_callback_t __LZO_MMODEL *

Definition at line 272 of file lzoconf.h.

#define lzo_charp   char __LZO_MMODEL *
#define LZO_E_EOF_NOT_FOUND   (-7)

Definition at line 317 of file lzoconf.h.

#define LZO_E_ERROR   (-1)

Definition at line 311 of file lzoconf.h.

Referenced by __lzo_init_v2(), and _lzo_config_check().

#define LZO_E_INPUT_NOT_CONSUMED   (-8)

Definition at line 318 of file lzoconf.h.

Referenced by DO_DECOMPRESS().

#define LZO_E_INPUT_OVERRUN   (-4)

Definition at line 314 of file lzoconf.h.

Referenced by DO_DECOMPRESS().

#define LZO_E_INTERNAL_ERROR   (-99)

Definition at line 323 of file lzoconf.h.

#define LZO_E_INVALID_ALIGNMENT   (-11) /* pointer argument is not properly aligned */

Definition at line 321 of file lzoconf.h.

#define LZO_E_INVALID_ARGUMENT   (-10)

Definition at line 320 of file lzoconf.h.

#define LZO_E_LOOKBEHIND_OVERRUN   (-6)

Definition at line 316 of file lzoconf.h.

Referenced by DO_DECOMPRESS().

#define LZO_E_NOT_COMPRESSIBLE   (-3) /* [not used right now] */

Definition at line 313 of file lzoconf.h.

#define LZO_E_NOT_YET_IMPLEMENTED   (-9) /* [not used right now] */

Definition at line 319 of file lzoconf.h.

#define LZO_E_OK   0

Definition at line 310 of file lzoconf.h.

Referenced by __lzo_init_v2(), _lzo_config_check(), DO_COMPRESS(), DO_DECOMPRESS(), main(), and sr_init().

#define LZO_E_OUT_OF_MEMORY   (-2) /* [lzo_alloc_func_t failure] */

Definition at line 312 of file lzoconf.h.

#define LZO_E_OUTPUT_NOT_CONSUMED   (-12)

Definition at line 322 of file lzoconf.h.

#define LZO_E_OUTPUT_OVERRUN   (-5)

Definition at line 315 of file lzoconf.h.

Referenced by DO_DECOMPRESS().

#define LZO_EXTERN (   r)    __LZO_EXTERN_C LZO_PUBLIC(r)
#define lzo_init ( )
Value:
__lzo_init_v2(LZO_VERSION,(int)sizeof(short),(int)sizeof(int),\
(int)sizeof(long),(int)sizeof(lzo_uint32_t),(int)sizeof(lzo_uint),\
(int)lzo_sizeof_dict_t,(int)sizeof(char *),(int)sizeof(lzo_voidp),\
(int)sizeof(lzo_callback_t))
#define lzo_voidp
#define LZO_VERSION
Definition: lzoconf.h:32
__lzo_init_v2(unsigned v, int s1, int s2, int s3, int s4, int s5, int s6, int s7, int s8, int s9)
Definition: minilzo.c:4549
#define lzo_sizeof_dict_t
Definition: lzoconf.h:327
unsigned long lzo_uint
Definition: lzoconf.h:116

Definition at line 336 of file lzoconf.h.

Referenced by main(), and sr_init().

#define lzo_int16_tp   lzo_int16_t __LZO_MMODEL *
#define lzo_int32   lzo_int32_t

Definition at line 390 of file lzoconf.h.

#define LZO_INT32_MAX   LZO_INT32_C(2147483647)

Definition at line 394 of file lzoconf.h.

#define lzo_int32_tp   lzo_int32_t __LZO_MMODEL *
#define lzo_int32p   lzo_int32_t __LZO_MMODEL *

Definition at line 392 of file lzoconf.h.

#define lzo_int8_tp   lzo_int8_t __LZO_MMODEL *
#define LZO_INT_MAX   LONG_MAX

Definition at line 121 of file lzoconf.h.

#define LZO_INT_MIN   LONG_MIN

Definition at line 122 of file lzoconf.h.

#define lzo_intp   lzo_int __LZO_MMODEL *
#define LZO_PRIVATE (   r)    static r __LZO_CDECL
#define LZO_PTR_ALIGN_UP (   p,
  size 
)    ((p) + (lzo_uint) __lzo_align_gap((const lzo_voidp)(p),(lzo_uint)(size)))

Definition at line 379 of file lzoconf.h.

#define LZO_PUBLIC (   r)    __LZO_EXPORT1 r __LZO_EXPORT2 __LZO_CDECL
#define lzo_shortp   short __LZO_MMODEL *
#define lzo_sizeof_dict_t   ((unsigned)sizeof(lzo_bytep))

Definition at line 327 of file lzoconf.h.

Referenced by __lzo_init_v2().

#define LZO_SIZEOF_LZO_INT   LZO_SIZEOF_LONG

Definition at line 118 of file lzoconf.h.

#define LZO_SIZEOF_LZO_UINT   LZO_SIZEOF_LZO_INT

Definition at line 409 of file lzoconf.h.

#define LZO_TYPEOF_LZO_INT   LZO_TYPEOF_LONG

Definition at line 119 of file lzoconf.h.

#define lzo_uint16_tp   lzo_uint16_t __LZO_MMODEL *
#define lzo_uint32   lzo_uint32_t

Definition at line 391 of file lzoconf.h.

#define LZO_UINT32_MAX   LZO_UINT32_C(4294967295)

Definition at line 395 of file lzoconf.h.

#define lzo_uint32_tp   lzo_uint32_t __LZO_MMODEL *
#define lzo_uint32p   lzo_uint32_t __LZO_MMODEL *

Definition at line 393 of file lzoconf.h.

#define lzo_uint8_tp   lzo_uint8_t __LZO_MMODEL *
#define LZO_UINT_MAX   ULONG_MAX

Definition at line 120 of file lzoconf.h.

#define lzo_uintp   lzo_uint __LZO_MMODEL *

Referenced by _lzo_config_check().

#define lzo_ushortp   unsigned short __LZO_MMODEL *
#define LZO_VERSION   0x20a0 /* 2.10 */

Definition at line 32 of file lzoconf.h.

Referenced by lzo_version().

#define LZO_VERSION_DATE   "Mar 01 2017"

Definition at line 34 of file lzoconf.h.

Referenced by __lzo_align_gap().

#define LZO_VERSION_STRING   "2.10"

Definition at line 33 of file lzoconf.h.

Referenced by __lzo_align_gap().

#define lzo_voidp   void __LZO_MMODEL *
#define lzo_voidpp   lzo_voidp __LZO_MMODEL *
#define lzo_xint   lzo_uint32_t

Definition at line 132 of file lzoconf.h.

Referenced by LZO_EXTERN(), and LZOLIB_PUBLIC().

#define lzo_xintp   lzo_xint __LZO_MMODEL *

Typedef Documentation

Definition at line 245 of file lzoconf.h.

Definition at line 245 of file lzoconf.h.

typedef lzo_uint items

Definition at line 276 of file lzoconf.h.

typedef int lzo_bool

Definition at line 135 of file lzoconf.h.

Definition at line 271 of file lzoconf.h.

typedef int(__LZO_CDECL * lzo_compress_dict_t) (const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem, const lzo_bytep dict, lzo_uint dict_len)

Definition at line 255 of file lzoconf.h.

typedef int(__LZO_CDECL * lzo_decompress_dict_t) (const lzo_bytep src, lzo_uint src_len, lzo_bytep dst, lzo_uintp dst_len, lzo_voidp wrkmem, const lzo_bytep dict, lzo_uint dict_len)

Definition at line 261 of file lzoconf.h.

typedef long lzo_int

Definition at line 117 of file lzoconf.h.

typedef lzo_uint

Definition at line 116 of file lzoconf.h.

typedef lzo_voidp ptr

Definition at line 278 of file lzoconf.h.

Definition at line 276 of file lzoconf.h.

typedef lzo_uint src_len

Definition at line 245 of file lzoconf.h.

Definition at line 245 of file lzoconf.h.

Function Documentation

typedef int ( __LZO_CDECL lzo_decompress_t) const
lzo_adler32 ( lzo_uint32_t  c,
const lzo_bytep  buf,
lzo_uint  len 
)

Definition at line 4280 of file minilzo.c.

References LZO_BASE, LZO_DO16, and LZO_NMAX.

LZO_COMPILE_TIME_ASSERT_HEADER ( sizeof(lzo_xint) >=sizeof(lzo_uint )
lzo_crc32 ( lzo_uint32_t  c,
const lzo_bytep  buf,
lzo_uint  len 
)
LZO_EXTERN ( int  )
LZO_EXTERN ( unsigned  )
LZO_EXTERN ( const char *  )
LZO_EXTERN ( const lzo_charp  )
lzo_get_crc32_table ( void  )
lzo_memcmp ( const lzo_voidp  a,
const lzo_voidp  b,
lzo_uint  len 
)
lzo_memcpy ( lzo_voidp  dst,
const lzo_voidp  src,
lzo_uint  len 
)
lzo_memmove ( lzo_voidp  dst,
const lzo_voidp  src,
lzo_uint  len 
)
lzo_memset ( lzo_voidp  buf,
int  c,
lzo_uint  len 
)

Referenced by main().

+ Here is the caller graph for this function:

typedef lzo_voidp ( __LZO_CDECL lzo_alloc_func_t)

Referenced by __lzo_init_v2(), _lzo_config_check(), LZO_EXTERN(), and LZOLIB_PUBLIC().

+ Here is the caller graph for this function:

typedef void ( __LZO_CDECL lzo_free_func_t)

Variable Documentation

typedef int

Definition at line 282 of file lzoconf.h.

Referenced by __lzo_init_v2().