13 dword EventStartTime, EventEndTime;
14 bool isWithinTimeFrame,
isValidChannel, isWithinDuration, isGenreOK;
22 EvtInfoOffset = StructOffset /
sizeof(
tTreeEntry);
49 isWithinTimeFrame = TRUE;
64 isWithinDuration = TRUE;
88 if(isWithinTimeFrame &&
isValidChannel && isWithinDuration && isGenreOK)
90 EPGInfo_CopyData(EvtInfo, CurrentCacheRecord, EventStartTime, EventEndTime, Offset);
96 if(EPGFilterCallback(CurrentCacheRecord))
104 CurrentCacheRecord++;
112 }
while(Entry && (Entry->
Next != ListStart->
Prev));
void EPGInfo_CloneToCache(dword *TreePointer, byte StructOffset, tEPGFilter *EPGFilter)
void EPGInfo_CopyData(TYPE_EvtInfo *EvtInfo, TYPE_EPGInfo *EPGInfo, dword EventStartTime, dword EventEndTime, short Offset)
TYPE_EPGInfo * EPGInfoCache
bool isValidChannel(TAPCOM_Channel Channel)
bool FlashServiceFindNum(byte SatIndex, word NetworkID, word TSID, word ServiceID, TYPE_ServiceType *SvcType, int *SvcNum)
dword UTC2LocalTime(dword UTCTime, short *Offset)