I am designing a system in C/C++ which is extendible with all sort of plugins. There is a well defined C public API which mostly works with (const) char* and other
(const) char*
Make a wrapper process for plugin and communicate with that wrapper through IPC. In case of plugin failure your main process would be untouched