FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashServiceAdd.c
Go to the documentation of this file.
1#include "FBLib_flash.h"
2
3bool FlashServiceAdd(int SvcType, tFlashService *Service)
4{
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}
dword FIS_vnRadioSvc(void)
Definition: FIS_vnRadioSvc.c:3
dword FIS_vnTvSvc(void)
Definition: FIS_vnTvSvc.c:3
bool FlashServiceAdd(int SvcType, tFlashService *Service)
int FlashServiceGetTotal(int SvcType)
bool FlashServiceSetInfo(int SvcType, int SvcNum, tFlashService *Service)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243