diff options
author | Joshua Colp <jcolp@digium.com> | 2013-07-08 19:19:55 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2013-07-08 19:19:55 +0000 |
commit | 7c044acbd90640321db8b78ed5a3b0ab8bc7844b (patch) | |
tree | 18b0f1aeee1782b3ef22ba3d5c62c773fc9c346d /include/asterisk/channel.h | |
parent | b698d80d4b90c6ae51285175a39d1b2b777afd00 (diff) |
Refactor operations to access the stasis cache instead of objects directly when retrieving information.
(closes issue ASTERISK-21883)
Review: https://reviewboard.asterisk.org/r/2645/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index a5f521004..bc8358d44 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1420,39 +1420,6 @@ void ast_channel_unregister(const struct ast_channel_tech *tech); */ const struct ast_channel_tech *ast_get_channel_tech(const char *name); -#ifdef CHANNEL_TRACE -/*! - * \brief Update the context backtrace if tracing is enabled - * \return Returns 0 on success, -1 on failure - */ -int ast_channel_trace_update(struct ast_channel *chan); - -/*! - * \brief Enable context tracing in the channel - * \return Returns 0 on success, -1 on failure - */ -int ast_channel_trace_enable(struct ast_channel *chan); - -/*! - * \brief Disable context tracing in the channel. - * \note Does not remove current trace entries - * \return Returns 0 on success, -1 on failure - */ -int ast_channel_trace_disable(struct ast_channel *chan); - -/*! - * \brief Whether or not context tracing is enabled - * \return Returns -1 when the trace is enabled. 0 if not. - */ -int ast_channel_trace_is_enabled(struct ast_channel *chan); - -/*! - * \brief Put the channel backtrace in a string - * \return Returns the amount of lines in the backtrace. -1 on error. - */ -int ast_channel_trace_serialize(struct ast_channel *chan, struct ast_str **out); -#endif - /*! * \brief Hang up a channel * \note Absolutely _NO_ channel locks should be held before calling this function. @@ -4230,6 +4197,18 @@ struct varshead *ast_channel_get_manager_vars(struct ast_channel *chan); /*! * \since 12 + * \brief Gets the variables for a given channel, as set using pbx_builtin_setvar_helper(). + * + * The returned variable list is an AO2 object, so ao2_cleanup() to free it. + * + * \param chan Channel to get variables for + * \return List of channel variables. + * \return \c NULL on error + */ +struct varshead *ast_channel_get_vars(struct ast_channel *chan); + +/*! + * \since 12 * \brief A topic which publishes the events for a particular channel. * * If the given \a chan is \c NULL, ast_channel_topic_all() is returned. |