[][src]Function srtp2_sys::srtp_install_event_handler

pub unsafe extern "C" fn srtp_install_event_handler(
    func: srtp_event_handler_func_t
) -> srtp_err_status_t

@brief sets the event handler to the function supplied by the caller.

The function call srtp_install_event_handler(func) sets the event handler function to the value func. The value NULL is acceptable as an argument; in this case, events will be ignored rather than handled.

@param func is a pointer to a fuction that takes an srtp_event_data_t pointer as an argument and returns void. This function will be used by libSRTP to handle events.