FireBirdLib - Topfield TMS PVR TAP Programming Library
EPGInfo_FilterGenre.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
FBLib_EPG.h
"
3
4
void
EPGInfo_FilterGenre
(
byte
*GenreArray,
byte
GenreArraySize)
5
{
6
TRACEENTER
();
7
8
if
(GenreArray && GenreArraySize)
9
{
10
TAP_MemFree(
EPGFilter
.
GenreArray
);
11
EPGFilter
.
GenreArray
= TAP_MemAlloc(GenreArraySize);
12
if
(
EPGFilter
.
GenreArray
)
13
{
14
memcpy(
EPGFilter
.
GenreArray
, GenreArray, GenreArraySize);
15
EPGFilter
.
GenreArraySize
= GenreArraySize;
16
EPGFilter
.
GenreFilter
= TRUE;
17
}
18
else
19
{
20
//Something went wrong during the memory allocation for the genre array
21
EPGFilter
.
GenreFilter
= FALSE;
22
EPGFilter
.
GenreArraySize
= 0;
23
}
24
}
25
else
26
{
27
EPGFilter
.
GenreFilter
= FALSE;
28
TAP_MemFree(
EPGFilter
.
GenreArray
);
29
EPGFilter
.
GenreArray
= NULL;
30
EPGFilter
.
GenreArraySize
= 0;
31
}
32
33
TRACEEXIT
();
34
}
EPGInfo_FilterGenre
void EPGInfo_FilterGenre(byte *GenreArray, byte GenreArraySize)
Definition:
EPGInfo_FilterGenre.c:4
EPGFilter
tEPGFilter EPGFilter
Definition:
EPGInfo_FindFirst.c:10
FBLib_EPG.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tEPGFilter::GenreFilter
bool GenreFilter
Definition:
FBLib_EPG.h:26
tEPGFilter::GenreArray
byte * GenreArray
Definition:
FBLib_EPG.h:27
tEPGFilter::GenreArraySize
byte GenreArraySize
Definition:
FBLib_EPG.h:28
EPG
EPGInfo_FilterGenre.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3