Commit 6ab4c974 authored by Ghislain MARY's avatar Ghislain MARY

Add accessor to get the nth check list of an ICE session.

parent bf9d7082
......@@ -240,6 +240,15 @@ MS2_PUBLIC void ice_check_list_register_success_cb(IceCheckList *cl, ice_check_l
*/
MS2_PUBLIC void ice_check_list_destroy(IceCheckList *cl);
/**
* Get the nth check list of an ICE session.
*
* @param session A pointer to a session
* @param n The number of the check list to access
* @return A pointer to the nth check list of the session if it exists, NULL otherwise
*/
MS2_PUBLIC IceCheckList *ice_session_check_list(const IceSession *session, unsigned int n);
/**
* Get the local username fragment of an ICE session.
*
......
......@@ -415,6 +415,11 @@ static IceCandidatePair * ice_check_list_pop_triggered_check(IceCheckList *cl)
* SESSION ACCESSORS *
*****************************************************************************/
IceCheckList * ice_session_check_list(const IceSession *session, unsigned int n)
{
return (IceCheckList *)ms_list_nth_data(session->streams, n);
}
const char * ice_session_local_ufrag(IceSession *session)
{
return session->local_ufrag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment