diff options
author | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-03-15 12:27:00 +0000 |
---|---|---|
committer | Dafydd Harries <dafydd.harries@collabora.co.uk> | 2007-03-15 12:27:00 +0000 |
commit | f80aa52118d2e76c9bc8f7f308765a1346c98629 (patch) | |
tree | a7452679d78803854d3c6d43ad0ffdaf5bc881bd /agent/stream.c | |
parent | eeef472d6466febdc6f4f490f796ad43d0312ac6 (diff) | |
download | libnice-f80aa52118d2e76c9bc8f7f308765a1346c98629.tar.gz |
split out stream/component code into separate files
darcs-hash:20070315122751-c9803-0ac60fd10fd6af57feb61733abecaca6425acfbb.gz
Diffstat (limited to 'agent/stream.c')
-rw-r--r-- | agent/stream.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/agent/stream.c b/agent/stream.c new file mode 100644 index 0000000..eec5bf7 --- /dev/null +++ b/agent/stream.c @@ -0,0 +1,22 @@ + +#include "stream.h" + +Stream * +stream_new (void) +{ + Stream *stream; + + stream = g_slice_new0 (Stream); + stream->component = component_new (COMPONENT_TYPE_RTP); + return stream; +} + + +void +stream_free (Stream *stream) +{ + component_free (stream->component); + g_slice_free (Stream, stream); +} + + |