api: better segregate client and server code 58/35558/3
authorBenoît Ganne <bganne@cisco.com>
Fri, 4 Mar 2022 16:17:04 +0000 (17:17 +0100)
committerOle Tr�an <otroan@employees.org>
Wed, 23 Mar 2022 18:23:29 +0000 (18:23 +0000)
commit7f9256e31c13fdfb640eff9d7775bc50b4396543
tree3d799496f125655ca973d6da1c99fabc12787824
parent8296a1d043ce6584561dabbc671087e040a3ae13
api: better segregate client and server code

 - 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 <bganne@cisco.com>
src/plugins/unittest/api_fuzz_test.c
src/vlibapi/api.h
src/vlibapi/api_common.h
src/vlibapi/api_shared.c
src/vlibmemory/CMakeLists.txt
src/vlibmemory/memory_api.c