|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJLIB Reference
Basic Data Types and Library Functionality.
[Data Structure.]
Define Documentation
| #define PJ_ARRAY_SIZE |
( |
a |
|
) |
(sizeof(a)/sizeof(a[0])) |
Utility macro to compute the number of elements in static array.
| #define PJ_MAX_OBJ_NAME 32 |
| #define PJ_MAXINT32 0x7FFFFFFFL |
Maximum value for signed 32-bit integer.
| #define PJ_T |
( |
literal_str |
|
) |
literal_str |
This macro creates Unicode or ANSI literal string depending whether native platform string is Unicode or ANSI.
Typedef Documentation
Opaque data type for atomic operations.
Value type of an atomic variable.
Native char type, which will be equal to wchar_t for Unicode and char for ANSI.
Opaque data type for hash entry (only used internally by hash table).
Opaque data type for hash tables.
Opaque data type for key that identifies a handle registered to the I/O queue framework.
Opaque data type for I/O Queue structure.
The opaque data type for linked list, which is used as arguments throughout the linked list operations.
Unidirectional stream pipe object.
Opaque data to identify timer heap.
Function Documentation
Register cleanup function to be called by PJLIB when pj_shutdown() is called.
- Parameters:
-
| func | The function to be registered. |
- Returns:
- PJ_SUCCESS on success.
Initialize the PJ Library. This function must be called before using the library. The purpose of this function is to initialize static library data, such as character table used in random string generation, and to initialize operating system dependent functionality (such as WSAStartup() in Windows).
- Returns:
- PJ_SUCCESS on success.
| void pj_shutdown |
( |
void |
|
) |
|
Swap the byte order of an 16bit data.
- Parameters:
-
- Returns:
- An 16bit data with swapped byte order.
Swap the byte order of an 32bit data.
- Parameters:
-
- Returns:
- An 32bit data with swapped byte order.
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.
|
|