diff options
author | Corey Farrell <git@cfware.com> | 2015-05-04 15:26:37 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2015-05-04 20:47:01 -0400 |
commit | a8bfa9e10445744581d18819c64729844ae837fb (patch) | |
tree | ea238e819c3440409df3027cd3c703394753c015 /include/asterisk/manager.h | |
parent | ce21776aae2866f3c611f172c4d38fb53e806dcf (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/manager.h')
-rw-r--r-- | include/asterisk/manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index b5ede545e..1ec1cbae3 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -180,10 +180,10 @@ struct manager_action { /*! \brief External routines may register/unregister manager callbacks this way * \note Use ast_manager_register2() to register with help text for new manager commands */ -#define ast_manager_register(action, authority, func, synopsis) ast_manager_register2(action, authority, func, ast_module_info->self, synopsis, NULL) +#define ast_manager_register(action, authority, func, synopsis) ast_manager_register2(action, authority, func, AST_MODULE_SELF, synopsis, NULL) /*! \brief Register a manager callback using XML documentation to describe the manager. */ -#define ast_manager_register_xml(action, authority, func) ast_manager_register2(action, authority, func, ast_module_info->self, NULL, NULL) +#define ast_manager_register_xml(action, authority, func) ast_manager_register2(action, authority, func, AST_MODULE_SELF, NULL, NULL) /*! * \brief Register a manager callback using XML documentation to describe the manager. |