summaryrefslogtreecommitdiff
path: root/channels/dahdi
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2015-05-04 15:26:37 -0400
committerCorey Farrell <git@cfware.com>2015-05-04 20:47:01 -0400
commita8bfa9e10445744581d18819c64729844ae837fb (patch)
treeea238e819c3440409df3027cd3c703394753c015 /channels/dahdi
parentce21776aae2866f3c611f172c4d38fb53e806dcf (diff)
Modules: Make ast_module_info->self available to auxiliary sources.
ast_module_info->self is often needed to register items with the core. Many modules have ad-hoc code to make this pointer available to auxiliary sources. This change updates the module build process to make the needed information available to all sources in a module. ASTERISK-25056 #close Reported by: Corey Farrell Change-Id: I18c8cd58fbcb1b708425f6757becaeca9fa91815
Diffstat (limited to 'channels/dahdi')
-rw-r--r--channels/dahdi/bridge_native_dahdi.c4
-rw-r--r--channels/dahdi/bridge_native_dahdi.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/channels/dahdi/bridge_native_dahdi.c b/channels/dahdi/bridge_native_dahdi.c
index d67cb5c43..234228bd5 100644
--- a/channels/dahdi/bridge_native_dahdi.c
+++ b/channels/dahdi/bridge_native_dahdi.c
@@ -903,11 +903,11 @@ void dahdi_native_unload(void)
* \retval 0 on success.
* \retval -1 on error.
*/
-int dahdi_native_load(struct ast_module *mod, const struct ast_channel_tech *tech)
+int dahdi_native_load(const struct ast_channel_tech *tech)
{
dahdi_tech = tech;
- if (__ast_bridge_technology_register(&native_bridge, mod)) {
+ if (ast_bridge_technology_register(&native_bridge)) {
dahdi_native_unload();
return -1;
}
diff --git a/channels/dahdi/bridge_native_dahdi.h b/channels/dahdi/bridge_native_dahdi.h
index 91e8d16b7..6362a6ff5 100644
--- a/channels/dahdi/bridge_native_dahdi.h
+++ b/channels/dahdi/bridge_native_dahdi.h
@@ -36,7 +36,7 @@ extern "C" {
/* ------------------------------------------------------------------- */
void dahdi_native_unload(void);
-int dahdi_native_load(struct ast_module *mod, const struct ast_channel_tech *tech);
+int dahdi_native_load(const struct ast_channel_tech *tech);
/* ------------------------------------------------------------------- */