[][src]Function srtp2_sys::srtp_update_stream

pub unsafe extern "C" fn srtp_update_stream(
    session: srtp_t,
    policy: *const srtp_policy_t
) -> srtp_err_status_t

@brief srtp_update_stream() udpates a SRTP stream.

The function call srtp_update_stream(session, policy) updates the stream(s) in the session that match applying the given policy and key. The exsisting ROC value of all stream(s) will be preserved.

@param session is the SRTP session that contains the streams to be updated.

@param policy is the srtp_policy_t struct that describes the policy for the session.

@return

  • 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.
  • [other] otherwise.