summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/developer/modules.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/developer/modules.rst b/doc/developer/modules.rst
index 99c79462ab..763d8b1b8d 100644
--- a/doc/developer/modules.rst
+++ b/doc/developer/modules.rst
@@ -53,6 +53,14 @@ Basic boilerplate:
#include "hook.h"
#include "module.h"
+ #include "libfrr.h"
+ #include "thread.h"
+
+ static int module_late_init(struct thread_master *master)
+ {
+ /* Do initialization stuff here */
+ return 0;
+ }
static int
module_init (void)