Mercurial > hg > vamp-plugin-load-checker
diff helper.cpp @ 6:61dbb18f2369
Logging, timeouts
author | Chris Cannam |
---|---|
date | Wed, 13 Apr 2016 18:41:49 +0100 |
parents | 74064d6f5e07 |
children |
line wrap: on
line diff
--- a/helper.cpp Wed Apr 13 12:06:26 2016 +0100 +++ b/helper.cpp Wed Apr 13 18:41:49 2016 +0100 @@ -74,6 +74,8 @@ #include <string> #include <iostream> +#include <unistd.h> + using namespace std; string error() @@ -85,23 +87,17 @@ string check(string soname, string descriptor) { -// cerr << "helper: trying: " << soname << endl; - void *handle = DLOPEN(soname, RTLD_NOW | RTLD_LOCAL); if (!handle) { -// cerr << "helper: failed to open" << endl; return "Unable to open plugin library: " + error(); } void *fn = DLSYM(handle, descriptor); if (!fn) { -// cerr << "helper: failed to find descriptor" << endl; return "Failed to find plugin descriptor " + descriptor + " in library: " + error(); } -// cerr << "helper: succeeded" << endl; - return ""; }