FireBirdLib - Topfield TMS PVR TAP Programming Library
EPGInfo_FindItem.c
Go to the documentation of this file.
1
#include "
FBLib_EPG.h
"
2
3
bool
EPGInfo_FindItem
(
TYPE_EPGInfo
*EPGData,
int
EPGIndex,
bool
EPGReset)
4
{
5
TRACEENTER
();
6
7
if
((EPGIndex >=
EPGInfoNrEntries
) || (EPGIndex < 0))
8
{
9
if
(EPGData) memset(EPGData, 0,
sizeof
(
TYPE_EPGInfo
));
10
11
TRACEEXIT
();
12
return
FALSE;
13
}
14
15
if
(EPGData)
16
{
17
if
(
EPGInfoReverseOrder
)
18
{
19
memcpy(EPGData, &
EPGInfoCache
[
EPGInfoNrEntries
- EPGIndex - 1],
sizeof
(
TYPE_EPGInfo
));
20
if
(EPGReset)
EPGInfoCurrentEntry
= EPGIndex;
21
}
22
else
23
{
24
memcpy(EPGData, &
EPGInfoCache
[EPGIndex],
sizeof
(
TYPE_EPGInfo
));
25
if
(EPGReset)
EPGInfoCurrentEntry
= EPGIndex;
26
}
27
}
28
29
TRACEEXIT
();
30
return
TRUE;
31
}
EPGInfoReverseOrder
bool EPGInfoReverseOrder
Definition:
EPGInfo_FindFirst.c:11
EPGInfoCurrentEntry
int EPGInfoCurrentEntry
Definition:
EPGInfo_FindFirst.c:5
EPGInfoNrEntries
int EPGInfoNrEntries
Definition:
EPGInfo_FindFirst.c:4
EPGInfoCache
TYPE_EPGInfo * EPGInfoCache
Definition:
EPGInfo_FindFirst.c:9
EPGInfo_FindItem
bool EPGInfo_FindItem(TYPE_EPGInfo *EPGData, int EPGIndex, bool EPGReset)
Definition:
EPGInfo_FindItem.c:3
FBLib_EPG.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TYPE_EPGInfo
Definition:
libFireBird.h:1297
EPG
EPGInfo_FindItem.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3