aboutsummaryrefslogtreecommitdiffstats
path: root/build-root/emacs-lisp/dual-loop-skel.el
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2016-03-15 01:28:58 -0400
committerGerrit Code Review <gerrit@fd.io>2016-03-16 20:07:48 +0000
commit334806ccc2bf21e00eeb3c59ad71b9ca77f5aef8 (patch)
tree0619519b69e8f2cb8a1c273b510323e0cbbb5ec9 /build-root/emacs-lisp/dual-loop-skel.el
parent83243a0ff59f90eeed9da2da85b5bb5b3e0d5881 (diff)
Add VLIB_INIT_FUNCTION() to dual-loop-skel
Change-Id: I4aafad8a3e4c0c57eef1940fac8debfb80bbb137 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'build-root/emacs-lisp/dual-loop-skel.el')
-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);
")