git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a dummy class to debug python refcounting (add entrys of TestObj to your tuple...
[enigma2.git]
/
lib
/
python
/
enigma_python.i
diff --git
a/lib/python/enigma_python.i
b/lib/python/enigma_python.i
index 16ca40cf2faf54352730678b098ac5172bbc7b01..5a6f126ecba41c3c0fe84c262639fbcbad85b647 100644
(file)
--- 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/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);
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/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>;
/************** eptr **************/
%template(eActionMapPtr) ePtr<eActionMap>;
@@
-243,4
+245,9
@@
RESULT SwigFromPython(ePtr<gPixmap> &result, PyObject *obj)
result = *res;
return 0;
}
result = *res;
return 0;
}
+PyObject *New_TestObj()
+{
+ TestObj *result = (TestObj *)new TestObj();
+ return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1);
+}
%}
%}