]> git.siccegge.de Git - frida/frida.git/blobdiff - src/bindings/Guile.hxx
Fix segfault when loading a sceme file
[frida/frida.git] / src / bindings / Guile.hxx
index 5de69080be4e464229e627e4b314f78ef19f9c6c..d67a0ddf0ac55dcc0d64de6ff3df312210f55a39 100644 (file)
@@ -5,7 +5,10 @@
 
 #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,6 +16,13 @@ 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;