From 2a7d947108abd95f7c52915c5138c8e07ccb4c45 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 16 Jan 2019 09:32:06 -0500 Subject: [PATCH] doc: Update modules.rst to better represent what is needed The modules.rst documents how to create a module, let's update it a bit to reflect what an end user needs to do a bit more. Signed-off-by: Donald Sharp --- doc/developer/modules.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/developer/modules.rst b/doc/developer/modules.rst index 99c79462ab..9622507ebe 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) -- 2.39.5