Remove redundant module checks and references.

This removes references that are no longer needed due to automatic
references created by module dependencies.

In addition this removes most calls to ast_module_check as they were
checking modules which are listed as dependencies.

Change-Id: I332a6e8383d4c72c8e89d988a184ab8320c4872e
This commit is contained in:
Corey Farrell
2017-12-29 03:57:17 -05:00
parent 7ce34f4e6a
commit 527cf5a570
103 changed files with 143 additions and 760 deletions

View File

@@ -46,8 +46,8 @@
* functions.
*
* Since module unload order is based on reference counting, any module that
* uses the API defined in this file must call stasis_app_ref() when loaded,
* and stasis_app_unref() when unloaded.
* uses the API defined in this file must list "res_stasis" in the requires
* field.
*/
#include "asterisk/channel.h"
@@ -228,18 +228,6 @@ void stasis_app_register_event_source(struct stasis_app_event_source *obj);
*/
void stasis_app_register_event_sources(void);
/*!
* \brief Checks to see if the given object is a core event source
*
* \note core event sources are currently only endpoint, bridge, and channel.
*
* \param obj event source object to check
*
* \return non-zero if core event source, otherwise 0 (false)
*/
int stasis_app_is_core_event_source(struct stasis_app_event_source *obj);
/*!
* \brief Unregister an application event source.
*
@@ -849,20 +837,6 @@ struct ast_bridge *stasis_app_get_bridge(struct stasis_app_control *control);
*/
void stasis_app_bridge_destroy(const char *bridge_id);
/*!
* \brief Increment the res_stasis reference count.
*
* This ensures graceful shutdown happens in the proper order.
*/
void stasis_app_ref(void);
/*!
* \brief Decrement the res_stasis reference count.
*
* This ensures graceful shutdown happens in the proper order.
*/
void stasis_app_unref(void);
/*!
* \brief Get the Stasis message sanitizer for app_stasis applications
*