Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
c95c57e2
Commit
c95c57e2
authored
Oct 05, 2014
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agent: Add function to retrieve the current component state
parent
8b5528a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
agent/agent.c
agent/agent.c
+17
-0
agent/agent.h
agent/agent.h
+18
-0
nice/libnice.sym
nice/libnice.sym
+1
-0
No files found.
agent/agent.c
View file @
c95c57e2
...
...
@@ -5866,3 +5866,20 @@ agent_socket_send (NiceSocket *sock, const NiceAddress *addr, gsize len,
return
ret
;
}
}
NiceComponentState
nice_agent_get_component_state
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
)
{
NiceComponentState
state
=
NICE_COMPONENT_STATE_FAILED
;
Component
*
component
;
agent_lock
();
if
(
agent_find_component
(
agent
,
stream_id
,
component_id
,
NULL
,
&
component
))
state
=
component
->
state
;
agent_unlock
();
return
state
;
}
agent/agent.h
View file @
c95c57e2
...
...
@@ -1487,6 +1487,24 @@ nice_agent_forget_relays (NiceAgent *agent,
guint
stream_id
,
guint
component_id
);
/**
* nice_agent_get_component_state:
* @agent: The #NiceAgent Object
* @stream_id: The ID of the stream
* @component_id: The ID of the component
*
* Retrieves the current state of a component.
*
* Returns: the #NiceComponentState of the component and
* %NICE_COMPONENT_STATE_FAILED if the component was invalid.
*
* Since: 0.1.7
*/
NiceComponentState
nice_agent_get_component_state
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
);
G_END_DECLS
#endif
/* _AGENT_H */
...
...
nice/libnice.sym
View file @
c95c57e2
...
...
@@ -27,6 +27,7 @@ nice_agent_gather_candidates
nice_agent_generate_local_candidate_sdp
nice_agent_generate_local_sdp
nice_agent_generate_local_stream_sdp
nice_agent_get_component_state
nice_agent_get_default_local_candidate
nice_agent_get_io_stream
nice_agent_get_local_candidates
...
...
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