summaryrefslogtreecommitdiff
path: root/agent/agent-priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'agent/agent-priv.h')
-rw-r--r--agent/agent-priv.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/agent/agent-priv.h b/agent/agent-priv.h
index 7269be0..bf67eb5 100644
--- a/agent/agent-priv.h
+++ b/agent/agent-priv.h
@@ -138,6 +138,8 @@ struct _NiceAgent
{
GObject parent; /* gobject pointer */
+ GMutex agent_mutex; /* Mutex used for thread-safe lib */
+
gboolean full_mode; /* property: full-mode */
gchar *stun_server_ip; /* property: STUN server IP */
guint stun_server_port; /* property: STUN server port */
@@ -208,8 +210,8 @@ NiceStream *agent_find_stream (NiceAgent *agent, guint stream_id);
void agent_gathering_done (NiceAgent *agent);
void agent_signal_gathering_done (NiceAgent *agent);
-void agent_lock (void);
-void agent_unlock (void);
+void agent_lock (NiceAgent *agent);
+void agent_unlock (NiceAgent *agent);
void agent_unlock_and_emit (NiceAgent *agent);
void agent_signal_new_selected_pair (
@@ -235,8 +237,14 @@ void agent_signal_initial_binding_request_received (NiceAgent *agent, NiceStream
guint64 agent_candidate_pair_priority (NiceAgent *agent, NiceCandidate *local, NiceCandidate *remote);
+typedef gboolean (*NiceTimeoutLockedCallback)(NiceAgent *agent,
+ gpointer user_data);
void agent_timeout_add_with_context (NiceAgent *agent, GSource **out,
- const gchar *name, guint interval, GSourceFunc function, gpointer data);
+ const gchar *name, guint interval, NiceTimeoutLockedCallback function,
+ gpointer data);
+void agent_timeout_add_seconds_with_context (NiceAgent *agent, GSource **out,
+ const gchar *name, guint interval, NiceTimeoutLockedCallback function,
+ gpointer data);
StunUsageIceCompatibility agent_to_ice_compatibility (NiceAgent *agent);
StunUsageTurnCompatibility agent_to_turn_compatibility (NiceAgent *agent);