#include <switch.h>
#include "switch_resample.h"
#include "switch_frame.h"
Include dependency graph for switch_module_interfaces.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
This module holds the definition of data abstractions used to implement various pluggable interfaces and pluggable event handlers.
Definition in file switch_module_interfaces.h.
| #define PROTECT_INTERFACE | ( | _it | ) | if (_it) {switch_mutex_lock(_it->reflock); switch_thread_rwlock_rdlock(_it->parent->rwlock); switch_thread_rwlock_rdlock(_it->rwlock); _it->refs++; _it->parent->refs++; switch_mutex_unlock(_it->reflock);} |
Definition at line 722 of file switch_module_interfaces.h.
Referenced by switch_core_session_request_uuid(), switch_loadable_module_get_codec_interface(), and switch_loadable_module_get_endpoint_interface().
| #define UNPROTECT_INTERFACE | ( | _it | ) | if (_it) {switch_mutex_lock(_it->reflock); switch_thread_rwlock_unlock(_it->rwlock); switch_thread_rwlock_unlock(_it->parent->rwlock); _it->refs--; _it->parent->refs--; switch_mutex_unlock(_it->reflock);} |
Definition at line 723 of file switch_module_interfaces.h.
Referenced by collect_thread_run(), do_chat_send(), release_backend(), switch_api_execute(), switch_core_asr_close(), switch_core_asr_open(), switch_core_codec_destroy(), switch_core_codec_init_with_bitrate(), switch_core_codec_parse_fmtp(), switch_core_directory_close(), switch_core_directory_open(), switch_core_execute_chat_app(), switch_core_file_close(), switch_core_perform_file_open(), switch_core_session_execute_application_get_flags(), switch_core_session_execute_exten(), switch_core_session_get_app_flags(), switch_core_session_outgoing_channel(), switch_core_session_request_by_name(), switch_core_session_request_uuid(), switch_core_speech_close(), switch_core_speech_open(), switch_core_standard_on_routing(), switch_core_timer_destroy(), switch_core_timer_init(), switch_ivr_menu_execute(), switch_ivr_phrase_macro_event(), and switch_loadable_module_get_codecs_sorted().
| typedef switch_status_t(*) switch_io_kill_channel_t(switch_core_session_t *, int) |
Definition at line 113 of file switch_module_interfaces.h.
Definition at line 109 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_read_frame_t(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int) |
Definition at line 111 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_read_video_frame_t(switch_core_session_t *, switch_frame_t **, switch_io_flag_t, int) |
Definition at line 119 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_receive_event_t(switch_core_session_t *, switch_event_t *) |
Definition at line 116 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_receive_message_t(switch_core_session_t *, switch_core_session_message_t *) |
Definition at line 115 of file switch_module_interfaces.h.
| typedef switch_call_cause_t(*) switch_io_resurrect_session_t(switch_core_session_t **, switch_memory_pool_t **, void *) |
Definition at line 121 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_send_dtmf_t(switch_core_session_t *, const switch_dtmf_t *) |
Definition at line 114 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_state_change_t(switch_core_session_t *) |
Definition at line 117 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_state_run_t(switch_core_session_t *) |
Definition at line 118 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_write_frame_t(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int) |
Definition at line 112 of file switch_module_interfaces.h.
| typedef switch_status_t(*) switch_io_write_video_frame_t(switch_core_session_t *, switch_frame_t *, switch_io_flag_t, int) |
Definition at line 120 of file switch_module_interfaces.h.
Definition at line 123 of file switch_module_interfaces.h.
00123 { 00124 SWITCH_IO_OUTGOING_CHANNEL, 00125 SWITCH_IO_READ_FRAME, 00126 SWITCH_IO_WRITE_FRAME, 00127 SWITCH_IO_KILL_CHANNEL, 00128 SWITCH_IO_SEND_DTMF, 00129 SWITCH_IO_RECEIVE_MESSAGE, 00130 SWITCH_IO_RECEIVE_EVENT, 00131 SWITCH_IO_STATE_CHANGE, 00132 SWITCH_IO_READ_VIDEO_FRAME, 00133 SWITCH_IO_WRITE_VIDEO_FRAME, 00134 SWITCH_IO_RESURRECT_SESSION 00135 } switch_io_routine_name_t;
A table of functions to execute at various states.
Definition at line 49 of file switch_module_interfaces.h.
00049 { 00050 SWITCH_SHN_ON_INIT, 00051 SWITCH_SHN_ON_ROUTING, 00052 SWITCH_SHN_ON_EXECUTE, 00053 SWITCH_SHN_ON_HANGUP, 00054 SWITCH_SHN_ON_EXCHANGE_MEDIA, 00055 SWITCH_SHN_ON_SOFT_EXECUTE, 00056 SWITCH_SHN_ON_CONSUME_MEDIA, 00057 SWITCH_SHN_ON_HIBERNATE, 00058 SWITCH_SHN_ON_RESET, 00059 SWITCH_SHN_ON_PARK, 00060 SWITCH_SHN_ON_REPORTING, 00061 SWITCH_SHN_ON_DESTROY 00062 } switch_state_handler_name_t;
| SWITCH_TIMER_FUNC_TIMER_INIT | |
| SWITCH_TIMER_FUNC_TIMER_NEXT | |
| SWITCH_TIMER_FUNC_TIMER_STEP | |
| SWITCH_TIMER_FUNC_TIMER_SYNC | |
| SWITCH_TIMER_FUNC_TIMER_CHECK | |
| SWITCH_TIMER_FUNC_TIMER_DESTROY |
Definition at line 216 of file switch_module_interfaces.h.
00216 { 00217 SWITCH_TIMER_FUNC_TIMER_INIT, 00218 SWITCH_TIMER_FUNC_TIMER_NEXT, 00219 SWITCH_TIMER_FUNC_TIMER_STEP, 00220 SWITCH_TIMER_FUNC_TIMER_SYNC, 00221 SWITCH_TIMER_FUNC_TIMER_CHECK, 00222 SWITCH_TIMER_FUNC_TIMER_DESTROY 00223 } switch_timer_func_name_t;
1.4.7