mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 20:08:17 +00:00
Disable strict XML documentation config checking; fix crash caused by sorcery
This patch does two things:
1. It disables (temporarily) strict XML documentation checking for module
configurations. We should re-enable it before making any release from
trunk.
2. Pass the module flag AST_MODULE through sorcery. This means several of the
API calls are now macros and will do this automatically for you. The config
framework needs the module that objects are registering to so it can
properly construct the documentation. (This was already a required field,
but sorcery was getting by without it)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381567 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -894,7 +894,7 @@ static char *complete_config_option(const char *module, const char *option, cons
|
||||
/* Define as 0 if we want to allow configurations to be registered without
|
||||
* documentation
|
||||
*/
|
||||
#define XMLDOC_STRICT 1
|
||||
#define XMLDOC_STRICT 0
|
||||
|
||||
/*! \internal
|
||||
* \brief Update the XML documentation for a config type based on its registration
|
||||
|
||||
Reference in New Issue
Block a user