FireBirdLib - Topfield TMS PVR TAP Programming Library
LogoManager_GetServiceNumByChannelID.c
Go to the documentation of this file.
1#include "libFireBird.h"
2#include "FBLib_LogoManager.h"
3
4bool LogoManager_GetServiceNumByChannelID(ulong64 ChannelID, int *SvcType, int *SvcNum)
5{
7
8 int i, NrTVChannels, NrRadioChannels;
9
10 TAP_Channel_GetTotalNum(&NrTVChannels, &NrRadioChannels);
11
12 for(i = 0; i < NrTVChannels; i++)
13 if(LogoManager_GetChannelID(SVC_TYPE_Tv, i) == ChannelID)
14 {
15 if(SvcType) *SvcType = SVC_TYPE_Tv;
16 if(SvcNum) *SvcNum = i;
17
18 TRACEEXIT();
19 return TRUE;
20 }
21
22 for(i = 0; i < NrRadioChannels; i++)
23 if(LogoManager_GetChannelID(SVC_TYPE_Radio, i) == ChannelID)
24 {
25 if(SvcType) *SvcType = SVC_TYPE_Radio;
26 if(SvcNum) *SvcNum = i;
27
28 TRACEEXIT();
29 return TRUE;
30 }
31
32
33 TRACEEXIT();
34 return FALSE;
35}
bool LogoManager_GetServiceNumByChannelID(ulong64 ChannelID, int *SvcType, int *SvcNum)
ulong64 LogoManager_GetChannelID(int SvcType, int SvcNum)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243