diff options
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index f6cdd4e62..282230a02 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -4186,6 +4186,21 @@ struct varshead *ast_channel_get_vars(struct ast_channel *chan); struct stasis_topic *ast_channel_topic(struct ast_channel *chan); /*! + * \since 12 + * \brief A topic which publishes the events for a particular channel. + * + * \ref ast_channel_snapshot messages are replaced with \ref stasis_cache_update + * + * If the given \a chan is \c NULL, ast_channel_topic_all_cached() is returned. + * + * \param chan Channel, or \c NULL. + * + * \retval Topic for channel's events. + * \retval ast_channel_topic_all() if \a chan is \c NULL. + */ +struct stasis_topic *ast_channel_topic_cached(struct ast_channel *chan); + +/*! * \brief Get the bridge associated with a channel * \since 12.0.0 * |