Commit 3490d9f4 authored by Ghislain MARY's avatar Ghislain MARY

Add accessor to get ICE session state.

parent b69d0fae
......@@ -269,13 +269,21 @@ MS2_PUBLIC const char * ice_session_remote_ufrag(const IceSession *session);
*/
MS2_PUBLIC const char * ice_session_remote_pwd(const IceSession *session);
/**
* Get the state of an ICE session.
*
* @param session A pointer to a session
* @return The state of the session
*/
MS2_PUBLIC IceSessionState ice_session_state(const IceSession *session);
/**
* Gte the role of the agent for an ICE session.
*
* @param session A pointer to a session
* @return The role of the agent for the session
*/
MS2_PUBLIC IceRole ice_session_role(IceSession *session);
MS2_PUBLIC IceRole ice_session_role(const IceSession *session);
/**
* Set the role of the agent for an ICE session.
......
......@@ -474,7 +474,12 @@ static void ice_session_compute_pair_priorities(IceSession *session)
ms_list_for_each(session->streams, (void (*)(void*))ice_check_list_compute_pair_priorities);
}
IceRole ice_session_role(IceSession *session)
IceSessionState ice_session_state(const IceSession *session)
{
return session->state;
}
IceRole ice_session_role(const IceSession *session)
{
return session->role;
}
......
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