summaryrefslogtreecommitdiff
path: root/agent/agent.h
diff options
context:
space:
mode:
Diffstat (limited to 'agent/agent.h')
-rw-r--r--agent/agent.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h
index ddaa652..f7a2313 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -592,6 +592,33 @@ nice_agent_set_remote_credentials (
const gchar *ufrag, const gchar *pwd);
+/**
+ * nice_agent_set_local_credentials:
+ * @agent: The #NiceAgent Object
+ * @stream_id: The ID of the stream
+ * @ufrag: nul-terminated string containing an ICE username fragment
+ * (length must be between 22 and 256 chars)
+ * @pwd: nul-terminated string containing an ICE password
+ * (length must be between 4 and 256 chars)
+ *
+ * Sets the local credentials for stream @stream_id.
+ *
+ <note>
+ <para>
+ This is only effective before ICE negotiation has started.
+ </para>
+ </note>
+ *
+ * Since 0.1.11
+ * Returns: %TRUE on success, %FALSE on error.
+ */
+gboolean
+nice_agent_set_local_credentials (
+ NiceAgent *agent,
+ guint stream_id,
+ const gchar *ufrag,
+ const gchar *pwd);
+
/**
* nice_agent_get_local_credentials: