diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-06 19:11:35 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-12-06 19:11:35 +0000 |
commit | f1912af11e18b49a7747fa544f42e770444c45a2 (patch) | |
tree | 9c57481426201ad97efce69fe0d9338fb3166570 /include | |
parent | bc5b236212cc8d348f60cf0b43ea05b67989f191 (diff) |
Add a new module flag to indicate that a build sum is present. Modules built
against older Asterisk 1.4 headers will now load properly with just a warning
indicating that they are old and may cause problems.
(patch by paravoid)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@91501 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index b867f6517..4c1e40b1d 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -179,6 +179,7 @@ struct ast_module_user_list; enum ast_module_flags { AST_MODFLAG_DEFAULT = 0, AST_MODFLAG_GLOBAL_SYMBOLS = (1 << 0), + AST_MODFLAG_BUILDSUM = (1 << 1), }; struct ast_module_info { @@ -233,7 +234,7 @@ void ast_module_unref(struct ast_module *); AST_MODULE, \ desc, \ keystr, \ - flags_to_set, \ + flags_to_set | AST_MODFLAG_BUILDSUM, \ AST_BUILDOPT_SUM, \ }; \ static void __attribute__ ((constructor)) __reg_module(void) \ @@ -261,7 +262,7 @@ const static __attribute__((unused)) struct ast_module_info *ast_module_info; #define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...) \ static struct ast_module_info __mod_info = { \ .name = AST_MODULE, \ - .flags = flags_to_set, \ + .flags = flags_to_set | AST_MODFLAG_BUILDSUM, \ .description = desc, \ .key = keystr, \ .buildopt_sum = AST_BUILDOPT_SUM, \ |