#include "frrscript.h"
#include "systemd.h"
+DEFINE_HOOK(frr_early_init, (struct thread_master * tm), (tm));
DEFINE_HOOK(frr_late_init, (struct thread_master * tm), (tm));
DEFINE_HOOK(frr_config_pre, (struct thread_master * tm), (tm));
DEFINE_HOOK(frr_config_post, (struct thread_master * tm), (tm));
master = thread_master_create(NULL);
signal_init(master, di->n_signals, di->signals);
+ hook_call(frr_early_init, master);
#ifdef HAVE_SQLITE3
if (!di->db_file)
extern bool frr_is_startup_fd(int fd);
/* call order of these hooks is as ordered here */
+DECLARE_HOOK(frr_early_init, (struct thread_master * tm), (tm));
DECLARE_HOOK(frr_late_init, (struct thread_master * tm), (tm));
/* fork() happens between late_init and config_pre */
DECLARE_HOOK(frr_config_pre, (struct thread_master * tm), (tm));