summaryrefslogtreecommitdiff
path: root/include/asterisk/stream.h
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-02-13 10:50:47 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-02-14 14:09:37 -0700
commitbf2f091bbb2b099d6ca87e5fdd76efe45a209eb7 (patch)
tree3ebbbb4a3a9235f221bb0df50587e9873905b5f9 /include/asterisk/stream.h
parent6c4657e28ebf9cbe6d952750142d9631ff600657 (diff)
stream: Add stream topology to channel
Adds topology set and get to channel. ASTERISK-26790 Change-Id: Ic379ea82a9486fc79dbd8c4d95c29fa3b46424f4
Diffstat (limited to 'include/asterisk/stream.h')
-rw-r--r--include/asterisk/stream.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/stream.h b/include/asterisk/stream.h
index cffe6ea4c..9fb466013 100644
--- a/include/asterisk/stream.h
+++ b/include/asterisk/stream.h
@@ -316,4 +316,19 @@ int ast_stream_topology_set_stream(struct ast_stream_topology *topology,
struct ast_stream_topology *ast_stream_topology_create_from_format_cap(
struct ast_format_cap *cap);
+/*!
+ * \brief Gets the first stream of a specific type from the topology
+ *
+ * \param topology The topology of streams
+ * \param type The media type
+ *
+ * \retval non-NULL success
+ * \retval NULL failure
+ *
+ * \since 15
+ */
+struct ast_stream *ast_stream_topology_get_first_stream_by_type(
+ const struct ast_stream_topology *topology,
+ enum ast_media_type type);
+
#endif /* _AST_STREAM_H */