learning how to write a dynamic plugin loader in C!
| include | ||
| plugins | ||
| src | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
C plugins
learning how to write a dynamic plugin loader in C!
how does it work?
the core application will scan a nearby plugins directory for plugins.
the core expects this directory structure:
pluginhostpluginsplugin1plugin1.so
plugin2plugin2.so
each plugin must minimally contain two functions:
int ari_plugin_load(void)int ari_plugin_unload(void)
once loading all plugins, the core will call these functions within each detected plugin, and exit.
how to use
Warning
this software only supports linux at the moment. no plans to support other platforms at this time!
maketo build the core applicationmake all_pluginsto build all pluginsmake allto build both!make cleanto tidy up the environment- once built, run
./pluginhostto test the application.