diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2014-08-26 09:30:26 +0100 |
---|---|---|
committer | Olivier Crête <olivier.crete@collabora.com> | 2014-08-27 15:28:20 -0400 |
commit | 56e04b56c394f992bccbd71a38b8aec9c5d0b518 (patch) | |
tree | d195c476ffabe8c4ec958d372478d33ccc957431 /agent/stream.h | |
parent | c61f3780d1367e80f128972dc6ccd0f65a59ec64 (diff) | |
download | libnice-56e04b56c394f992bccbd71a38b8aec9c5d0b518.tar.gz |
agent: Split component_free() into component_[close|free]()
Closing a component and freeing it are slightly conceptually different.
As it happens, freeing it can result in the disposal of the component's
NiceIOStream, which requires the agent lock to be released — but closing
the rest of the Component requires the agent lock to be held. Splitting
the function up simplifies locking handling in other parts of the code
(see next commit).
Diffstat (limited to 'agent/stream.h')
-rw-r--r-- | agent/stream.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/stream.h b/agent/stream.h index 9dd08ac..c0ec9e4 100644 --- a/agent/stream.h +++ b/agent/stream.h @@ -81,6 +81,9 @@ Stream * stream_new (guint n_components, NiceAgent *agent); void +stream_close (Stream *stream); + +void stream_free (Stream *stream); gboolean |