summaryrefslogtreecommitdiff
path: root/include/asterisk/data.h
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 /include/asterisk/data.h
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 'include/asterisk/data.h')
-rw-r--r--include/asterisk/data.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/data.h b/include/asterisk/data.h
index 3676b8df5..d6da1f7d6 100644
--- a/include/asterisk/data.h
+++ b/include/asterisk/data.h
@@ -360,7 +360,7 @@ struct ast_data_mapping_structure {
*/
int __ast_data_register(const char *path, const struct ast_data_handler *handler,
const char *registrar, struct ast_module *mod);
-#define ast_data_register(path, handler) __ast_data_register(path, handler, __FILE__, ast_module_info->self)
+#define ast_data_register(path, handler) __ast_data_register(path, handler, __FILE__, AST_MODULE_SELF)
#define ast_data_register_core(path, handler) __ast_data_register(path, handler, __FILE__, NULL)
/*!
@@ -376,7 +376,7 @@ int __ast_data_register(const char *path, const struct ast_data_handler *handler
int __ast_data_register_multiple(const struct ast_data_entry *data_entries,
size_t entries, const char *registrar, struct ast_module *mod);
#define ast_data_register_multiple(data_entries, entries) \
- __ast_data_register_multiple(data_entries, entries, __FILE__, ast_module_info->self)
+ __ast_data_register_multiple(data_entries, entries, __FILE__, AST_MODULE_SELF)
#define ast_data_register_multiple_core(data_entries, entries) \
__ast_data_register_multiple(data_entries, entries, __FILE__, NULL)