]> git.siccegge.de Git - frida/frida.git/blob - src/bindings/Interpreter.hxx
Fix segfault when loading a sceme file
[frida/frida.git] / src / bindings / Interpreter.hxx
1 #ifndef INCLUDE__Interpreter_hxx_
2 #define INCLUDE__Interpreter_hxx_
3
4 #include <string>
5 #include <sstream>
6 #include <QtPlugin>
7
8 class Interpreter {
9 public:
10 virtual int evaluate(const std::string& command,
11 std::ostream& stdout,
12 std::ostream& stderr,
13 std::string& result) = 0;
14
15 virtual int loadFile(const std::string& filename,
16 std::ostream& stdout,
17 std::ostream& stderr,
18 std::string& result) = 0;
19
20 virtual std::string fileExtension() const = 0;
21 private:
22 };
23
24 Q_DECLARE_INTERFACE(Interpreter, "xyz.frida.Interpreter")
25
26 #endif /* INCLUDE__Interpreter_hxx_ */