Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
f63d4ac5
Commit
f63d4ac5
authored
Jul 18, 2012
by
Ghislain MARY
Browse files
Add accessor to get an ICE candidate type as a string.
parent
2ce5e434
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
include/mediastreamer2/ice.h
include/mediastreamer2/ice.h
+8
-0
src/ice.c
src/ice.c
+9
-0
No files found.
include/mediastreamer2/ice.h
View file @
f63d4ac5
...
...
@@ -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.
*
...
...
src/ice.c
View file @
f63d4ac5
...
...
@@ -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 *
*****************************************************************************/
...
...
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