diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-26 13:45:37 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2021-03-26 16:33:42 +0100 |
commit | f553a2cbbb8cca84ebf033335ebd2cd26dc19d69 (patch) | |
tree | 3705c2c0121769dff96a122cef13886d5f0e5205 /src/vlib/global_funcs.h | |
parent | 6ffb7c61899eb782416cbd2f117042a583f189f7 (diff) |
vlib: introduce vlib_get_elog_main()
Type: improvement
Change-Id: I73383eb15186021cd6527d112da8443a0082f129
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib/global_funcs.h')
-rw-r--r-- | src/vlib/global_funcs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vlib/global_funcs.h b/src/vlib/global_funcs.h index b1d636f7ce4..63f8115a181 100644 --- a/src/vlib/global_funcs.h +++ b/src/vlib/global_funcs.h @@ -52,6 +52,13 @@ vlib_get_thread_main () return &vlib_thread_main; } +always_inline elog_main_t * +vlib_get_elog_main () +{ + vlib_main_t *vm = vlib_get_first_main (); + return &vm->elog_main; +} + #endif /* included_vlib_global_funcs_h_ */ /* |