diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-06-16 11:50:32 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-06-16 11:50:32 -0500 |
commit | 2f684eb6a5db2b84145fd539f4112f59dffc4b43 (patch) | |
tree | 068383e08811f533b33c4c04ca67248b57038f12 /include | |
parent | 322a1c322227407b52160a3b11f8648ccd6ac16b (diff) | |
parent | 06265b8c8a7e38707c76b5ca257882223797e612 (diff) |
Merge "stream: Add ast_stream_topology_del_stream() and unit test."
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/stream.h | 19 |
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. |