libopc
Macros | Typedefs | Enumerations
config.h File Reference
#include <libxml/xmlstring.h>
#include <plib/plib.h>
#include <assert.h>

Go to the source code of this file.

Macros

#define OPC_ASSERT(e)
 
#define OPC_ENSURE(e)
 
#define OPC_TRUE
 
#define OPC_FALSE
 
#define OPC_DEFLATE_BUFFER_SIZE   4096
 
#define OPC_MAX_PATH   512
 
#define opc_logf
 
#define opc_bzero_mem(m, s)
 

Typedefs

typedef pbool_t opc_bool_t
 
typedef pofs_t opc_ofs_t
 
typedef puint8_t opc_uint8_t
 
typedef puint16_t opc_uint16_t
 
typedef puint32_t opc_uint32_t
 
typedef puint64_t opc_uint64_t
 
typedef pint8_t opc_int8_t
 
typedef pint16_t opc_int16_t
 
typedef pint32_t opc_int32_t
 
typedef pint64_t opc_int64_t
 
typedef enum OPC_ERROR_ENUM opc_error_t
 
typedef enum OPC_COMPRESSIONOPTION_ENUM opcCompressionOption_t
 

Enumerations

enum  OPC_ERROR_ENUM {
  OPC_ERROR_NONE, OPC_ERROR_STREAM, OPC_ERROR_SEEK, OPC_ERROR_UNSUPPORTED_DATA_DESCRIPTOR,
  OPC_ERROR_UNSUPPORTED_COMPRESSION, OPC_ERROR_DEFLATE, OPC_ERROR_HEADER, OPC_ERROR_MEMORY,
  OPC_ERROR_XML, OPC_ERROR_USER
}
 
enum  OPC_COMPRESSIONOPTION_ENUM {
  OPC_COMPRESSIONOPTION_NONE, OPC_COMPRESSIONOPTION_NORMAL, OPC_COMPRESSIONOPTION_MAXIMUM, OPC_COMPRESSIONOPTION_FAST,
  OPC_COMPRESSIONOPTION_SUPERFAST
}
 

Macro Definition Documentation

#define OPC_ASSERT (   e)
#define opc_bzero_mem (   m,
 
)

Abstraction for memset(m, 0, s).

#define OPC_DEFLATE_BUFFER_SIZE   4096

Default size fo the deflate buffer used by zlib.

Examples:
opc_zipread.c.
#define OPC_ENSURE (   e)

Assert expression e is true. Expression will be executed in release mode too.

Examples:
opc_zipextract.c, opc_zipread.c, and opc_zipwrite.c.
#define OPC_FALSE

Constant for boolean false.

Examples:
opc_generate.c, opc_zipextract.c, opc_zipread.c, and opc_zipwrite.c.
#define opc_logf

Helper for debug logs.

#define OPC_MAX_PATH   512

Max system path len.

Examples:
opc_generate.c, and opc_image.c.
#define OPC_TRUE

Constant for boolean true.

Examples:
opc_generate.c, opc_zipread.c, and opc_zipwrite.c.

Typedef Documentation

typedef pbool_t opc_bool_t

Boolean type.

Error codes for the OPC module.

typedef pint16_t opc_int16_t

16-bit signed integer.

typedef pint32_t opc_int32_t

32-bit signed integer.

typedef pint64_t opc_int64_t

64-bit signed integer.

typedef pint8_t opc_int8_t

8-bit signed integer.

typedef pofs_t opc_ofs_t

Type which represents an offset in e.g. a file.

typedef puint16_t opc_uint16_t

16-bit unsigned integer.

typedef puint32_t opc_uint32_t

32-bit unsigned integer.

typedef puint64_t opc_uint64_t

64-bit unsigned integer.

typedef puint8_t opc_uint8_t

8-bit unsigned integer.

Compression options for OPC streams.

Enumeration Type Documentation

Compression options for OPC streams.

Error codes for the OPC module.