Check configuration with declared parameters
The declared parameters are now used to check whether the configuration is valid. As the filters and monitors don't use the new declarations, the code needs to be commented out. Once the parameter processing has been migrated to the new system, the code can be enabled.
This commit is contained in:
@ -220,12 +220,13 @@ SSL_LISTENER *make_ssl_structure(CONFIG_CONTEXT *obj, bool require_cert, int *er
|
||||
* does preliminary type checking for various basic values as well as enumerations.
|
||||
*
|
||||
* @param module Module name
|
||||
* @param type Module type
|
||||
* @param key Parameter key
|
||||
* @param value Parameter value
|
||||
*
|
||||
* @return True if the configuration parameter is valid
|
||||
*/
|
||||
bool config_param_is_valid(const char *module, const char *key, const char *value);
|
||||
bool config_param_is_valid(const char *module, const char *type, const char *key, const char *value);
|
||||
|
||||
/**
|
||||
* @brief Get a boolean value
|
||||
|
@ -63,9 +63,10 @@ void *load_module(const char *module, const char *type);
|
||||
* @brief Get a module
|
||||
*
|
||||
* @param name Name of the module
|
||||
* @param type The module type
|
||||
* @return The loaded module or NULL if the module is not loaded
|
||||
*/
|
||||
const MXS_MODULE *get_module(const char *name);
|
||||
const MXS_MODULE *get_module(const char *name, const char *type);
|
||||
|
||||
/**
|
||||
* @brief Unload a module.
|
||||
|
Reference in New Issue
Block a user