Function switch_event_bind

Source
pub unsafe extern "C" fn switch_event_bind(
    id: *const c_char,
    event: switch_event_types_t,
    subclass_name: *const c_char,
    callback: switch_event_callback_t,
    user_data: *mut c_void,
) -> switch_status_t
Expand description

\brief Bind an event callback to a specific event \param id an identifier token of the binder \param event the event enumeration to bind to \param subclass_name the event subclass to bind to in the case if SWITCH_EVENT_CUSTOM \param callback the callback functon to bind \param user_data optional user specific data to pass whenever the callback is invoked \return SWITCH_STATUS_SUCCESS if the event was binded