don't die with cable-NIM
[enigma2.git] / lib / python / python.h
index bde18146c1758d5e33171de99a3cc50da1428b7e..e9a2b8db558a643cf46b8bc629ae7de73d07d902 100644 (file)
@@ -3,14 +3,30 @@
 
 #include <string>
 
+/* class ePyObject
+{
+       void *m_object;
+public:
+       ePyObject(void *ptr);
+       ePyObject(ePyObject &p);
+       ePyObject();
+       ePyObject &operator=(ePyObject &p);
+       ePyObject &operator=(void *p);
+       ~ePyObject();
+       void *get() { return m_object; }
+}; */
+
+typedef struct _object PyObject;
+
 class ePython
 {
 public:
        ePython();
        ~ePython();
        int execute(const std::string &pythonfile, const std::string &funcname);
+       static int call(PyObject *pFunc, PyObject *args);
+       static PyObject *resolve(const std::string &pythonfile, const std::string &funcname);
 private:
-       
 };
 
 #endif