lwes_types.h File Reference


Detailed Description

Definitions for all types used in lwes.

Go to the source code of this file.

Typedefs

typedef unsigned char LWES_BYTE
 1 byte
typedef unsigned char * LWES_BYTE_P
 Pointer to a byte, aka a byte array.
typedef unsigned short int LWES_U_INT_16
 2 byte unsigned integer
typedef short int LWES_INT_16
 2 byte signed integer
typedef unsigned int LWES_U_INT_32
 4 byte unsigned integer
typedef int LWES_INT_32
 4 byte signed integer
typedef unsigned long long LWES_U_INT_64
 8 byte unsigned integer
typedef long long LWES_INT_64
 8 byte signed integer
typedef int LWES_BOOLEAN
 boolean value should be either 0 (false) or 1 (true), this is actually stored as a 1 byte value
typedef in_addr LWES_IP_ADDR
 an ipv4 internet address, which is 4 bytes in length
typedef char * LWES_SHORT_STRING
 a string which is at most 1 byte in length
typedef char * LWES_LONG_STRING
 a string which is at most 2 bytes in length
typedef const char * LWES_CONST_SHORT_STRING
 a constant string which is at most 1 byte in length
typedef const char * LWES_CONST_LONG_STRING
 a constant string which is at most 2 bytes in length
typedef char LWES_CHAR
 a character which is mainly used in mallocs for string types

Enumerations

enum  LWES_TYPE {
  LWES_TYPE_U_INT_16 = 1, LWES_TYPE_INT_16 = 2, LWES_TYPE_U_INT_32 = 3, LWES_TYPE_INT_32 = 4,
  LWES_TYPE_STRING = 5, LWES_TYPE_IP_ADDR = 6, LWES_TYPE_INT_64 = 7, LWES_TYPE_U_INT_64 = 8,
  LWES_TYPE_BOOLEAN = 9, LWES_TYPE_UNDEFINED = 255
}


Enumeration Type Documentation

enum LWES_TYPE
 

Enumerator:
LWES_TYPE_U_INT_16  2 byte unsigned integer type
LWES_TYPE_INT_16  2 byte signed integer type type
LWES_TYPE_U_INT_32  4 byte unsigned integer type
LWES_TYPE_INT_32  4 byte signed integer type
LWES_TYPE_STRING  variable bytes string type
LWES_TYPE_IP_ADDR  4 byte ipv4 address type
LWES_TYPE_INT_64  8 byte signed integer type
LWES_TYPE_U_INT_64  8 byte unsigned integer type
LWES_TYPE_BOOLEAN  1 byte boolean type
LWES_TYPE_UNDEFINED  undefined type


Generated on Thu Aug 21 07:18:55 2008 for lwes by  doxygen 1.4.6