X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2Fenigma_python.i;h=2816e09050ba184265b6d63dfc8c85c2d87c7714;hp=7f141a949d47aa35d355a15ac69c27f8e41c2f8d;hb=be4aa74e26480dc08d7eb4ea2565fc02d0b1e414;hpb=04ddd458458ad1087173c5a1854677288d47c453 diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i old mode 100644 new mode 100755 index 7f141a9..2816e09 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -38,8 +38,9 @@ is usually caused by not marking PSignals as immutable. #define SWIG_COMPILE #include #include +#include #include -#include +#include #include #include #include @@ -50,7 +51,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include +#include #include #include #include @@ -70,6 +71,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -97,6 +99,8 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include +#include %} %feature("ref") iObject "$this->AddRef(); /* eDebug(\"AddRef (%s:%d)!\", __FILE__, __LINE__); */ " @@ -127,11 +131,13 @@ is usually caused by not marking PSignals as immutable. #define DEBUG +#define BUILD_VUPLUS typedef long time_t; %include "typemaps.i" %include "std_string.i" %include %include +%include %include %immutable eSocketNotifier::activated; @@ -142,9 +148,7 @@ typedef long time_t; %include // TODO: embed these... -%immutable eConsoleAppContainer::appClosed; -%immutable eConsoleAppContainer::dataAvail; -%immutable eConsoleAppContainer::dataSent; +%immutable ePicLoad::PictureData; %immutable eButton::selected; %immutable eInput::changed; %immutable eComponentScan::statusChanged; @@ -159,13 +163,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 %include @@ -187,6 +191,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -214,6 +219,8 @@ typedef long time_t; %include %include %include +%include +%include /************** eptr **************/ /************** signals **************/ @@ -266,7 +273,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; @@ -281,18 +291,21 @@ 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); } %} /* needed for service groups */ -PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore); +PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore, bool simulate=false); %{ -PyObject *getBestPlayableServiceReference(const eServiceReference &bouquet_ref, const eServiceReference &ignore) +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;