From 334806ccc2bf21e00eeb3c59ad71b9ca77f5aef8 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Tue, 15 Mar 2016 01:28:58 -0400 Subject: Add VLIB_INIT_FUNCTION() to dual-loop-skel Change-Id: I4aafad8a3e4c0c57eef1940fac8debfb80bbb137 Signed-off-by: Dave Wallace --- build-root/emacs-lisp/dual-loop-skel.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build-root') 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); ") -- cgit 1.2.3-korg