automatic ClientFactory::start()

register the "pva" provider automatically.
This commit is contained in:
Michael Davidsaver
2017-07-17 14:29:27 +02:00
parent 2c530868f6
commit eef51a9a6d
10 changed files with 38 additions and 35 deletions

View File

@@ -197,3 +197,15 @@ void CAClientFactory::stop()
{
// unregister now done with exit hook
}
// perhaps useful during dynamic loading?
extern "C" {
void registerClientProvider_ca()
{
try {
CAClientFactory::start();
} catch(std::exception& e){
std::cerr<<"Error loading ca: "<<e.what()<<"\n";
}
}
} // extern "C"