X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fbindings%2FGuile.hxx;h=244bb1cc07ab620119e2f941f658453b26f6ff07;hp=942b04ff9ab00561f8c47dbdb4cad8946ca850f2;hb=4e10c813f57981265534133a6d857fd66c6edccc;hpb=fd85e36ca37c93139dc7bf8d06cf71bc5a225321 diff --git a/src/bindings/Guile.hxx b/src/bindings/Guile.hxx index 942b04f..244bb1c 100644 --- a/src/bindings/Guile.hxx +++ b/src/bindings/Guile.hxx @@ -4,6 +4,7 @@ #include #include +#include "qt.hxx" #include "Interpreter.hxx" class GuileInterpreter : public QObject, public Interpreter { @@ -25,9 +26,26 @@ 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; }; +namespace guile { + class Geiser : public QThread { + Q_OBJECT + public: + Geiser(QObject* parent) : QThread(parent) {} + private: + void run() Q_DECL_OVERRIDE; + }; +} + + #endif /* INCLUDE__Guile_hxx_ */