X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2Fenigma_python.i;h=9891fb3b02c09051abebe3ae4751bbe396076db5;hb=2872929ce24198202fa096d28ab94dea9f925450;hp=19fb9254bf0d5068efaa47ad33aa9652cdcd9e8d;hpb=453af6ce0630079409e4245c6f7c74a117ee3de2;p=vuplus_dvbapp diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i old mode 100644 new mode 100755 index 19fb925..9891fb3 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -38,6 +38,7 @@ is usually caused by not marking PSignals as immutable. #define SWIG_COMPILE #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 @@ -89,6 +90,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -128,11 +130,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; @@ -155,6 +159,8 @@ typedef long time_t; %immutable eSocket_UI::socketStateChanged; %immutable eDVBResourceManager::frontendUseMaskChanged; %immutable eAVSwitch::vcr_sb_notifier; +%immutable eHdmiCEC::messageReceived; +%immutable eHdmiCEC::messageReceivedKey; %immutable ePythonMessagePump::recv_msg; %immutable eDVBLocalTimeHandler::m_timeUpdated; %include @@ -164,7 +170,7 @@ typedef long time_t; %include %include %include -%include +%include %include %include %include @@ -204,6 +210,7 @@ typedef long time_t; %include %include %include +%include %include %include %include @@ -259,6 +266,12 @@ public: $1 = $input->get(); } +%template(PSignal2VII) PSignal2; + +%typemap(out) PSignal2VII { + $1 = $input->get(); +} + %{ RESULT SwigFromPython(ePtr &result, PyObject *obj) { @@ -313,6 +326,14 @@ void setTunerTypePriorityOrder(int order) } %} +void setPreferredTuner(int); +%{ +void setPreferredTuner(int index) +{ + eDVBFrontend::setPreferredFrontend(index); +} +%} + /************** temp *****************/ /* need a better place for this, i agree. */ @@ -324,6 +345,8 @@ 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 setAnimation_current(int a); +extern void setAnimation_speed(int speed); %} extern void addFont(const char *filename, const char *alias, int scale_factor, int is_replacement); @@ -333,3 +356,5 @@ extern void quitMainloop(int exit_code); extern eApplication *getApplication(); extern const char *getEnigmaVersionString(); extern void dump_malloc_stats(void); +extern void setAnimation_current(int a); +extern void setAnimation_speed(int speed);