summaryrefslogtreecommitdiffstats
path: root/src/vlibapi/api_common.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-12-09 16:42:50 -0800
committerDave Barach <openvpp@barachs.net>2019-12-10 12:28:47 +0000
commit684fb6e930a278385993504ba28c497d56bcb05e (patch)
treefd21decd2967baf69d5a3fcf6377599ed1ef0429 /src/vlibapi/api_common.h
parent0fa66d618e7d839782a896f75bc8b0337cc2a2b8 (diff)
api: pass api and client main to rx thread
Type: fix Change-Id: Ib8313e87a89c80045edd897924917a88b98d1937 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibapi/api_common.h')
-rw-r--r--src/vlibapi/api_common.h6
1 files changed, 6 insertions, 0 deletions
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 */
/*