provide python interpreter for mussa qui via a seperate thread
[mussa.git] / py / python.hpp
index fc210c33369ba71e36e56525e2605a1b93014d2a..a9fc02534e5efd02073cbc1e2e70a7638defd453 100644 (file)
@@ -4,6 +4,7 @@
 #include <string>
 
 extern "C" void initmussa();
+extern "C" void initmussaqui();
 
 //! Create a singleton class to manage our reference to the python interpreter
 class MussaPython {
@@ -14,8 +15,10 @@ class MussaPython {
     void run(std::string);
     //! pass single expression to the python interpreter and return the result
     boost::python::object eval(std::string);
-    //! launch read-eval-print loop tied to the provided FILE pointer
-    void interpreter(FILE *fp=stdin);
+    //! use InteractiveConsole for readloop
+    void interpreter();
+    //! launch fgets based read-eval-print loop tied to the provided FILE pointer
+    void simple_interpreter(FILE *fp=stdin);
     //! return an object in the python namespace
     boost::python::object operator[](std::string);