Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Olivier Crête
libnice
Commits
d4a7c37c
Commit
d4a7c37c
authored
Apr 15, 2014
by
Guillaume Desmottes
Committed by
Olivier Crête
Apr 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add nice_agent_forget_relays()
parent
69749bad
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
0 deletions
+48
-0
agent/agent.c
agent/agent.c
+25
-0
agent/agent.h
agent/agent.h
+20
-0
docs/reference/libnice/libnice-sections.txt
docs/reference/libnice/libnice-sections.txt
+1
-0
nice/libnice.sym
nice/libnice.sym
+1
-0
win32/vs9/libnice.def
win32/vs9/libnice.def
+1
-0
No files found.
agent/agent.c
View file @
d4a7c37c
...
...
@@ -4817,3 +4817,28 @@ nice_agent_get_io_stream (NiceAgent *agent, guint stream_id,
return
iostream
;
}
NICEAPI_EXPORT
gboolean
nice_agent_forget_relays
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
)
{
Component
*
component
;
gboolean
ret
=
TRUE
;
g_return_val_if_fail
(
NICE_IS_AGENT
(
agent
),
FALSE
);
g_return_val_if_fail
(
stream_id
>=
1
,
FALSE
);
g_return_val_if_fail
(
component_id
>=
1
,
FALSE
);
agent_lock
();
if
(
!
agent_find_component
(
agent
,
stream_id
,
component_id
,
NULL
,
&
component
))
{
ret
=
FALSE
;
goto
done
;
}
component_clean_turn_servers
(
component
);
done:
agent_unlock_and_emit
(
agent
);
return
ret
;
}
agent/agent.h
View file @
d4a7c37c
...
...
@@ -1447,6 +1447,26 @@ nice_agent_get_io_stream (
const
gchar
*
nice_component_state_to_string
(
NiceComponentState
state
);
/**
* nice_agent_forget_relays:
* @agent: The #NiceAgent Object
* @stream_id: The ID of the stream
* @component_id: The ID of the component
*
* Forget all the relay servers previously added using
* nice_agent_set_relay_info(). Currently connected streams will keep
* using the relay as long as they have not been restarted and haven't
* succesfully negotiated a different path.
*
* Returns: %FALSE if the component could not be found, %TRUE otherwise
*
* Since: 0.1.6
*/
gboolean
nice_agent_forget_relays
(
NiceAgent
*
agent
,
guint
stream_id
,
guint
component_id
);
G_END_DECLS
#endif
/* _AGENT_H */
...
...
docs/reference/libnice/libnice-sections.txt
View file @
d4a7c37c
...
...
@@ -17,6 +17,7 @@ nice_agent_set_port_range
nice_agent_add_stream
nice_agent_remove_stream
nice_agent_set_relay_info
nice_agent_forget_relays
nice_agent_gather_candidates
nice_agent_set_remote_credentials
nice_agent_get_local_credentials
...
...
nice/libnice.sym
View file @
d4a7c37c
...
...
@@ -21,6 +21,7 @@ nice_agent_recv_messages
nice_agent_recv_nonblocking
nice_agent_recv_messages_nonblocking
nice_agent_attach_recv
nice_agent_forget_relays
nice_agent_gather_candidates
nice_agent_generate_local_candidate_sdp
nice_agent_generate_local_sdp
...
...
win32/vs9/libnice.def
View file @
d4a7c37c
...
...
@@ -21,6 +21,7 @@ nice_address_to_string
nice_agent_add_local_address
nice_agent_add_stream
nice_agent_attach_recv
nice_agent_forget_relays
nice_agent_gather_candidates
nice_agent_generate_local_candidate_sdp
nice_agent_generate_local_sdp
...
...
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