From 7f9256e31c13fdfb640eff9d7775bc50b4396543 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 4 Mar 2022 17:17:04 +0100 Subject: api: better segregate client and server code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - move memory and server specific vl_msg_api_handler_with_vm_node() to memory server code only - keep api_global_main static Apart from being cleaner, this also helps avoiding symbols conflict when both client and server libs are loaded in the same process, as is done by the prom plugin. Those symbols conflict confuse ASan and can be nasty to debug. Type: improvement Change-Id: Iaf58596cc753ad8d3fedd8d65c4bf480ac129c2c Signed-off-by: Benoît Ganne --- src/vlibapi/api.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/vlibapi/api.h') diff --git a/src/vlibapi/api.h b/src/vlibapi/api.h index d05395a213c..d290301f8d4 100644 --- a/src/vlibapi/api.h +++ b/src/vlibapi/api.h @@ -105,10 +105,6 @@ int vl_msg_api_trace_onoff (api_main_t * am, vl_api_trace_which_t which, int vl_msg_api_trace_free (api_main_t * am, vl_api_trace_which_t which); int vl_msg_api_trace_configure (api_main_t * am, vl_api_trace_which_t which, u32 nitems); -void vl_msg_api_handler_with_vm_node (api_main_t * am, svm_region_t * vlib_rp, - void *the_msg, vlib_main_t * vm, - vlib_node_runtime_t * node, - u8 is_private); u32 vl_msg_api_max_length (void *mp); vl_api_trace_t *vl_msg_api_trace_get (api_main_t * am, vl_api_trace_which_t which); -- cgit 1.2.3-korg