RTS API Documentation  1.10.11
Functions
State Handlers
+ Collaboration diagram for State Handlers:

Functions

int switch_core_add_state_handler (_In_ const switch_state_handler_table_t *state_handler)
 Add a global state handler. More...
 
void switch_core_remove_state_handler (_In_ const switch_state_handler_table_t *state_handler)
 Remove a global state handler. More...
 
const switch_state_handler_table_tswitch_core_get_state_handler (_In_ int index)
 Access a state handler. More...
 

Detailed Description

Function Documentation

◆ switch_core_add_state_handler()

int switch_core_add_state_handler ( _In_ const switch_state_handler_table_t state_handler)

Add a global state handler.

Parameters
state_handlera state handler to add
Returns
the current index/priority of this handler

◆ switch_core_get_state_handler()

const switch_state_handler_table_t* switch_core_get_state_handler ( _In_ int  index)

Access a state handler.

Parameters
indexthe desired index to access
Returns
the desired state handler table or NULL when it does not exist.

◆ switch_core_remove_state_handler()

void switch_core_remove_state_handler ( _In_ const switch_state_handler_table_t state_handler)

Remove a global state handler.

Parameters
state_handlerthe state handler to remove