mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Preconfig, postconfig and init hooks can be NULL.
This commit is contained in:
parent
0432c0173b
commit
3629bcf0c7
@ -48,6 +48,7 @@ protos_preconfig(void)
|
|||||||
WALK_LIST(p, protocol_list)
|
WALK_LIST(p, protocol_list)
|
||||||
{
|
{
|
||||||
debug("...%s\n", p->name);
|
debug("...%s\n", p->name);
|
||||||
|
if (p->preconfig)
|
||||||
p->preconfig(p);
|
p->preconfig(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,6 +62,7 @@ protos_postconfig(void)
|
|||||||
WALK_LIST(p, protocol_list)
|
WALK_LIST(p, protocol_list)
|
||||||
{
|
{
|
||||||
debug("...%s\n", p->name);
|
debug("...%s\n", p->name);
|
||||||
|
if (p->postconfig)
|
||||||
p->postconfig(p);
|
p->postconfig(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -121,5 +123,6 @@ protos_init(void)
|
|||||||
|
|
||||||
debug("Initializing protocols\n");
|
debug("Initializing protocols\n");
|
||||||
WALK_LIST(p, protocol_list)
|
WALK_LIST(p, protocol_list)
|
||||||
|
if (p->init)
|
||||||
p->init(p);
|
p->init(p);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user