pub unsafe extern "C" fn srtp_add_stream(
session: srtp_t,
policy: *const srtp_policy_t,
) -> srtp_err_status_t
Expand description
@brief srtp_add_stream() allocates and initializes an SRTP stream within a given SRTP session.
The function call srtp_add_stream(session, policy) allocates and initializes a new SRTP stream within a given, previously created session, applying the policy given as the other argument to that stream.
@return values:
- srtp_err_status_ok if stream creation succeded.
- srtp_err_status_alloc_fail if stream allocation failed
- srtp_err_status_init_fail if stream initialization failed.