FireBirdLib - Topfield TMS PVR TAP Programming Library
LogoManager_GetLogoByChannel.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
6TYPE_GrData *LogoManager_GetLogoByChannel(int SvcType, int SvcNum, tLogoStyle LogoStyle, tLogoSize LogoSize, tLogoAspect LogoAR)
7{
9
10 ulong64 ChannelID;
11 tFlashService ServiceInfo;
12 TYPE_GrData *GrData;
13
15
16 if(!FlashServiceGetInfo(SvcType, SvcNum, &ServiceInfo))
17 {
18 TRACEEXIT();
19 return NULL;
20 }
21
22 //First retrieve by the channel name
23 GrData = LogoManager_GetLogoByChannelName(ServiceInfo.ServiceName, LogoStyle, LogoSize, LogoAR);
24 if(GrData)
25 {
26 TRACEEXIT();
27 return GrData;
28 }
29
30 //Logo not available via channel name, now try it via the ID
31 ChannelID = LogoManager_GetChannelID(SvcType, SvcNum);
32 GrData = LogoManager_GetLogoByChannelID(ChannelID, LogoStyle, LogoSize, LogoAR);
33
34 TRACEEXIT();
35 return GrData;
36}
void(* LogoManager_CB)(int CallbackType, int Param1)
bool FlashServiceGetInfo(int SvcType, int SvcNum, tFlashService *Service)
TYPE_GrData * LogoManager_GetLogoByChannel(int SvcType, int SvcNum, tLogoStyle LogoStyle, tLogoSize LogoSize, tLogoAspect LogoAR)
TYPE_GrData * LogoManager_GetLogoByChannelName(char *ChannelName, tLogoStyle LogoStyle, tLogoSize LogoSize, tLogoAspect LogoAR)
ulong64 LogoManager_GetChannelID(int SvcType, int SvcNum)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
TYPE_GrData * LogoManager_GetLogoByChannelID(ulong64 ChannelID, tLogoStyle LogoStyle, tLogoSize LogoSize, tLogoAspect LogoAR)
void LogoManager_Initialize(void *CallbackRoutine)
tLogoAspect
Definition: libFireBird.h:2247
tLogoSize
Definition: libFireBird.h:2239
tLogoStyle
Definition: libFireBird.h:2225
char ServiceName[MAX_SvcName+1]
Definition: libFireBird.h:1533