X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/afe7d8cacb1875f0e86a9f970dac9280dba20462..46d6cb52745b2e8f624fa1ba955c50f846a2be12:/lib/python/enigma_python.i diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 01a73108..7c999277 100644 --- 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,6 +51,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -69,21 +71,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 #include #include @@ -93,6 +94,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -132,9 +134,9 @@ typedef long time_t; %include "std_string.i" %include %include +%include %include -%immutable eTimer::timeout; %immutable eSocketNotifier::activated; %include %include @@ -143,9 +145,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,17 +154,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 @@ -186,6 +188,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -207,6 +210,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -264,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; @@ -279,24 +286,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. */ @@ -306,6 +324,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); @@ -313,3 +333,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);