BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJLIB Reference

types.h File Reference

Declaration of basic types and utility. More...

Go to the source code of this file.

Data Structures

struct  pj_str_t
union  pj_timestamp
struct  pj_hash_iterator_t
struct  pj_time_val
struct  pj_parsed_time

Macros

#define PJ_T(literal_str)   literal_str
#define PJ_ARRAY_SIZE(a)   (sizeof(a)/sizeof(a[0]))
#define PJ_MAXINT32   0x7FFFFFFFL
#define PJ_MAX_OBJ_NAME   32
#define PJ_TIME_VAL_MSEC(t)
#define PJ_TIME_VAL_EQ(t1, t2)
#define PJ_TIME_VAL_GT(t1, t2)
#define PJ_TIME_VAL_GTE(t1, t2)
#define PJ_TIME_VAL_LT(t1, t2)
#define PJ_TIME_VAL_LTE(t1, t2)
#define PJ_TIME_VAL_ADD(t1, t2)
#define PJ_TIME_VAL_SUB(t1, t2)

Typedefs

typedef unsigned int pj_uint32_t
typedef short pj_int16_t
typedef unsigned short pj_uint16_t
typedef signed char pj_int8_t
typedef unsigned char pj_uint8_t
typedef size_t pj_size_t
typedef long pj_ssize_t
typedef int pj_status_t
typedef int pj_bool_t
typedef char pj_char_t
typedef pj_ssize_t pj_off_t
typedef void pj_list_type
typedef struct pj_hash_table_t pj_hash_table_t
typedef struct pj_hash_entry pj_hash_entry
typedef struct pj_ioqueue_t pj_ioqueue_t
typedef struct pj_ioqueue_key_t pj_ioqueue_key_t
typedef struct pj_timer_heap_t pj_timer_heap_t
typedef struct pj_atomic_t pj_atomic_t
typedef PJ_ATOMIC_VALUE_TYPE pj_atomic_value_t
typedef struct pj_thread_t pj_thread_t
typedef struct pj_lock_t pj_lock_t
typedef struct pj_grp_lock_t pj_grp_lock_t
typedef struct pj_mutex_t pj_mutex_t
typedef struct pj_sem_t pj_sem_t
typedef struct pj_event_t pj_event_t
typedef struct pj_pipe_t pj_pipe_t
typedef void * pj_oshandle_t
typedef long pj_sock_t
typedef void pj_sockaddr_t
typedef unsigned int pj_color_t
typedef int pj_exception_id_t
typedef void(* pj_exit_callback )(void)

Enumerations

enum  pj_constants_ { PJ_SUCCESS = 0, PJ_TRUE = 1, PJ_FALSE = 0 }
enum  { PJ_TERM_COLOR_R = 2, PJ_TERM_COLOR_G = 4, PJ_TERM_COLOR_B = 1, PJ_TERM_COLOR_BRIGHT = 8 }

Functions

pj_status_t pj_init (void)
void pj_shutdown (void)
pj_status_t pj_atexit (pj_exit_callback func)
pj_int16_t pj_swap16 (pj_int16_t val16)
pj_int32_t pj_swap32 (pj_int32_t val32)
void pj_time_val_normalize (pj_time_val *t)

Variables

PJ_BEGIN_DECL typedef int pj_int32_t

Detailed Description

Declaration of basic types and utility.


Enumeration Type Documentation

anonymous enum
 // Time Management   

Color code combination.

Enumerator:
PJ_TERM_COLOR_R 

Red

PJ_TERM_COLOR_G 

Green

PJ_TERM_COLOR_B 

Blue.

PJ_TERM_COLOR_BRIGHT 

Bright mask.

 


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.