diff options
author | George Joseph <gjoseph@digium.com> | 2017-06-19 09:27:43 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-06-19 09:27:43 -0500 |
commit | 3f5bf287a20b7c613d0ff9db0e9c709fd639ccf1 (patch) | |
tree | 7d7d4501f560ae149cea5f55510860f79c397226 /include | |
parent | 317234bdc69f7ae179d962fabd82f2916e653a30 (diff) | |
parent | e563a1920e35b3986462dceadde5e162628adeb6 (diff) |
Merge "SDP: Add get/set option calls for RTP sched context per type."
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/sdp_options.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/asterisk/sdp_options.h b/include/asterisk/sdp_options.h index f49b79483..b8c1bbd56 100644 --- a/include/asterisk/sdp_options.h +++ b/include/asterisk/sdp_options.h @@ -522,4 +522,29 @@ void ast_sdp_options_set_ssrc(struct ast_sdp_options *options, unsigned int ssrc */ unsigned int ast_sdp_options_get_ssrc(const struct ast_sdp_options *options); +/*! + * \brief Set the SDP options scheduler context used to create new streams of the type. + * \since 15.0.0 + * + * \param options SDP Options + * \param type Media type the scheduler context is for. + * \param sched Scheduler context to use for the specified media type. + * + * \return Nothing + */ +void ast_sdp_options_set_sched_type(struct ast_sdp_options *options, + enum ast_media_type type, struct ast_sched_context *sched); + +/*! + * \brief Get the SDP options scheduler context used to create new streams of the type. + * \since 15.0.0 + * + * \param options SDP Options + * \param type Media type the format cap represents. + * + * \return The stored scheduler context to create new streams of the type. + */ +struct ast_sched_context *ast_sdp_options_get_sched_type(const struct ast_sdp_options *options, + enum ast_media_type type); + #endif /* _ASTERISK_SDP_OPTIONS_H */ |