diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2013-12-12 11:49:09 +0000 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-01-31 01:48:59 -0500 |
commit | 11f04d6cbd3772f4fafc503b477de6517bab1e68 (patch) | |
tree | f7bfead39d671372a4de98f68edd387237cd71f4 /agent/agent.h | |
parent | 949f979a98498d8ceab2a70696f1dbdc9ab96b7f (diff) | |
download | libnice-11f04d6cbd3772f4fafc503b477de6517bab1e68.tar.gz |
agent: Add nice_agent_build_io_stream() API
This allows creation of a NiceIOStream from an existing NiceAgent
instance.
Diffstat (limited to 'agent/agent.h')
-rw-r--r-- | agent/agent.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index d888148..f7e808b 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -1113,6 +1113,28 @@ nice_agent_parse_remote_candidate_sdp ( guint stream_id, const gchar *sdp); +/** + * nice_agent_build_io_stream: + * @agent: A #NiceAgent + * @stream_id: The ID of the stream to wrap + * @component_id: The ID of the component to wrap + * + * Build a #GIOStream wrapper around the given stream and component in + * @agent. The I/O stream will be valid for as long as @stream_id is valid. + * + * This function may only be called on reliable #NiceAgents. It is an error to + * try and create an I/O stream wrapper for an unreliable stream. + * + * Returns: (transfer full): A new #GIOStream. + * + * Since: 0.1.5 + */ +GIOStream * +nice_agent_build_io_stream ( + NiceAgent *agent, + guint stream_id, + guint component_id); + G_END_DECLS #endif /* _AGENT_H */ |