diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-09 15:14:21 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-09 15:14:21 +0000 |
commit | 0e5b47cc9c04b3ee976c6c6fce7b85659c0fad44 (patch) | |
tree | 8ce320876e92387b42556b037f1896f243cc0204 /include/asterisk | |
parent | c806a7780cd92b3f3ee6f28a9956d9a4d591588d (diff) |
Set a module load priority for format modules.
A recent change to app_voicemail made it such that the module now assumes that
all format modules are available while processing voicemail configuration.
However, when autoloading modules, it was possible that app_voicemail was
loaded before the format modules. Since format modules don't depend on
anything, set a module load priority on them to ensure that they get loaded
first when autoloading.
This version of the patch is specific to Asterisk 1.4 and 1.6.0. These versions
did not already support module load priority in the module API. This adds a
trivial version of this which is just a module flag to include it in a pass before
loading "everything".
Thanks to mmichelson for the review!
(closes issue #16412)
Reported by: jiddings
Tested by: russell
Review: https://reviewboard.asterisk.org/r/445/
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@233782 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/module.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 27eae4abe..7ea4e93a1 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -180,6 +180,14 @@ enum ast_module_flags { AST_MODFLAG_DEFAULT = 0, AST_MODFLAG_GLOBAL_SYMBOLS = (1 << 0), AST_MODFLAG_BUILDSUM = (1 << 1), + /*! + * \brief Load this module in the first pass on auto loading + * + * When module auto loading is used, modules with this flag set will + * be loaded after preloaded modules, but before all modules being + * automatically loaded without this flag set on them. + */ + AST_MODFLAG_LOAD_FIRST = (1 << 2), }; struct ast_module_info { |