fix newline
[enigma2.git] / lib / python / python.h
index e9a2b8db558a643cf46b8bc629ae7de73d07d902..46e1a03db9bbada306900df78dc738508268f8d4 100644 (file)
@@ -2,7 +2,24 @@
 #define __lib_python_python_h
 
 #include <string>
+#include <lib/base/object.h>
 
+typedef struct _object PyObject;
+
+// useable for debugging python refcounting
+
+extern PyObject *New_TestObj();
+
+class TestObj
+{
+DECLARE_REF(TestObj);
+public:
+       TestObj();
+       ~TestObj();
+};
+TEMPLATE_TYPEDEF(ePtr<TestObj>, 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