X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/9ef4b143f371d6b1b38a3abebcf38b336e03a583..9289748ceda0195c346437632be8558587441287:/lib/python/enigma_python.i?ds=sidebyside 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 #include #include +#include extern void runMainloop(); extern void quitMainloop(int exit_code); @@ -182,6 +183,7 @@ typedef long time_t; %include %include %include +%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -243,4 +245,9 @@ RESULT SwigFromPython(ePtr &result, PyObject *obj) result = *res; return 0; } +PyObject *New_TestObj() +{ + TestObj *result = (TestObj *)new TestObj(); + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_TestObj, 1); +} %}