return ((bcd&0xF0)>>4)*10+(bcd&0xF);
}
+inline int toBCD(int dec)
+{
+ if (dec >= 100)
+ return -1;
+ return int(dec/10)*0x10 + dec%10;
+}
+
time_t parseDVBtime(__u8 t1, __u8 t2, __u8 t3, __u8 t4, __u8 t5);
class TDT: public eGTable
eDVBChannel *chan;
ePtr<iDVBDemux> demux;
eTimer m_interval_timer;
- int createTable(int nr, const __u8 *data, unsigned int max);
+ int createTable(unsigned int nr, const __u8 *data, unsigned int max);
void ready(int);
int update_count;
public:
#endif
public:
#ifndef SWIG
- PSignal0<void> m_timeUpdated;
eDVBLocalTimeHandler();
~eDVBLocalTimeHandler();
#endif
+ PSignal0<void> m_timeUpdated;
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; }