summaryrefslogtreecommitdiff
path: root/agent/agent.h
diff options
context:
space:
mode:
authorJakub Adam <jakub.adam@collabora.com>2019-02-25 11:30:10 +0100
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2019-05-09 01:14:37 +0000
commite78a492314e4577d33966434708e17eb9e2e52a2 (patch)
tree2e4607f399e7ba351cb4c95208517f7ca9283a2d /agent/agent.h
parent45524a730da88f567b7206bc4dee273ee1a332d0 (diff)
agent: add nice_agent_close_async() API
Asynchronously closes resources the agent has allocated on remote servers.
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index 688d784..c85ee5e 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -1659,6 +1659,21 @@ nice_agent_peer_candidate_gathering_done (
NiceAgent *agent,
guint stream_id);
+/**
+ * nice_agent_close_async:
+ * @agent: The #NiceAgent object
+ *
+ * Asynchronously closes resources the agent has allocated on remote servers.
+ * The agent will emit "closed" signal when the operation finishes.
+ *
+ * Calling this function before freeing the agent makes sure the allocated relay
+ * ports aren't left behind on TURN server but properly removed.
+ *
+ * Since: 0.1.16
+ */
+void
+nice_agent_close_async (NiceAgent *agent);
+
G_END_DECLS
#endif /* __LIBNICE_AGENT_H__ */