From a8bfa9e10445744581d18819c64729844ae837fb Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Mon, 4 May 2015 15:26:37 -0400 Subject: 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 --- include/asterisk/bucket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/asterisk/bucket.h') diff --git a/include/asterisk/bucket.h b/include/asterisk/bucket.h index c07fb0cbd..da83759ce 100644 --- a/include/asterisk/bucket.h +++ b/include/asterisk/bucket.h @@ -134,7 +134,7 @@ int ast_bucket_init(void); * * \note Once a scheme has been registered it can not be unregistered */ -#define ast_bucket_scheme_register(name, bucket, file, create_cb, destroy_cb) __ast_bucket_scheme_register(name, bucket, file, create_cb, destroy_cb, ast_module_info ? ast_module_info->self : NULL) +#define ast_bucket_scheme_register(name, bucket, file, create_cb, destroy_cb) __ast_bucket_scheme_register(name, bucket, file, create_cb, destroy_cb, AST_MODULE_SELF) /*! * \brief Register support for a specific scheme -- cgit v1.2.3