diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/bridge_features.h | 2 | ||||
-rw-r--r-- | include/asterisk/bridge_internal.h | 1 | ||||
-rw-r--r-- | include/asterisk/stasis_app.h | 5 | ||||
-rw-r--r-- | include/asterisk/stasis_app_impl.h | 10 |
4 files changed, 14 insertions, 4 deletions
diff --git a/include/asterisk/bridge_features.h b/include/asterisk/bridge_features.h index 7590d8af8..ba3cee4e9 100644 --- a/include/asterisk/bridge_features.h +++ b/include/asterisk/bridge_features.h @@ -25,6 +25,8 @@ #ifndef _ASTERISK_BRIDGING_FEATURES_H #define _ASTERISK_BRIDGING_FEATURES_H +#include "asterisk/channel.h" + #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif diff --git a/include/asterisk/bridge_internal.h b/include/asterisk/bridge_internal.h index 18ef56e96..4ff2fd2aa 100644 --- a/include/asterisk/bridge_internal.h +++ b/include/asterisk/bridge_internal.h @@ -36,6 +36,7 @@ struct ast_bridge; struct ast_bridge_channel; +struct ast_bridge_methods; /*! * \brief Register the new bridge with the system. diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 87b4bdb41..d0ea01080 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -348,11 +348,8 @@ void stasis_app_control_add_channel_to_bridge( * * \param control Control whose channel should be removed from the bridge * \param bridge Pointer to the bridge - * - * \retval non-zero on failure - * \retval zero on success */ -int stasis_app_control_remove_channel_from_bridge( +void stasis_app_control_remove_channel_from_bridge( struct stasis_app_control *control, struct ast_bridge *bridge); /*! diff --git a/include/asterisk/stasis_app_impl.h b/include/asterisk/stasis_app_impl.h index d4b467756..e9b93a84a 100644 --- a/include/asterisk/stasis_app_impl.h +++ b/include/asterisk/stasis_app_impl.h @@ -85,4 +85,14 @@ void *stasis_app_send_command(struct stasis_app_control *control, int stasis_app_send_command_async(struct stasis_app_control *control, stasis_app_command_cb command, void *data); +/*! + * \since 12 + * \brief Gets the bridge currently associated with a control object. + * + * \param control Control object for the channel to query. + * \return Associated \ref ast_bridge. + * \return \c NULL if not associated with a bridge. + */ +struct ast_bridge *stasis_app_get_bridge(struct stasis_app_control *control); + #endif /* _ASTERISK_RES_STASIS_H */ |