X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5eb41508927a7f48d09d52e158e136fa07252dac..059c9a03c8cc02b0c595e3a5599be04dc157f725:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 84936375..7c999277 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -38,7 +38,9 @@ is usually caused by not marking PSignals as immutable. #define SWIG_COMPILE #include #include +#include #include +#include #include #include #include @@ -49,7 +51,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include +#include #include #include #include @@ -69,6 +71,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -131,6 +134,7 @@ typedef long time_t; %include "std_string.i" %include %include +%include %include %immutable eSocketNotifier::activated; @@ -156,12 +160,13 @@ typedef long time_t; %immutable ePythonMessagePump::recv_msg; %immutable eDVBLocalTimeHandler::m_timeUpdated; %include +%include %include %include %include %include %include -%include +%include %include %include %include @@ -183,6 +188,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -262,7 +268,10 @@ RESULT SwigFromPython(ePtr &result, PyObject *obj) res = 0; result = 0; - if (SWIG_Python_ConvertPtr(obj, (void **)&res, SWIGTYPE_p_ePtrTgPixmap_t, SWIG_POINTER_EXCEPTION | 0)) +#ifndef SWIGTYPE_p_ePtrT_gPixmap_t +#define SWIGTYPE_p_ePtrT_gPixmap_t SWIGTYPE_p_ePtrTgPixmap_t +#endif + if (SWIG_Python_ConvertPtr(obj, (void **)&res, SWIGTYPE_p_ePtrT_gPixmap_t, SWIG_POINTER_EXCEPTION | 0)) return -1; if (!res) return -1; @@ -277,7 +286,10 @@ PyObject *New_eServiceReference(const eServiceReference &ref) PyObject *New_iRecordableServicePtr(const ePtr &ptr) { ePtr *result = new ePtr(ptr); - return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_ePtrTiRecordableService_t, 1); +#ifndef SWIGTYPE_p_ePtrT_iRecordableService_t +#define SWIGTYPE_p_ePtrT_iRecordableService_t SWIGTYPE_p_ePtrTiRecordableService_t +#endif + return SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_ePtrT_iRecordableService_t, 1); } %} @@ -288,7 +300,7 @@ PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore, bool simulate=false) { eStaticServiceDVBBouquetInformation info; - if (info.isPlayable(bouquet_ref, ignore)) + if (info.isPlayable(bouquet_ref, ignore, simulate)) return New_eServiceReference(info.getPlayableService()); Py_INCREF(Py_None); return Py_None;