FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashServiceAdd.c
Go to the documentation of this file.
1
#include "
FBLib_flash.h
"
2
3
bool
FlashServiceAdd
(
int
SvcType,
tFlashService
*Service)
4
{
5
TRACEENTER
();
6
7
int
NrServices;
8
word *nSvc;
9
bool
ret;
10
11
NrServices =
FlashServiceGetTotal
(SvcType);
12
13
if
(SvcType == SVC_TYPE_Tv)
14
nSvc = (word*)
FIS_vnTvSvc
();
15
else
16
nSvc = (word*)
FIS_vnRadioSvc
();
17
18
*nSvc = *nSvc + 1;
19
ret =
FlashServiceSetInfo
(SvcType, NrServices, Service);
20
21
TRACEEXIT
();
22
return
ret;
23
}
FBLib_flash.h
FIS_vnRadioSvc
dword FIS_vnRadioSvc(void)
Definition:
FIS_vnRadioSvc.c:3
FIS_vnTvSvc
dword FIS_vnTvSvc(void)
Definition:
FIS_vnTvSvc.c:3
FlashServiceAdd
bool FlashServiceAdd(int SvcType, tFlashService *Service)
Definition:
FlashServiceAdd.c:3
FlashServiceGetTotal
int FlashServiceGetTotal(int SvcType)
Definition:
FlashServiceGetTotal.c:3
FlashServiceSetInfo
bool FlashServiceSetInfo(int SvcType, int SvcNum, tFlashService *Service)
Definition:
FlashServiceSetInfo.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
tFlashService
Definition:
libFireBird.h:1515
flash
FlashServiceAdd.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3