Commit 5837b2c2 authored by jehan's avatar jehan

add ice check list getter on ufrag/passwd

parent 350bc637
......@@ -374,6 +374,24 @@ MS2_PUBLIC bool_t ice_session_remote_credentials_changed(IceSession *session, co
*/
MS2_PUBLIC void ice_session_set_remote_credentials(IceSession *session, const char *ufrag, const char *pwd);
/**
* get the remote ufrag of an ICE check list.
*
* @param cl A pointer to a check list
*
* This function is to be called once the remote credentials have been received via SDP.
*/
MS2_PUBLIC const char* ice_check_list_set_remote_ufrag(const IceCheckList *cl);
/**
* get the remote pwd of an ICE check list.
*
* @param cl A pointer to a check list
*
* This function is to be called once the remote credentials have been received via SDP.
*/
MS2_PUBLIC const char* ice_check_list_set_remote_pwd(const IceCheckList *cl);
/**
* Define the maximum number of connectivity checks that will be performed by the agent.
*
......
......@@ -500,6 +500,16 @@ void ice_check_list_set_remote_credentials(IceCheckList *cl, const char *ufrag,
ice_set_credentials(&cl->remote_ufrag, &cl->remote_pwd, ufrag, pwd);
}
const char* ice_check_list_get_remote_ufrag(const IceCheckList *cl)
{
return cl->remote_ufrag;
}
const char* ice_check_list_get_remote_pwd(const IceCheckList *cl)
{
return cl->remote_pwd;
}
bool_t ice_check_list_default_local_candidate(const IceCheckList *cl, const char **rtp_addr, int *rtp_port, const char **rtcp_addr, int *rtcp_port)
{
IceCandidate *candidate = NULL;
......
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