mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
lib: rename very_late_init hook to config_post
very_late_init doesn't really say what this does, config_post is much more descriptive. (A config_pre is coming in a jiffy.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
85e40093a9
commit
2bafda27a6
@ -46,7 +46,7 @@
|
||||
#include "frrscript.h"
|
||||
|
||||
DEFINE_HOOK(frr_late_init, (struct thread_master * tm), (tm));
|
||||
DEFINE_HOOK(frr_very_late_init, (struct thread_master * tm), (tm));
|
||||
DEFINE_HOOK(frr_config_post, (struct thread_master * tm), (tm));
|
||||
DEFINE_KOOH(frr_early_fini, (), ());
|
||||
DEFINE_KOOH(frr_fini, (), ());
|
||||
|
||||
@ -964,7 +964,7 @@ static int frr_config_read_in(struct thread *t)
|
||||
__func__, nb_err_name(ret), errmsg);
|
||||
}
|
||||
|
||||
hook_call(frr_very_late_init, master);
|
||||
hook_call(frr_config_post, master);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ extern uint32_t frr_get_fd_limit(void);
|
||||
extern bool frr_is_startup_fd(int fd);
|
||||
|
||||
DECLARE_HOOK(frr_late_init, (struct thread_master * tm), (tm));
|
||||
DECLARE_HOOK(frr_very_late_init, (struct thread_master * tm), (tm));
|
||||
DECLARE_HOOK(frr_config_post, (struct thread_master * tm), (tm));
|
||||
extern void frr_config_fork(void);
|
||||
|
||||
extern void frr_run(struct thread_master *master);
|
||||
|
@ -736,7 +736,7 @@ static int frr_sr_finish(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int frr_sr_module_very_late_init(struct thread_master *tm)
|
||||
static int frr_sr_module_config_loaded(struct thread_master *tm)
|
||||
{
|
||||
master = tm;
|
||||
|
||||
@ -761,7 +761,7 @@ static int frr_sr_module_late_init(struct thread_master *tm)
|
||||
static int frr_sr_module_init(void)
|
||||
{
|
||||
hook_register(frr_late_init, frr_sr_module_late_init);
|
||||
hook_register(frr_very_late_init, frr_sr_module_very_late_init);
|
||||
hook_register(frr_config_post, frr_sr_module_config_loaded);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user