From: Andreas Monzner Date: Fri, 23 Dec 2005 02:01:05 +0000 (+0000) Subject: add ability to access eDVBLocalTimeHandler from python X-Git-Tag: 2.6.0~4614 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/1c384bc7cd9e5e2222c275a7a6b47bfd5712e870 add ability to access eDVBLocalTimeHandler from python --- diff --git a/lib/dvb/dvbtime.h b/lib/dvb/dvbtime.h index 34c5d5f6..a0b570dd 100644 --- a/lib/dvb/dvbtime.h +++ b/lib/dvb/dvbtime.h @@ -1,6 +1,8 @@ #ifndef __LIB_DVB_DVBTIME_H_ #define __LIB_DVB_DVBTIME_H_ +#ifndef SWIG + #include #include #include @@ -33,6 +35,8 @@ public: int getUpdateCount() { return update_count; } }; +#endif // SWIG + class eDVBLocalTimeHandler: public Object { struct channel_data @@ -57,9 +61,12 @@ class eDVBLocalTimeHandler: public Object void updateTime(time_t tp_time, eDVBChannel*, int updateCount); static eDVBLocalTimeHandler *instance; public: +#ifndef SWIG PSignal0 m_timeUpdated; eDVBLocalTimeHandler(); ~eDVBLocalTimeHandler(); +#endif + time_t nowTime() const { return m_time_ready ? ::time(0)+m_time_difference : -1; } bool ready() const { return m_time_ready; } int difference() const { return m_time_difference; } static eDVBLocalTimeHandler *getInstance() { return instance; } diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index d0d46723..8d18e416 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -72,6 +72,7 @@ is usually caused by not marking PSignals as immutable. #include #include #include +#include #include #include #include @@ -168,6 +169,7 @@ typedef long time_t; %include %include %include +%include %include %include %include