Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
3490d9f4
Commit
3490d9f4
authored
Jul 23, 2012
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add accessor to get ICE session state.
parent
b69d0fae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
ice.h
include/mediastreamer2/ice.h
+9
-1
ice.c
src/ice.c
+6
-1
No files found.
include/mediastreamer2/ice.h
View file @
3490d9f4
...
...
@@ -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.
...
...
src/ice.c
View file @
3490d9f4
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment