]> git.siccegge.de Git - frida/frida.git/blobdiff - src/bindings/Interpreter.hxx
Fix segfault when loading a sceme file
[frida/frida.git] / src / bindings / Interpreter.hxx
index a8d9ad90c9364a52fbacaedd7d99e74cd7da2eee..898f0e0ea26c016d5615b9eda97d86d7e4222705 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <sstream>
+#include <QtPlugin>
 
 class Interpreter {
 public:
@@ -10,7 +11,16 @@ public:
                             std::ostream& stdout,
                             std::ostream& stderr,
                             std::string& result) = 0;
+
+       virtual int loadFile(const std::string& filename,
+                            std::ostream& stdout,
+                            std::ostream& stderr,
+                            std::string& result) = 0;
+
+       virtual std::string fileExtension() const = 0;
 private:
 };
 
+Q_DECLARE_INTERFACE(Interpreter, "xyz.frida.Interpreter")
+
 #endif /* INCLUDE__Interpreter_hxx_ */