From 684fb6e930a278385993504ba28c497d56bcb05e Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Mon, 9 Dec 2019 16:42:50 -0800 Subject: api: pass api and client main to rx thread Type: fix Change-Id: Ib8313e87a89c80045edd897924917a88b98d1937 Signed-off-by: Florin Coras --- src/vlibapi/api_common.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/vlibapi/api_common.h') diff --git a/src/vlibapi/api_common.h b/src/vlibapi/api_common.h index c3ef57338bc..4d401046174 100644 --- a/src/vlibapi/api_common.h +++ b/src/vlibapi/api_common.h @@ -378,6 +378,12 @@ vlibapi_get_main (void) return my_api_main; } +always_inline void +vlibapi_set_main (api_main_t * am) +{ + my_api_main = am; +} + #endif /* included_api_common_h */ /* -- cgit 1.2.3-korg