summaryrefslogtreecommitdiffstats
path: root/build-root
diff options
context:
space:
mode:
Diffstat (limited to 'build-root')
-rw-r--r--build-root/emacs-lisp/dual-loop-skel.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/build-root/emacs-lisp/dual-loop-skel.el b/build-root/emacs-lisp/dual-loop-skel.el
index a501727a591..87a50cca549 100644
--- a/build-root/emacs-lisp/dual-loop-skel.el
+++ b/build-root/emacs-lisp/dual-loop-skel.el
@@ -285,5 +285,18 @@ VLIB_REGISTER_NODE (" node-name "_node) = {
},
};
+clib_error_t *" node-name "_init (vlib_main_t *vm)
+{
+ " node-name "_main_t *msm = &" node-name "_main;
+
+ /* $$$$$ Initialize " node-name "_main_t structure here. $$$$$ */
+ msm->vlib_main = vm;
+ msm->vnet_main = vnet_get_main();
+ msm->ethernet_main = ethernet_get_main(vm);
+
+ return 0;
+}
+
+VLIB_INIT_FUNCTION(" node-name "_init);
")