I\'m working on a project where I would find a basic plugin system useful. Essentially, I create the base class and can provide this base class to a plugin developer. Then t
On Linux, a plugin is a shared library (with a .so
extension) that provides one or more functions named in your plugin API. Your program opens the library with dlopen
and gets pointers to the functions using dlsym
and calls the functions using the pointers. The plugin can call any function that's exported publically from your program.