mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
config_parse_hooks() => config_parse_hooklist (as in config_parse_nodelist)
This commit is contained in:
parent
517412f7c2
commit
da464456e0
2 changed files with 3 additions and 3 deletions
|
@ -79,7 +79,7 @@ int config_parse_nodelist(config_setting_t *cfg, struct list *nodes, struct list
|
|||
* hooks = [ "print", "fir" ]
|
||||
* hooks = "log"
|
||||
**/
|
||||
int config_parse_hooks(config_setting_t *cfg, struct list *hooks);
|
||||
int config_parse_hooklist(config_setting_t *cfg, struct list *hooks);
|
||||
|
||||
/** Parse a single node and add it to the global configuration.
|
||||
*
|
||||
|
|
|
@ -123,7 +123,7 @@ int config_parse_path(config_setting_t *cfg,
|
|||
/* Optional settings */
|
||||
struct config_setting_t *cfg_hook = config_setting_get_member(cfg, "hook");
|
||||
if (cfg_hook)
|
||||
config_parse_hooks(cfg_hook, &p->hooks);
|
||||
config_parse_hooklist(cfg_hook, p->hooks);
|
||||
|
||||
if (!config_setting_lookup_bool(cfg, "enabled", &enabled))
|
||||
enabled = 1;
|
||||
|
@ -209,7 +209,7 @@ int config_parse_nodelist(config_setting_t *cfg, struct list *nodes, struct list
|
|||
return 0;
|
||||
}
|
||||
|
||||
int config_parse_hooks(config_setting_t *cfg, struct list *hooks) {
|
||||
int config_parse_hooklist(config_setting_t *cfg, struct list *hooks) {
|
||||
const char *str;
|
||||
hook_cb_t hook;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue