Load default configuration values for modules

Filters, monitors and routers can now declare parameters and those
parameters will always be present. Currently, this removes the need to
parse simple values like booleans and integers.

Some of the more common parameter types could be added in the future
e.g. paths to files.
This commit is contained in:
Markus Mäkelä
2017-01-04 09:00:00 +02:00
parent 241dbb464a
commit f7c6accaa0
3 changed files with 56 additions and 0 deletions

View File

@ -121,6 +121,16 @@ void service_update(SERVICE *service, char *router, char *user, char *auth);
bool service_set_param_value(SERVICE* service, CONFIG_PARAMETER* param, char* valstr,
count_spec_t count_spec, config_param_type_t type);
/**
* @brief Add parameters to a service
*
* A copy of @c param is added to @c service.
*
* @param service Service where the parameters are added
* @param param Parameters to add
*/
void service_add_parameters(SERVICE *service, const CONFIG_PARAMETER *param);
/**
* Internal debugging diagnostics
*/