X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0c583555037c4d937caa03585cb5548282cddf09..46fd0ceb0b4850ffa9f2f3e1efd42b914eeef748:/lib/python/enigma_python.i?ds=sidebyside diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 9c4c013a..19fb9254 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -39,7 +39,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include -#include +#include #include #include #include @@ -50,6 +50,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -69,19 +70,20 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include #include #include #include -#include #include #include #include @@ -91,6 +93,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -132,7 +135,6 @@ typedef long time_t; %include %include -%immutable eTimer::timeout; %immutable eSocketNotifier::activated; %include %include @@ -141,9 +143,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; @@ -152,17 +152,19 @@ 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 %include @@ -184,6 +186,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -205,6 +208,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -262,7 +266,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,24 +284,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. */ @@ -304,6 +322,8 @@ extern void quitMainloop(int exit_code); 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); @@ -311,3 +331,5 @@ extern int getPrevAsciiCode(); extern void runMainloop(); extern void quitMainloop(int exit_code); extern eApplication *getApplication(); +extern const char *getEnigmaVersionString(); +extern void dump_malloc_stats(void);