]> git.siccegge.de Git - frida/frida.git/blobdiff - src/bindings/Guile.hxx
properly terminate guile thread
[frida/frida.git] / src / bindings / Guile.hxx
index 244bb1cc07ab620119e2f941f658453b26f6ff07..63d5fcbafdad62bacbec6f8fbaa9c61fde1ba168 100644 (file)
@@ -7,12 +7,24 @@
 #include "qt.hxx"
 #include "Interpreter.hxx"
 
+namespace guile {
+       class Geiser : public QThread {
+               Q_OBJECT
+       public:
+               Geiser(QObject* parent) : QThread(parent) {}
+               Geiser() {}
+       private:
+               void run() Q_DECL_OVERRIDE;
+       };
+}
+
 class GuileInterpreter : public QObject, public Interpreter {
     Q_OBJECT
     Q_PLUGIN_METADATA(IID "xyz.frida.Interpreter")
     Q_INTERFACES(Interpreter)
 public:
        GuileInterpreter();
+       virtual ~GuileInterpreter();
 
        int evaluate(const std::string& command,
                     std::ostream& stdout,
@@ -35,17 +47,7 @@ private:
        SCM guile_output_port;
        SCM guile_error_port;
        log4cxx::LoggerPtr logger;
+       guile::Geiser* geiser;
 };
 
-namespace guile {
-       class Geiser : public QThread {
-               Q_OBJECT
-       public:
-               Geiser(QObject* parent) : QThread(parent) {}
-       private:
-               void run() Q_DECL_OVERRIDE;
-       };
-}
-
-
 #endif /* INCLUDE__Guile_hxx_ */