summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Adam <jakub.adam@collabora.com>2019-02-25 11:23:22 +0100
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2019-05-09 01:14:37 +0000
commit45524a730da88f567b7206bc4dee273ee1a332d0 (patch)
tree675976a91556c78855721eb6da318132b34dcc64
parent0556ec49f497b1046c74a9b1e7fdb0bd4b501372 (diff)
downloadlibnice-45524a730da88f567b7206bc4dee273ee1a332d0.tar.gz
agent: Add "closed" signal
-rw-r--r--agent/agent.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 47e7116..30684bb 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -136,6 +136,7 @@ enum
SIGNAL_NEW_SELECTED_PAIR_FULL,
SIGNAL_NEW_CANDIDATE_FULL,
SIGNAL_NEW_REMOTE_CANDIDATE_FULL,
+ SIGNAL_CLOSED,
N_SIGNALS,
};
@@ -1140,6 +1141,28 @@ nice_agent_class_init (NiceAgentClass *klass)
NICE_TYPE_CANDIDATE,
G_TYPE_INVALID);
+ /**
+ * NiceAgent::closed
+ * @agent: The #NiceAgent object
+ *
+ * This signal is fired when the agent finishes freeing resources it
+ * previously allocated on remote servers (e.g. relay ports) and is ready
+ * to be disposed.
+ *
+ * Since: 0.1.16
+ */
+ signals[SIGNAL_CLOSED] =
+ g_signal_new (
+ "closed",
+ G_OBJECT_CLASS_TYPE (klass),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL,
+ NULL,
+ NULL,
+ G_TYPE_NONE,
+ 0);
+
/* Init debug options depending on env variables */
nice_debug_init ();
}