FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_GetPvrRecTsPlayInfoPointer.c
Go to the documentation of this file.
1#include <string.h>
2#include "FBLib_rec.h"
3
5{
7
8 byte *__pvrRecTsPlayInfo;
9 byte *__pvrRecTempInfo;
10 int StructSize = 0x774;
11 byte *ret;
12
13 if(Slot > HDD_NumberOfRECSlots())
14 {
15 TRACEEXIT();
16 return NULL;
17 }
18
19 __pvrRecTempInfo = (byte*)FIS_vPvrRecTempInfo();
20 if(!__pvrRecTempInfo)
21 {
22 TRACEEXIT();
23 return NULL;
24 }
25
26 __pvrRecTsPlayInfo = (byte*)FIS_vPvrRecTsPlayInfo();
27 if(!__pvrRecTsPlayInfo)
28 {
29 TRACEEXIT();
30 return NULL;
31 }
32
33 StructSize = ((dword)__pvrRecTempInfo - (dword)__pvrRecTsPlayInfo) / (HDD_NumberOfRECSlots() + 1);
34
35 ret = &__pvrRecTsPlayInfo[StructSize * Slot];
36
37 TRACEEXIT();
38 return ret;
39}
dword FIS_vPvrRecTempInfo(void)
dword FIS_vPvrRecTsPlayInfo(void)
byte * HDD_GetPvrRecTsPlayInfoPointer(byte Slot)
#define TRACEEXIT()
Definition: libFireBird.h:1244
#define TRACEENTER()
Definition: libFireBird.h:1243
dword HDD_NumberOfRECSlots(void)