X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/cff3511b75d95143bcd315ade417a41aa1d8316e..9a387d949dc2188928fbc19e6cf73da0041dd102:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index ee5a13ba..2fec2ff1 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -39,7 +39,6 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include #include #include #include @@ -50,7 +49,6 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include #include #include #include @@ -71,6 +69,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -93,6 +92,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -134,7 +134,6 @@ typedef long time_t; %include %include -%immutable eTimer::timeout; %immutable eSocketNotifier::activated; %include %include @@ -143,9 +142,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; @@ -154,18 +151,17 @@ typedef long time_t; %immutable pNavigation::m_record_event; %immutable eListbox::selectionChanged; %immutable eDVBCI_UI::ciStateChanged; +%immutable eSocket_UI::socketStateChanged; %immutable eDVBResourceManager::frontendUseMaskChanged; %immutable eAVSwitch::vcr_sb_notifier; %immutable ePythonMessagePump::recv_msg; %immutable eDVBLocalTimeHandler::m_timeUpdated; %include -%include %include %include %include %include %include -%include %include %include %include @@ -188,6 +184,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -209,6 +206,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -266,7 +264,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,24 +282,35 @@ 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; } %} +void setTunerTypePriorityOrder(int); +%{ +void setTunerTypePriorityOrder(int order) +{ + eDVBFrontend::setTypePriorityOrder(order); +} +%} + /************** temp *****************/ /* need a better place for this, i agree. */ @@ -309,6 +321,7 @@ extern eApplication *getApplication(); extern int getPrevAsciiCode(); extern void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement); extern const char *getEnigmaVersionString(); +extern void dump_malloc_stats(void); %} extern void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement); @@ -317,3 +330,4 @@ extern void runMainloop(); extern void quitMainloop(int exit_code); extern eApplication *getApplication(); extern const char *getEnigmaVersionString(); +extern void dump_malloc_stats(void);