diff options
Diffstat (limited to 'res/res_pjsip/include/res_pjsip_private.h')
-rw-r--r-- | res/res_pjsip/include/res_pjsip_private.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h index c3e6c2192..0ee62529f 100644 --- a/res/res_pjsip/include/res_pjsip_private.h +++ b/res/res_pjsip/include/res_pjsip_private.h @@ -8,13 +8,17 @@ #ifndef RES_PJSIP_PRIVATE_H_ #define RES_PJSIP_PRIVATE_H_ +#include "asterisk/module.h" +#include "asterisk/stasis_channels.h" +#include "asterisk/stasis_endpoints.h" + struct ao2_container; struct ast_threadpool_options; /*! * \brief Initialize the configuration for res_pjsip */ -int ast_res_pjsip_initialize_configuration(void); +int ast_res_pjsip_initialize_configuration(const struct ast_module_info *ast_module_info); /*! * \brief Annihilate the configuration objects @@ -82,4 +86,23 @@ void ast_res_pjsip_cleanup_options_handling(void); */ void sip_get_threadpool_options(struct ast_threadpool_options *threadpool_options); +/*! + * \brief Function pointer for channel snapshot callbacks. + */ +typedef int (*on_channel_snapshot_t)( + const struct ast_channel_snapshot *snapshot, int last, void *arg); + +/*! + * \brief For every channel snapshot on an endpoint snapshot call the given + * 'on_channel_snapshot' handler. + * + * \param endpoint_snapshot snapshot of an endpoint + * \param on_channel_snapshot callback for each channel snapshot + * \param arg user data passed to handler + * \retval 0 Success, non-zero on failure + */ +int ast_sip_for_each_channel_snapshot(const struct ast_endpoint_snapshot *endpoint_snapshot, + on_channel_snapshot_t on_channel_snapshot, + void *arg); + #endif /* RES_PJSIP_PRIVATE_H_ */ |