X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d0ca21133e420f63c90d44e6b8bd23273e2ffd58..0252a3bc3bb43d56b35f0ffe05df0b734b3c9588:/lib/python/enigma_python.i?ds=sidebyside 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; +} +%}