Commit f63d4ac5 authored by Ghislain MARY's avatar Ghislain MARY

Add accessor to get an ICE candidate type as a string.

parent 2ce5e434
......@@ -357,6 +357,14 @@ MS2_PUBLIC const char * ice_check_list_remote_ufrag(IceCheckList *cl);
*/
MS2_PUBLIC const char * ice_check_list_remote_pwd(IceCheckList *cl);
/**
* Get the candidate type as a string.
*
* @param candidate A pointer to a candidate
* @return A pointer to the candidate type as a string
*/
MS2_PUBLIC const char *ice_candidate_type(IceCandidate *candidate);
/**
* Add a local candidate to an ICE check list.
*
......
......@@ -302,6 +302,15 @@ void ice_check_list_destroy(IceCheckList *cl)
}
/******************************************************************************
* CANDIDATE ACCESSORS *
*****************************************************************************/
const char *ice_candidate_type(IceCandidate *candidate)
{
return candidate_type_values[candidate->type];
}
/******************************************************************************
* CANDIDATE PAIR ACCESSORS *
*****************************************************************************/
......
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