mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
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
This commit is contained in:
@@ -584,7 +584,7 @@ int ast_vm_is_registered(void);
|
||||
int __ast_vm_register(const struct ast_vm_functions *vm_table, struct ast_module *module);
|
||||
|
||||
/*! \brief See \ref __ast_vm_register() */
|
||||
#define ast_vm_register(vm_table) __ast_vm_register(vm_table, ast_module_info ? ast_module_info->self : NULL)
|
||||
#define ast_vm_register(vm_table) __ast_vm_register(vm_table, AST_MODULE_SELF)
|
||||
|
||||
/*!
|
||||
* \brief Unregister the specified voicemail provider
|
||||
@@ -652,7 +652,7 @@ int ast_vm_greeter_is_registered(void);
|
||||
int __ast_vm_greeter_register(const struct ast_vm_greeter_functions *vm_table, struct ast_module *module);
|
||||
|
||||
/*! \brief See \ref __ast_vm_greeter_register() */
|
||||
#define ast_vm_greeter_register(vm_table) __ast_vm_greeter_register(vm_table, ast_module_info ? ast_module_info->self : NULL)
|
||||
#define ast_vm_greeter_register(vm_table) __ast_vm_greeter_register(vm_table, AST_MODULE_SELF)
|
||||
|
||||
/*!
|
||||
* \brief Unregister the specified voicemail greeter provider
|
||||
|
Reference in New Issue
Block a user