mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +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:
@@ -116,7 +116,7 @@ int __ast_codec_register(struct ast_codec *codec, struct ast_module *mod);
|
||||
* \retval 0 success
|
||||
* \retval -1 failure
|
||||
*/
|
||||
#define ast_codec_register(codec) __ast_codec_register(codec, ast_module_info->self)
|
||||
#define ast_codec_register(codec) __ast_codec_register(codec, AST_MODULE_SELF)
|
||||
|
||||
/*!
|
||||
* \brief Retrieve a codec given a name, type, and sample rate
|
||||
|
||||
Reference in New Issue
Block a user