aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib/main.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-03-09 15:42:26 +0100
committerDave Barach <openvpp@barachs.net>2017-03-10 19:35:09 +0000
commite9d52d54361296af520e1ece0c25307a2d86c018 (patch)
treee98fce293437707ae6cd7d4b8c13bb2ddc503fd7 /src/vlib/main.h
parentd79b41e993981df80245b0e6d90eb691bdaae648 (diff)
vlib: deduplicatee code in main and worker main loop
Change-Id: Id18d59c9442602633a6310b2001a95bce8b6b232 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/main.h')
-rw-r--r--src/vlib/main.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index d9ac1445ddd..a6d50b39dac 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -178,6 +178,8 @@ typedef struct vlib_main_t
/* Global main structure. */
extern vlib_main_t vlib_global_main;
+void vlib_worker_loop (vlib_main_t * vm);
+
always_inline f64
vlib_time_now (vlib_main_t * vm)
{