X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fbindings%2FGuile.hxx;h=244bb1cc07ab620119e2f941f658453b26f6ff07;hp=7c45a9549c56fa52b822db552223ba47a2e1d88d;hb=4e10c813f57981265534133a6d857fd66c6edccc;hpb=adb0e762792c23674633b8513f4106b82aa38d15 diff --git a/src/bindings/Guile.hxx b/src/bindings/Guile.hxx index 7c45a95..244bb1c 100644 --- a/src/bindings/Guile.hxx +++ b/src/bindings/Guile.hxx @@ -2,10 +2,15 @@ #define INCLUDE__Guile_hxx_ #include +#include +#include "qt.hxx" #include "Interpreter.hxx" -class GuileInterpreter : public Interpreter { +class GuileInterpreter : public QObject, public Interpreter { + Q_OBJECT + Q_PLUGIN_METADATA(IID "xyz.frida.Interpreter") + Q_INTERFACES(Interpreter) public: GuileInterpreter(); @@ -21,8 +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_ */