X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ddc3964ed95d01e72229dc9af968a327cd84e56c..059982cc102de394ac316abc3ee0806673d003d5:/lib/python/python.h diff --git a/lib/python/python.h b/lib/python/python.h index bde18146..e9a2b8db 100644 --- a/lib/python/python.h +++ b/lib/python/python.h @@ -3,14 +3,30 @@ #include +/* 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