FireBirdLib - Topfield TMS PVR TAP Programming Library
FBLib_EPG.h
Go to the documentation of this file.
1
#ifndef FBLIB_EPG_H
2
#define FBLIB_EPG_H
3
4
#include "../libFireBird.h"
5
#include "../time/FBLib_time.h"
6
7
#define MAXEPGRECORDS 10000
8
9
typedef
struct
10
{
11
bool
TimeFilter
;
12
dword
StartTime
;
13
dword
EndTime
;
14
15
bool
ChannelFilter
;
16
word
NetworkID
;
17
word
TSID
;
18
word
ServiceID
;
19
byte
SatIndex
;
20
bool
StartCurrent
;
21
22
bool
DurationFilter
;
23
word
MinDuration
;
24
word
MaxDuration
;
25
26
bool
GenreFilter
;
27
byte
*
GenreArray
;
28
byte
GenreArraySize
;
29
30
bool
UseCallback
;
31
void
*
Callback
;
32
}
tEPGFilter
;
33
34
typedef
struct
35
{
36
dword *
Next
;
37
dword *
Prev
;
38
}
tTreeEntry
;
39
40
typedef
struct
41
{
42
dword
DataStatus
:2;
//0000: ex unknown1d; 0=invalid, 1=data taken from _EIT_AIR.DAT, 2=data taken from OTA
43
dword
RunningStatus
:3;
44
dword
unknown1e
:7;
// always 0
45
dword
durationMin
:8;
46
dword
durationHour
:8;
47
dword
unknown1a
:4;
// always 0. Possibly unused
48
49
dword
EventID
;
//0004
50
dword
StartTime
;
//0008
51
dword
EndTime
;
//000c
52
byte
NameLength
;
//0010
53
byte
ParentalRate
;
//0011
54
word
NetworkID
;
//0012
55
word
TSID
;
//0014
56
word
ServiceID
;
//0016
57
word
SatIndex
;
//0018
58
byte
unknown6
;
//001a: 0 or 0x67 if lang is set
59
byte
lang[3];
//001b
60
word
unknown7
;
//001e: always 0
61
tTreeEntry
TreeByHash
;
//0020:
62
tTreeEntry
TreeFull
;
//0028:
63
char
*
ShortEventText
;
//0030
64
char
*
ExtEventText
;
//0034
65
byte
unknown10
;
//0038: always 0; accessed as byte
66
byte
unknown10a
;
//0039: possibly a alignment filler
67
word
ExtEventTextLength
;
//003a
68
69
//dword unknown11; //003c: addressed as dword by the firmware, not word, and therefore includes unknown12
70
dword
unknown11a
:8;
71
dword
unknown11b
:2;
//Ext Event Text available
72
dword
unknown11c
:1;
73
dword
unknown11d
:4;
//=unknown11a-1?
74
dword
unknown11e
:1;
75
dword
unknown11f
:16;
//possibly unused bits
76
77
dword
citID
;
//0040: ex unknown13; an ID of the _citInfo table. The same ID is available in TYPE_Timer_TMSS.unknown1
78
//68 Bytes
79
80
byte
ContentIdentifier
;
//0044: Content_nibble_level_2 / Content_nibble_level_1
81
byte
sourceFlag
;
//0045: 0 = FTA, 1 - ICE
82
word
unknown14
;
//0046
83
word
iceChannel
;
//0048
84
//72 Bytes
85
86
byte
unknown15[6];
//004a
87
//80 Bytes
88
}
TYPE_EvtInfo
;
89
90
extern
int
EPGInfoCacheEntries
;
91
extern
int
EPGInfoNrEntries
;
92
extern
int
EPGInfoCurrentEntry
;
93
extern
int
EPGInfoCacheFile
;
94
extern
dword
EPGInfoCacheSize
;
95
extern
byte
*
EPGInfoCacheMap
;
96
extern
TYPE_EPGInfo
*
EPGInfoCache
;
97
extern
tEPGFilter
EPGFilter
;
98
extern
bool
EPGInfoReverseOrder
;
99
extern
dword
EPGInfoStructSize
;
100
extern
char
EPGCacheFile
[40];
101
extern
int
EPGAbortLoad
;
102
103
bool
EPGInfo_CreateCache
(
int
NrRecords);
104
void
EPGInfo_CloneToCache
(dword *TreePointer,
byte
StructOffset,
tEPGFilter
*
EPGFilter
);
105
void
EPGInfo_DestroyCache
(
void
);
106
dword
EPGInfo_CountEvents
(dword *TreePointer);
107
dword
EPGInfo_CalculateStructSize
(
void
);
108
void
EPGInfo_CopyData
(
TYPE_EvtInfo
*EvtInfo,
TYPE_EPGInfo
*EPGInfo, dword EventStartTime, dword EventEndTime,
short
Offset);
109
110
#endif
EPGInfo_CloneToCache
void EPGInfo_CloneToCache(dword *TreePointer, byte StructOffset, tEPGFilter *EPGFilter)
Definition:
EPGInfo_CloneToCache.c:4
EPGCacheFile
char EPGCacheFile[40]
Definition:
EPGInfo_FindFirst.c:13
EPGInfo_CountEvents
dword EPGInfo_CountEvents(dword *TreePointer)
Definition:
EPGInfo_CountEvents.c:3
EPGFilter
tEPGFilter EPGFilter
Definition:
EPGInfo_FindFirst.c:10
EPGInfoCacheSize
dword EPGInfoCacheSize
Definition:
EPGInfo_FindFirst.c:7
EPGInfoCacheMap
byte * EPGInfoCacheMap
Definition:
EPGInfo_FindFirst.c:8
EPGAbortLoad
int EPGAbortLoad
Definition:
EPGInfo_FindFirst.c:14
EPGInfo_DestroyCache
void EPGInfo_DestroyCache(void)
Definition:
EPGInfo_DestroyCache.c:5
EPGInfo_CalculateStructSize
dword EPGInfo_CalculateStructSize(void)
Definition:
EPGInfo_CalculateStructSize.c:4
EPGInfoReverseOrder
bool EPGInfoReverseOrder
Definition:
EPGInfo_FindFirst.c:11
EPGInfoCurrentEntry
int EPGInfoCurrentEntry
Definition:
EPGInfo_FindFirst.c:5
EPGInfoNrEntries
int EPGInfoNrEntries
Definition:
EPGInfo_FindFirst.c:4
EPGInfoCacheEntries
int EPGInfoCacheEntries
Definition:
EPGInfo_FindFirst.c:3
EPGInfo_CreateCache
bool EPGInfo_CreateCache(int NrRecords)
Definition:
EPGInfo_CreateCache.c:9
EPGInfo_CopyData
void EPGInfo_CopyData(TYPE_EvtInfo *EvtInfo, TYPE_EPGInfo *EPGInfo, dword EventStartTime, dword EventEndTime, short Offset)
Definition:
EPGInfo_CopyData.c:4
EPGInfoCacheFile
int EPGInfoCacheFile
Definition:
EPGInfo_FindFirst.c:6
EPGInfoCache
TYPE_EPGInfo * EPGInfoCache
Definition:
EPGInfo_FindFirst.c:9
EPGInfoStructSize
dword EPGInfoStructSize
Definition:
EPGInfo_FindFirst.c:12
TYPE_EPGInfo
Definition:
libFireBird.h:1297
TYPE_EvtInfo
Definition:
FBLib_EPG.h:41
TYPE_EvtInfo::iceChannel
word iceChannel
Definition:
FBLib_EPG.h:83
TYPE_EvtInfo::unknown11b
dword unknown11b
Definition:
FBLib_EPG.h:71
TYPE_EvtInfo::unknown11f
dword unknown11f
Definition:
FBLib_EPG.h:75
TYPE_EvtInfo::RunningStatus
dword RunningStatus
Definition:
FBLib_EPG.h:43
TYPE_EvtInfo::TreeFull
tTreeEntry TreeFull
Definition:
FBLib_EPG.h:62
TYPE_EvtInfo::unknown6
byte unknown6
Definition:
FBLib_EPG.h:58
TYPE_EvtInfo::SatIndex
word SatIndex
Definition:
FBLib_EPG.h:57
TYPE_EvtInfo::unknown1e
dword unknown1e
Definition:
FBLib_EPG.h:44
TYPE_EvtInfo::ServiceID
word ServiceID
Definition:
FBLib_EPG.h:56
TYPE_EvtInfo::sourceFlag
byte sourceFlag
Definition:
FBLib_EPG.h:81
TYPE_EvtInfo::ParentalRate
byte ParentalRate
Definition:
FBLib_EPG.h:53
TYPE_EvtInfo::durationHour
dword durationHour
Definition:
FBLib_EPG.h:46
TYPE_EvtInfo::TreeByHash
tTreeEntry TreeByHash
Definition:
FBLib_EPG.h:61
TYPE_EvtInfo::TSID
word TSID
Definition:
FBLib_EPG.h:55
TYPE_EvtInfo::unknown11e
dword unknown11e
Definition:
FBLib_EPG.h:74
TYPE_EvtInfo::unknown1a
dword unknown1a
Definition:
FBLib_EPG.h:47
TYPE_EvtInfo::unknown10
byte unknown10
Definition:
FBLib_EPG.h:65
TYPE_EvtInfo::NetworkID
word NetworkID
Definition:
FBLib_EPG.h:54
TYPE_EvtInfo::NameLength
byte NameLength
Definition:
FBLib_EPG.h:52
TYPE_EvtInfo::DataStatus
dword DataStatus
Definition:
FBLib_EPG.h:42
TYPE_EvtInfo::unknown11a
dword unknown11a
Definition:
FBLib_EPG.h:70
TYPE_EvtInfo::unknown7
word unknown7
Definition:
FBLib_EPG.h:60
TYPE_EvtInfo::EventID
dword EventID
Definition:
FBLib_EPG.h:49
TYPE_EvtInfo::ExtEventText
char * ExtEventText
Definition:
FBLib_EPG.h:64
TYPE_EvtInfo::EndTime
dword EndTime
Definition:
FBLib_EPG.h:51
TYPE_EvtInfo::ShortEventText
char * ShortEventText
Definition:
FBLib_EPG.h:63
TYPE_EvtInfo::ContentIdentifier
byte ContentIdentifier
Definition:
FBLib_EPG.h:80
TYPE_EvtInfo::unknown10a
byte unknown10a
Definition:
FBLib_EPG.h:66
TYPE_EvtInfo::ExtEventTextLength
word ExtEventTextLength
Definition:
FBLib_EPG.h:67
TYPE_EvtInfo::unknown14
word unknown14
Definition:
FBLib_EPG.h:82
TYPE_EvtInfo::StartTime
dword StartTime
Definition:
FBLib_EPG.h:50
TYPE_EvtInfo::citID
dword citID
Definition:
FBLib_EPG.h:77
TYPE_EvtInfo::durationMin
dword durationMin
Definition:
FBLib_EPG.h:45
TYPE_EvtInfo::unknown11c
dword unknown11c
Definition:
FBLib_EPG.h:72
TYPE_EvtInfo::unknown11d
dword unknown11d
Definition:
FBLib_EPG.h:73
tEPGFilter
Definition:
FBLib_EPG.h:10
tEPGFilter::UseCallback
bool UseCallback
Definition:
FBLib_EPG.h:30
tEPGFilter::StartTime
dword StartTime
Definition:
FBLib_EPG.h:12
tEPGFilter::GenreFilter
bool GenreFilter
Definition:
FBLib_EPG.h:26
tEPGFilter::MaxDuration
word MaxDuration
Definition:
FBLib_EPG.h:24
tEPGFilter::StartCurrent
bool StartCurrent
Definition:
FBLib_EPG.h:20
tEPGFilter::GenreArray
byte * GenreArray
Definition:
FBLib_EPG.h:27
tEPGFilter::SatIndex
byte SatIndex
Definition:
FBLib_EPG.h:19
tEPGFilter::TSID
word TSID
Definition:
FBLib_EPG.h:17
tEPGFilter::EndTime
dword EndTime
Definition:
FBLib_EPG.h:13
tEPGFilter::Callback
void * Callback
Definition:
FBLib_EPG.h:31
tEPGFilter::GenreArraySize
byte GenreArraySize
Definition:
FBLib_EPG.h:28
tEPGFilter::TimeFilter
bool TimeFilter
Definition:
FBLib_EPG.h:11
tEPGFilter::ChannelFilter
bool ChannelFilter
Definition:
FBLib_EPG.h:15
tEPGFilter::DurationFilter
bool DurationFilter
Definition:
FBLib_EPG.h:22
tEPGFilter::MinDuration
word MinDuration
Definition:
FBLib_EPG.h:23
tEPGFilter::ServiceID
word ServiceID
Definition:
FBLib_EPG.h:18
tEPGFilter::NetworkID
word NetworkID
Definition:
FBLib_EPG.h:16
tTreeEntry
Definition:
FBLib_EPG.h:35
tTreeEntry::Next
dword * Next
Definition:
FBLib_EPG.h:36
tTreeEntry::Prev
dword * Prev
Definition:
FBLib_EPG.h:37
EPG
FBLib_EPG.h
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3