X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/a48bc4879c6ac4c6eb163f6bb3c0b5c0536fcee8..02226aee689caad4d05e65448ec7640d33e8f659:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index a90e2fef..d0d46723 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -137,6 +137,7 @@ typedef long time_t; %immutable pNavigation::m_event; %include +%include %include %include %include @@ -172,8 +173,6 @@ typedef long time_t; %include %include %include - -%include /************** eptr **************/ %template(eActionMapPtr) ePtr; @@ -234,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; +} +%}