]> git.siccegge.de Git - frida/frida.git/blob - src/bindings/Guile.hxx
PoC: Add menu item to load script
[frida/frida.git] / src / bindings / Guile.hxx
1 #ifndef INCLUDE__Guile_hxx_
2 #define INCLUDE__Guile_hxx_
3
4 #include <libguile.h>
5
6 #include "Interpreter.hxx"
7
8 class GuileInterpreter : public Interpreter {
9 public:
10 GuileInterpreter();
11
12 int evaluate(const std::string& command,
13 std::ostream& stdout,
14 std::ostream& stderr,
15 std::string& result);
16
17 int loadFile(const std::string& filename,
18 std::ostream& stdout,
19 std::ostream& stderr,
20 std::string& result);
21
22 std::string fileExtension() const {return "scm";}
23 private:
24 SCM guile_output_port;
25 SCM guile_error_port;
26 };
27
28 #endif /* INCLUDE__Guile_hxx_ */