api: pass api and client main to rx thread

Type: fix

Change-Id: Ib8313e87a89c80045edd897924917a88b98d1937
Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vlibapi/api_common.h b/src/vlibapi/api_common.h
index c3ef573..4d40104 100644
--- a/src/vlibapi/api_common.h
+++ b/src/vlibapi/api_common.h
@@ -378,6 +378,12 @@
   return my_api_main;
 }
 
+always_inline void
+vlibapi_set_main (api_main_t * am)
+{
+  my_api_main = am;
+}
+
 #endif /* included_api_common_h */
 
 /*