Plugin architecture design by C
Plugin architecture design by C Table of Contents 1 How to make a plugin architecture in C? 2 Problems I met 3 How I solve this problem? 4 Pros and Cons of plugin architecture. 1 How to make a plugin architecture in C? The plugin architecture is a great design in order to make extensible and resilience software. The software's modules were loaded dynamically from the plugin modules at running time. In C language, this architecture can be implemented by dlopen which is the programming interface to the dynamic linking loader in Linux. In other words, A software is split into separate modules which are compiled and linked into shared libs. And the software can load the shared libs into memory dynamically, this is what I wanna genesis to be. genesis is a reactor architecture middleware lib that I am working on. 2 Problems I met In order to make a plugin architecture, I use dlopen API to implement plugin modules. But I met some troubles in the d...