pub type switch_api_interface_t = switch_api_interface;Expand description
\brief A module interface to implement an api function
Aliased Type§
#[repr(C)]pub struct switch_api_interface_t {
pub interface_name: *const i8,
pub desc: *const i8,
pub function: Option<unsafe extern "C" fn(*const i8, *mut switch_core_session, *mut switch_stream_handle) -> switch_status_t>,
pub syntax: *const i8,
pub rwlock: *mut fspr_thread_rwlock_t,
pub refs: i32,
pub reflock: *mut fspr_thread_mutex_t,
pub parent: *mut switch_loadable_module_interface,
pub next: *mut switch_api_interface,
}Fields§
§interface_name: *const i8the name of the interface
desc: *const i8a description of the api function
function: Option<unsafe extern "C" fn(*const i8, *mut switch_core_session, *mut switch_stream_handle) -> switch_status_t>function the api call uses
syntax: *const i8an example of the api syntax
rwlock: *mut fspr_thread_rwlock_t§refs: i32§reflock: *mut fspr_thread_mutex_t§parent: *mut switch_loadable_module_interface§next: *mut switch_api_interface