Commit 77d4dc42 authored by Ghislain MARY's avatar Ghislain MARY

Add function to unselect ICE valid pairs.

parent cfe804f4
......@@ -643,6 +643,15 @@ MS2_PUBLIC void ice_add_losing_pair(IceCheckList *cl, uint16_t componentID, cons
*/
MS2_PUBLIC int ice_session_nb_losing_pairs(const IceSession *session);
/**
* Unselect the previously selected valid pairs.
*
* @param cl A pointer to a check list
*
* This function is to be used to use the pairs given by the remote controlling agent instead of the pairs we found ourselves.
*/
MS2_PUBLIC void ice_check_list_unselect_valid_pairs(IceCheckList *cl);
/**
* Set the base for the local server reflexive candidates of an ICE session.
*
......
......@@ -2073,6 +2073,16 @@ int ice_session_nb_losing_pairs(const IceSession *session)
return nb_losing_pairs;
}
void ice_check_list_unselect_valid_pair(IceValidCandidatePair *valid_pair)
{
valid_pair->selected = FALSE;
}
void ice_check_list_unselect_valid_pairs(IceCheckList *cl)
{
ms_list_for_each(cl->valid_list, (void (*)(void *))ice_check_list_unselect_valid_pair);
}
/******************************************************************************
* COMPUTE CANDIDATES FOUNDATIONS *
......
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