FireBirdLib - Topfield TMS PVR TAP Programming Library
LogoManager_GetChannelID.c
Go to the documentation of this file.
1#include <string.h>
2#include <stdlib.h>
3#include "libFireBird.h"
4#include "FBLib_LogoManager.h"
5
6ulong64 LogoManager_GetChannelID(int SvcType, int SvcNum)
7{
9
10 tFlashService ServiceInfo;
11 tFlashSatTable SatInfo;
12 tFlashTransponderTable TransponderInfo;
13 ulong64 ChannelID;
14
15 if(!FlashServiceGetInfo(SvcType, SvcNum, &ServiceInfo))
16 {
17 TRACEEXIT();
18 return 0;
19 }
20
21 if(!FlashSatTablesGetInfo(ServiceInfo.SatIndex, &SatInfo))
22 {
23 TRACEEXIT();
24 return 0;
25 }
26
27 if(!FlashTransponderTablesGetInfo(ServiceInfo.SatIndex, ServiceInfo.TransponderIndex, &TransponderInfo))
28 {
29 TRACEEXIT();
30 return 0;
31 }
32
33 ChannelID = LogoManager_CalculateChannelID(SatInfo.SatPosition, TransponderInfo.OriginalNetworkID, TransponderInfo.TSID, ServiceInfo.ServiceID);
34
35 TRACEEXIT();
36 return ChannelID;
37}
bool FlashSatTablesGetInfo(int SatNum, tFlashSatTable *SatTable)
bool FlashServiceGetInfo(int SvcType, int SvcNum, tFlashService *Service)
bool FlashTransponderTablesGetInfo(int SatNum, int TransponderNum, tFlashTransponderTable *TransponderTable)
ulong64 LogoManager_GetChannelID(int SvcType, int SvcNum)
ulong64 LogoManager_CalculateChannelID(word SatLongitude, word NetworkID, word TSID, word ServiceID)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
word TransponderIndex
Definition: libFireBird.h:1523