diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-09-19 08:57:53 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-09-19 08:57:53 +0100 |
commit | e5fbdbe605b0acc74e259a1618e2fe2304becade (patch) | |
tree | cea9c3ee22cf663b2f778ef977d15fb581afa008 /agent/agent-priv.h | |
parent | b80bc3a17fd78f8b665509cb193e876b2d16497c (diff) | |
download | libnice-e5fbdbe605b0acc74e259a1618e2fe2304becade.tar.gz |
agent: Add names to timer GSources
Modify the agent_timeout_add_with_context() utility function to
automatically add names to the timer GSources it creates. This makes
them a little easier to identify when debugging.
Diffstat (limited to 'agent/agent-priv.h')
-rw-r--r-- | agent/agent-priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/agent/agent-priv.h b/agent/agent-priv.h index eab737c..0423aa8 100644 --- a/agent/agent-priv.h +++ b/agent/agent-priv.h @@ -206,7 +206,8 @@ void agent_signal_initial_binding_request_received (NiceAgent *agent, Stream *st guint64 agent_candidate_pair_priority (NiceAgent *agent, NiceCandidate *local, NiceCandidate *remote); -GSource *agent_timeout_add_with_context (NiceAgent *agent, guint interval, GSourceFunc function, gpointer data); +GSource *agent_timeout_add_with_context (NiceAgent *agent, const gchar *name, + guint interval, GSourceFunc function, gpointer data); StunUsageIceCompatibility agent_to_ice_compatibility (NiceAgent *agent); StunUsageTurnCompatibility agent_to_turn_compatibility (NiceAgent *agent); |