summaryrefslogtreecommitdiffstats
path: root/src/vlib/main.c
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2020-10-06 14:08:16 -0400
committerDave Barach <dave@barachs.net>2020-10-06 15:22:48 -0400
commitab1a50cf7407e31097b550226c2b6954d6371bea (patch)
tree5c9c9b097aee611d1b1c8728d388e5392d1bdd32 /src/vlib/main.c
parentc0b195450b31f7092834c0f14a27ca929faf8bca (diff)
misc: add xxx_not_inline
vlib_main_t *vlib_get_main_not_inline(void) vlib_thread_main_t *vlib_get_thread_main_not_inline(void) elog_main_t *vlib_get_elog_main_not_inline() Type: refactor Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I6de306d567283ad28ef34c9be0cf27452aecbf6c
Diffstat (limited to 'src/vlib/main.c')
-rw-r--r--src/vlib/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vlib/main.c b/src/vlib/main.c
index 8b5611a8e39..b868a64e4b5 100644
--- a/src/vlib/main.c
+++ b/src/vlib/main.c
@@ -2510,6 +2510,18 @@ VLIB_CLI_COMMAND (pcap_dispatch_trace_command, static) = {
};
/* *INDENT-ON* */
+vlib_main_t *
+vlib_get_main_not_inline (void)
+{
+ return vlib_get_main ();
+}
+
+elog_main_t *
+vlib_get_elog_main_not_inline ()
+{
+ return &vlib_global_main.elog_main;
+}
+
/*
* fd.io coding-style-patch-verification: ON
*