Async 1.8.0
AsyncPlugin_demo.cpp

An example of how to use the Async::Plugin class

#include <iostream>
#include "DemoPluginBase.h"
int main(void)
{
auto p = Async::Plugin::load<DemoPluginBase>("DemoPlugin.so");
if (p == nullptr)
{
exit(1);
}
std::cout << "Found plugin " << p->pluginPath() << std::endl;
p->initialize("hello");
p = nullptr;
return 0;
}
static void unload(Plugin *p)
static Plugin * load(const std::string &path)
Load the plugin from the specified path.