diff checker.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/checker.cpp	Wed Apr 13 12:06:26 2016 +0100
+++ b/checker.cpp	Wed Apr 13 18:41:49 2016 +0100
@@ -33,10 +33,17 @@
 
 using namespace std;
 
+struct LogCallback : PluginCandidates::LogCallback {
+    virtual void log(string message) {
+        cerr << "checker: log: " << message;
+    }
+};
+
 int main(int, char **)
 {
-    KnownPlugins kp;
-
+    LogCallback cb;
+    KnownPlugins kp("./helper", &cb); //!!!
+    
     for (auto t: kp.getKnownPluginTypes()) {
 	cout << "successful libraries for plugin type \""
 	     << kp.getTagFor(t) << "\":" << endl;