Commit 9304d7b4 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add accessor to set the state of an ICE check list.

parent 9951583b
...@@ -354,6 +354,14 @@ MS2_PUBLIC void ice_session_add_check_list(IceSession *session, IceCheckList *cl ...@@ -354,6 +354,14 @@ MS2_PUBLIC void ice_session_add_check_list(IceSession *session, IceCheckList *cl
*/ */
MS2_PUBLIC IceCheckListState ice_check_list_state(const IceCheckList *cl); MS2_PUBLIC IceCheckListState ice_check_list_state(const IceCheckList *cl);
/**
* Set the state of an ICE check list.
*
* @param cl A pointer to a check list
* @param state The new state of the check list
*/
MS2_PUBLIC void ice_check_list_set_state(IceCheckList *cl, IceCheckListState state);
/** /**
* Get the local username fragment of an ICE check list. * Get the local username fragment of an ICE check list.
* *
......
...@@ -350,6 +350,11 @@ IceCheckListState ice_check_list_state(const IceCheckList* cl) ...@@ -350,6 +350,11 @@ IceCheckListState ice_check_list_state(const IceCheckList* cl)
return cl->state; return cl->state;
} }
void ice_check_list_set_state(IceCheckList *cl, IceCheckListState state)
{
cl->state = state;
}
const char * ice_check_list_local_ufrag(const IceCheckList* cl) const char * ice_check_list_local_ufrag(const IceCheckList* cl)
{ {
/* Do not handle media specific ufrag for the moment, so use the session local ufrag. */ /* Do not handle media specific ufrag for the moment, so use the 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