FireBirdLib - Topfield TMS PVR TAP Programming Library
FlashFavoritesGetTotal.c
Go to the documentation of this file.
1#include "FBLib_flash.h"
2
4{
6
7 int i, NrGroups, NrSvcsPerGroup;
8 tFavorites *Favs30100;
9 tFavorites1050 *Favs1050;
10
12 Favs1050 = (tFavorites1050*)Favs30100;
13
14 if(!Favs30100)
15 {
16 TRACEEXIT();
17 return 0;
18 }
19
20 i = 0;
21
22 FlashFavoritesGetParameters(&NrGroups, &NrSvcsPerGroup);
23 switch(NrSvcsPerGroup)
24 {
25 case 100:
26 {
27 while(Favs30100->GroupName[0])
28 {
29 i++;
30 Favs30100++;
31 if(i >= NrGroups) break;
32 }
33 break;
34 }
35
36 case 50:
37 {
38 while(Favs1050->GroupName[0])
39 {
40 i++;
41 Favs1050++;
42 if(i >= NrGroups) break;
43 }
44 break;
45 }
46 }
47
48 TRACEEXIT();
49 return i;
50}
dword FIS_vFlashBlockFavoriteGroup(void)
void FlashFavoritesGetParameters(int *NrGroups, int *NrSvcsPerGroup)
int FlashFavoritesGetTotal(void)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
char GroupName[12]
Definition: FBLib_flash.h:218
char GroupName[12]
Definition: libFireBird.h:1733