X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cf3e9383de633c9305a950ba5896376b14e43e12..9289748ceda0195c346437632be8558587441287:/lib/python/python.h diff --git a/lib/python/python.h b/lib/python/python.h index e9a2b8db..46e1a03d 100644 --- a/lib/python/python.h +++ b/lib/python/python.h @@ -2,7 +2,24 @@ #define __lib_python_python_h #include +#include +typedef struct _object PyObject; + +// useable for debugging python refcounting + +extern PyObject *New_TestObj(); + +class TestObj +{ +DECLARE_REF(TestObj); +public: + TestObj(); + ~TestObj(); +}; +TEMPLATE_TYPEDEF(ePtr, TestObjPtr); + +#ifndef SWIG /* class ePyObject { void *m_object; @@ -16,8 +33,6 @@ public: void *get() { return m_object; } }; */ -typedef struct _object PyObject; - class ePython { public: @@ -28,5 +43,6 @@ public: static PyObject *resolve(const std::string &pythonfile, const std::string &funcname); private: }; +#endif // SWIG #endif