Add config parameter removal

Config parameters can now be removed. Grouped the related functions closer
to each other in config.cc.
This commit is contained in:
Markus Mäkelä
2018-04-26 17:43:01 +03:00
parent 5d010ff712
commit df1fc49ac3
2 changed files with 113 additions and 74 deletions

View File

@ -111,6 +111,14 @@ bool config_append_param(CONFIG_CONTEXT* obj, const char* key, const char* value
*/
bool config_replace_param(CONFIG_CONTEXT* obj, const char* key, const char* value);
/**
* @brief Remove a parameter
*
* @param obj Configuration context
* @param key Name of the parameter to remove
*/
void config_remove_param(CONFIG_CONTEXT* obj, const char* name);
/**
* @brief Construct an SSL structure
*