]> git.siccegge.de Git - frida/frida.git/blobdiff - src/bindings/Guile.hxx
Do proper errorhandling for fileload
[frida/frida.git] / src / bindings / Guile.hxx
index d67a0ddf0ac55dcc0d64de6ff3df312210f55a39..612f33bdfb1fb6b6170bf6d67caff9392b1ba93b 100644 (file)
@@ -2,6 +2,7 @@
 #define INCLUDE__Guile_hxx_
 
 #include <libguile.h>
+#include <log4cxx/logger.h>
 
 #include "Interpreter.hxx"
 
@@ -24,8 +25,15 @@ public:
 
        std::string fileExtension() const {return "scm";}
 private:
+       int evaluateWithErrorHandling(SCM (*fun)(void *),
+                                     void* data,
+                                     std::ostream& stdout,
+                                     std::ostream& stderr,
+                                     std::string& result);
+
        SCM guile_output_port;
        SCM guile_error_port;
+       log4cxx::LoggerPtr logger;
 };
 
 #endif /* INCLUDE__Guile_hxx_ */