FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_TAP_CheckCollision.c
Go to the documentation of this file.
1
#include <string.h>
2
#include "
FBLib_tap.h
"
3
4
bool
HDD_TAP_CheckCollision
(
void
)
5
{
6
TRACEENTER
();
7
8
char
*myTAPFileName, *TAPFileName;
9
dword i;
10
bool
TAPCollision;
11
12
if
(!
LibInitialized
&& !
InitTAPex
())
13
{
14
TRACEEXIT
();
15
return
FALSE;
16
}
17
18
TAPCollision = FALSE;
19
20
//Get the path to myself
21
if
(
HDD_TAP_GetFileNameByIndex
(
TAP_TableIndex
, &myTAPFileName) && myTAPFileName)
22
{
23
//Check all other TAPs
24
for
(i = 0; i < 16; i++)
25
if
((i !=
TAP_TableIndex
) &&
HDD_TAP_GetFileNameByIndex
(i, &TAPFileName) && TAPFileName && (strcmp(TAPFileName, myTAPFileName) == 0))
26
{
27
TAPCollision = TRUE;
28
break
;
29
}
30
}
31
32
TRACEEXIT
();
33
return
TAPCollision;
34
}
LibInitialized
bool LibInitialized
Definition:
InitTAPex.c:8
FBLib_tap.h
HDD_TAP_CheckCollision
bool HDD_TAP_CheckCollision(void)
Definition:
HDD_TAP_CheckCollision.c:4
InitTAPex
bool InitTAPex(void)
Definition:
InitTAPex.c:10
HDD_TAP_GetFileNameByIndex
bool HDD_TAP_GetFileNameByIndex(int Index, char **TAPFileName)
Definition:
HDD_TAP_GetFileNameByIndex.c:3
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TAP_TableIndex
dword TAP_TableIndex
Definition:
InitTAPex.c:7
tap
HDD_TAP_CheckCollision.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3