X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e2e40a2d105f7a4caac0a96dfdbd1282f7922e2b..ed6ab83ab71bbef6d8df689f9ea7f9c1474f625f:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index eb814553..d0d46723 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -74,6 +74,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include @@ -136,6 +137,7 @@ typedef long time_t; %immutable pNavigation::m_event; %include +%include %include %include %include @@ -168,10 +170,9 @@ typedef long time_t; %include %include %include +%include %include %include - -%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -232,3 +233,18 @@ void setLCDClock(const char*); %immutable keyPressed; PSignal1 &keyPressedSignal(); +%{ +RESULT SwigFromPython(ePtr &result, PyObject *obj) +{ + ePtr *res; + + res = 0; + result = 0; + if (SWIG_Python_ConvertPtr(obj, (void **)&res, SWIGTYPE_p_ePtrTgPixmap_t, SWIG_POINTER_EXCEPTION | 0)) + return -1; + if (!res) + return -1; + result = *res; + return 0; +} +%}