Brought To You By APR

Collaboration diagram for Brought To You By APR:

Modules

 Memory Pool Functions
 Dynamic Object Handling Routines
 String Handling funcions
 Time Routines
 Thread Mutex Routines
 Multi-Threaded Adtomic Operations Routines
 Thread Read/Write lock Routines
 Condition Variable Routines
 UUID Handling
 Thread Safe FIFO bounded queue
 File I/O Handling Functions
 Threads and Process Functions
 Network Routines
 Poll Routines

Data Structures

union  switch_descriptor_t
struct  switch_pollfd

Enumerations

enum  switch_pollset_type_t { SWITCH_NO_DESC, SWITCH_POLL_SOCKET, SWITCH_POLL_FILE, SWITCH_POLL_LASTDESC }

Enumerator

 SWITCH_SHUTDOWN_WRITE
 SWITCH_SHUTDOWN_READWRITE
 SWITCH_POLL_SOCKET
 SWITCH_POLL_FILE
 SWITCH_POLL_LASTDESC

Functions

unsigned int switch_hashfunc_default (const char *key, switch_ssize_t *klen)
unsigned int switch_ci_hashfunc_default (const char *char_key, switch_ssize_t *klen)

Variables

int32_t switch_time_exp_t::tm_sec
int32_t switch_time_exp_t::tm_min
int32_t switch_time_exp_t::tm_hour
int32_t switch_time_exp_t::tm_mday
int32_t switch_time_exp_t::tm_mon
int32_t switch_time_exp_t::tm_year
int32_t switch_time_exp_t::tm_wday
int32_t switch_time_exp_t::tm_yday
int32_t switch_time_exp_t::tm_isdst
int32_t switch_time_exp_t::tm_gmtoff
int switch_array_header_t::elt_size
int switch_array_header_t::nelts
int switch_array_header_t::nalloc
char * switch_array_header_t::elts
switch_socket_tswitch_descriptor_t::s
switch_pollset_type_t switch_pollfd::desc_type
int16_t switch_pollfd::reqevents
int16_t switch_pollfd::rtnevents
switch_descriptor_t switch_pollfd::desc
void * switch_pollfd::client_data


Enumeration Type Documentation

enum switch_pollset_type_t

Enumerator:
SWITCH_NO_DESC  nothing here
SWITCH_POLL_SOCKET  descriptor refers to a socket
SWITCH_POLL_FILE  descriptor refers to a file
SWITCH_POLL_LASTDESC  descriptor is the last one in the list

Definition at line 1305 of file switch_apr.h.

01305                       {
01306                  SWITCH_NO_DESC,                   /**< nothing here */
01307                  SWITCH_POLL_SOCKET,       /**< descriptor refers to a socket */
01308                  SWITCH_POLL_FILE,                 /**< descriptor refers to a file */
01309                  SWITCH_POLL_LASTDESC      /**< descriptor is the last one in the list */
01310          } switch_pollset_type_t;


Enumerator Documentation

SWITCH_POLL_FILE

descriptor refers to a file

SWITCH_POLL_LASTDESC

descriptor is the last one in the list

Definition at line 1309 of file switch_apr.h.

SWITCH_POLL_SOCKET

descriptor refers to a socket

SWITCH_SHUTDOWN_READWRITE

no longer allow read or write requests

Definition at line 1064 of file switch_apr.h.

Referenced by switch_ivr_deactivate_unicast(), switch_rtp_kill_socket(), switch_rtp_udptl_mode(), and switch_stun_lookup().

SWITCH_SHUTDOWN_WRITE

no longer allow write requests


Function Documentation

unsigned int switch_ci_hashfunc_default ( const char *  char_key,
switch_ssize_t klen 
)

Definition at line 98 of file switch_apr.c.

Referenced by add_handle(), get_handle(), switch_event_base_add_header(), switch_event_del_header_val(), switch_event_get_header_ptr(), and switch_event_rename_header().

00099 {
00100         unsigned int hash = 0;
00101         const unsigned char *key = (const unsigned char *) char_key;
00102         const unsigned char *p;
00103         apr_ssize_t i;
00104 
00105         if (*klen == APR_HASH_KEY_STRING) {
00106                 for (p = key; *p; p++) {
00107                         hash = hash * 33 + tolower(*p);
00108                 }
00109                 *klen = p - key;
00110         } else {
00111                 for (p = key, i = *klen; i; i--, p++) {
00112                         hash = hash * 33 + tolower(*p);
00113                 }
00114         }
00115 
00116         return hash;
00117 }

unsigned int switch_hashfunc_default ( const char *  key,
switch_ssize_t klen 
)

The default hash function.

Parameters:
key pointer to the key.
klen the key length.

Definition at line 120 of file switch_apr.c.

Referenced by switch_ivr_parse_event().

00121 {
00122         return apr_hashfunc_default(key, klen);
00123 }


Variable Documentation

void* switch_pollfd::client_data [inherited]

allows app to associate context

Definition at line 1324 of file switch_apr.h.

switch_descriptor_t switch_pollfd::desc [inherited]

See also:
apr_descriptor

Definition at line 1323 of file switch_apr.h.

switch_pollset_type_t switch_pollfd::desc_type [inherited]

descriptor type

Definition at line 1320 of file switch_apr.h.

int switch_array_header_t::elt_size [inherited]

The amount of memory allocated for each element of the array

Definition at line 955 of file switch_apr.h.

char* switch_array_header_t::elts [inherited]

The elements in the array

Definition at line 961 of file switch_apr.h.

int switch_array_header_t::nalloc [inherited]

The number of elements allocated in the array

Definition at line 959 of file switch_apr.h.

int switch_array_header_t::nelts [inherited]

The number of active elements in the array

Definition at line 957 of file switch_apr.h.

int16_t switch_pollfd::reqevents [inherited]

requested events

Definition at line 1321 of file switch_apr.h.

int16_t switch_pollfd::rtnevents [inherited]

returned events

Definition at line 1322 of file switch_apr.h.

switch_socket_t* switch_descriptor_t::s [inherited]

socket

Definition at line 1314 of file switch_apr.h.

int32_t switch_time_exp_t::tm_gmtoff [inherited]

seconds east of UTC

Definition at line 269 of file switch_apr.h.

int32_t switch_time_exp_t::tm_hour [inherited]

(0-23) hours past midnight

Definition at line 255 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_isdst [inherited]

daylight saving time

Definition at line 267 of file switch_apr.h.

int32_t switch_time_exp_t::tm_mday [inherited]

(1-31) day of the month

Definition at line 257 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_min [inherited]

(0-59) minutes past tm_hour

Definition at line 253 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_mon [inherited]

(0-11) month of the year

Definition at line 259 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_sec [inherited]

(0-61) seconds past tm_min

Definition at line 251 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_wday [inherited]

(0-6) days since sunday

Definition at line 263 of file switch_apr.h.

Referenced by switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_yday [inherited]

(0-365) days since jan 1

Definition at line 265 of file switch_apr.h.

Referenced by switch_xml_std_datetime_check().

int32_t switch_time_exp_t::tm_year [inherited]

year since 1900

Definition at line 261 of file switch_apr.h.

Referenced by switch_log_vprintf(), switch_str_time(), and switch_xml_std_datetime_check().


Generated on Wed May 16 04:00:17 2012 for FreeSWITCH API Documentation by  doxygen 1.4.7