pub unsafe extern "C" fn srtp_get_user_data(
ctx: srtp_t,
) -> *mut c_void
Expand description
@brief srtp_get_user_data() retrieves the pointer to the custom data previously stored with srtp_set_user_data().
This function is mostly useful for retrieving data associated to a SRTP session when an event fires. The user can then get such a custom data by calling this function with the session field of the srtp_event_data_t struct as argument.
@param ctx is the srtp_t context in which the given data pointer was stored.
@return void* pointer to the user data.