summaryrefslogtreecommitdiff
path: root/include/asterisk/stream.h
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2017-06-09 19:03:05 -0500
committerRichard Mudgett <rmudgett@digium.com>2017-06-15 09:42:15 -0500
commit06265b8c8a7e38707c76b5ca257882223797e612 (patch)
treeff5ccc412f863357fbff7e7d306a6f59e4410534 /include/asterisk/stream.h
parent15c04db3bd976edc60393f6261c60ca779a1f8d2 (diff)
stream: Add ast_stream_topology_del_stream() and unit test.
Change-Id: If07e3c716a2e3ff85ae905c17572ea6ec3cdc1f9
Diffstat (limited to 'include/asterisk/stream.h')
-rw-r--r--include/asterisk/stream.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/stream.h b/include/asterisk/stream.h
index fcee3e47b..14d624fb2 100644
--- a/include/asterisk/stream.h
+++ b/include/asterisk/stream.h
@@ -359,6 +359,25 @@ int ast_stream_topology_set_stream(struct ast_stream_topology *topology,
unsigned int position, struct ast_stream *stream);
/*!
+ * \brief Delete a specified stream from the given topology.
+ * \since 15.0.0
+ *
+ * \param topology The topology of streams.
+ * \param position The topology position to delete.
+ *
+ * \note Deleting a stream will completely remove it from the topology
+ * as if it never existed in it. i.e., Any following stream positions
+ * will shift down so there is no gap.
+ *
+ * \retval 0 on success.
+ * \retval -1 on failure.
+ *
+ * \return Nothing
+ */
+int ast_stream_topology_del_stream(struct ast_stream_topology *topology,
+ unsigned int position);
+
+/*!
* \brief A helper function that, given a format capabilities structure,
* creates a topology and separates the media types in format_cap into
* separate streams.