Home --> Documentations --> PJLIB Reference

Modules | Data Structures | Enumerations | Enumerator | Functions | Variables

Modules

 Threads
 
 Symbian OS Specific
 
 Thread Local Storage.
 
 Atomic Variables
 
 Mutexes.
 
 Reader/Writer Mutex
 
 Critical sections.
 
 Semaphores.
 
 Event Object.
 
 High Resolution Timestamp
 
 Application execution
 
 Time Data Type and Manipulation.
 

Data Structures

struct  pj_sys_info
 

Enumerations

enum  pj_sys_info_flag { PJ_SYS_HAS_IOS_BG = 1 }
 

Functions

const pj_sys_infopj_get_sys_info (void)
 
pj_status_t pj_thread_init (void)
 

Variables

pj_str_t pj_sys_info::machine
 
pj_str_t pj_sys_info::os_name
 
pj_uint32_t pj_sys_info::os_ver
 
pj_str_t pj_sys_info::sdk_name
 
pj_uint32_t pj_sys_info::sdk_ver
 
pj_str_t pj_sys_info::info
 
pj_uint32_t pj_sys_info::flags
 
void * pj_symbianos_params::rsocketserv
 
void * pj_symbianos_params::rconnection
 
void * pj_symbianos_params::rhostresolver
 
void * pj_symbianos_params::rhostresolver6
 

Detailed Description

Enumeration Type Documentation

These enumeration contains constants to indicate support of miscellaneous system features. These will go in "flags" field of pj_sys_info structure.

Enumerator
PJ_SYS_HAS_IOS_BG 

Support for Apple iOS background feature.

Function Documentation

const pj_sys_info* pj_get_sys_info ( void  )

Obtain the system information.

Returns
System information structure.
pj_status_t pj_thread_init ( void  )

Internal PJLIB function to initialize the threading subsystem.

Returns
PJ_SUCCESS or the appropriate error code.

Variable Documentation

pj_uint32_t pj_sys_info::flags

Other flags containing system specific information. The value is bitmask of pj_sys_info_flag constants.

pj_str_t pj_sys_info::info

A longer null terminated string identifying the underlying system with as much information as possible.

pj_str_t pj_sys_info::machine

Null terminated string containing processor information (e.g. "i386", "x86_64"). It may contain empty string if the value cannot be obtained.

pj_str_t pj_sys_info::os_name

Null terminated string identifying the system operation (e.g. "Linux", "win32", "wince"). It may contain empty string if the value cannot be obtained.

pj_uint32_t pj_sys_info::os_ver

A number containing the operating system version number. By convention, this field is divided into four bytes, where the highest order byte contains the most major version of the OS, the next less significant byte contains the less major version, and so on. How the OS version number is mapped into these four bytes would be specific for each OS. For example, Linux-2.6.32-28 would yield "os_ver" value of 0x0206201c, while for Windows 7 it will be 0x06010000 (because dwMajorVersion is 6 and dwMinorVersion is 1 for Windows 7).

This field may contain zero if the OS version cannot be obtained.

void* pj_symbianos_params::rconnection

Optional RConnection instance to be used by PJLIB when creating sockets. If this value is NULL, no RConnection will be specified when creating sockets.

void* pj_symbianos_params::rhostresolver

Optional RHostResolver instance to be used by PJLIB. If this value is NULL, a new RHostResolver instance will be created when pj_init() is called.

void* pj_symbianos_params::rhostresolver6

Optional RHostResolver for IPv6 instance to be used by PJLIB. If this value is NULL, a new RHostResolver instance will be created when pj_init() is called.

void* pj_symbianos_params::rsocketserv

Optional RSocketServ instance to be used by PJLIB. If this value is NULL, PJLIB will create a new RSocketServ instance when pj_init() is called.

pj_str_t pj_sys_info::sdk_name

Null terminated string identifying the SDK name that is used to build the library (e.g. "glibc", "uclibc", "msvc", "wince"). It may contain empty string if the value cannot eb obtained.

pj_uint32_t pj_sys_info::sdk_ver

A number containing the SDK version, using the numbering convention as the "os_ver" field. The value will be zero if the version cannot be obtained.

 


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