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 <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2019-01-16 09:32:06 -05:00
parent c5ef74c4bc
commit 2a7d947108

View File

@ -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)