X-Git-Url: https://git.siccegge.de//index.cgi?p=frida%2Ffrida.git;a=blobdiff_plain;f=src%2Fbindings%2FGuile.hxx;h=942b04ff9ab00561f8c47dbdb4cad8946ca850f2;hp=5de69080be4e464229e627e4b314f78ef19f9c6c;hb=fd85e36ca37c93139dc7bf8d06cf71bc5a225321;hpb=7cc1f7b923b7859a7469e6a651d4a87bc48c4772 diff --git a/src/bindings/Guile.hxx b/src/bindings/Guile.hxx index 5de6908..942b04f 100644 --- a/src/bindings/Guile.hxx +++ b/src/bindings/Guile.hxx @@ -2,10 +2,14 @@ #define INCLUDE__Guile_hxx_ #include +#include #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(); @@ -13,9 +17,17 @@ public: std::ostream& stdout, std::ostream& stderr, std::string& result); + + int loadFile(const std::string& filename, + std::ostream& stdout, + std::ostream& stderr, + std::string& result); + + std::string fileExtension() const {return "scm";} private: SCM guile_output_port; SCM guile_error_port; + log4cxx::LoggerPtr logger; }; #endif /* INCLUDE__Guile_hxx_ */