diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-01-10 14:23:28 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2006-01-10 14:23:28 +0000 |
| commit | 9289748ceda0195c346437632be8558587441287 (patch) | |
| tree | e02bb25d4a78f226d0cd6634bb145b97f6af9c46 /lib/python/enigma_python.i | |
| parent | 9ef4b143f371d6b1b38a3abebcf38b336e03a583 (diff) | |
| download | enigma2-9289748ceda0195c346437632be8558587441287.tar.gz enigma2-9289748ceda0195c346437632be8558587441287.zip | |
add a dummy class to debug python refcounting (add entrys of TestObj to your tuple or list)
include <lib/python/python.h> and use New_TestObj to create a testobject..
Diffstat (limited to 'lib/python/enigma_python.i')
| -rw-r--r-- | lib/python/enigma_python.i | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 16ca40cf..5a6f126e 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -79,6 +79,7 @@ is usually caused by not marking PSignals as immutable. #include <lib/driver/etimezone.h> #include <lib/gdi/lcd.h> #include <lib/dvb_ci/dvbci_ui.h> +#include <lib/python/python.h> extern void runMainloop(); extern void quitMainloop(int exit_code); @@ -182,6 +183,7 @@ typedef long time_t; %include <lib/gdi/lcd.h> %include <lib/dvb_ci/dvbci_ui.h> %include <lib/dvb/db.h> +%include <lib/python/python.h> /************** eptr **************/ %template(eActionMapPtr) ePtr<eActionMap>; @@ -243,4 +245,9 @@ RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj) result = *res; return 0; } +PyObject *New_TestObj() +{ + TestObj *result = (TestObj *)new TestObj(); + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1); +} %} |
