diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-20 19:12:52 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-20 19:12:52 +0000 |
commit | feb6455c27b594d3da0dd96fe5c519a49c04c337 (patch) | |
tree | af59f272fdab5c0ecb7b1dc1e2b348ff25f3d2bb /include | |
parent | e4f591091a1c38d9c4eb6e272d21e7c37e7221aa (diff) |
bring back compile-option checking when loading modules, only this time use a string-based storage and comparison mechanism because it is easier to support on other platforms
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89461 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/module.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 7f14df7f9..7ea89fc36 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -203,6 +203,7 @@ struct ast_module_info { const char *key; unsigned int flags; + const char buildopt_sum[33]; /* The value of AST_BUILDOPT_SUM when this module was compiled */ }; void ast_module_register(const struct ast_module_info *); @@ -229,7 +230,8 @@ void ast_module_unref(struct ast_module *); AST_MODULE, \ desc, \ keystr, \ - flags_to_set \ + flags_to_set, \ + AST_BUILDOPT_SUM, \ }; \ static void __attribute__ ((constructor)) __reg_module(void) \ { \ @@ -259,6 +261,7 @@ const static __attribute__((unused)) struct ast_module_info *ast_module_info; .flags = flags_to_set, \ .description = desc, \ .key = keystr, \ + .buildopt_sum = AST_BUILDOPT_SUM, \ fields \ }; \ static void __attribute__ ((constructor)) __reg_module(void) \ |