FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_TAP_GetStartParameter.c
Go to the documentation of this file.
1
#include <sys/types.h>
2
#include <sys/shm.h>
3
#include "
FBLib_tap.h
"
4
5
void
*
HDD_TAP_GetStartParameter
(
void
)
6
{
7
TRACEENTER
();
8
9
int
shmidParameterBlock;
10
void
*ret;
11
12
shmidParameterBlock = shmget(
PARAMBLOCKKEY
,
sizeof
(
TYPE_Parametered_Tap
), 0);
13
if
(shmidParameterBlock == -1)
14
{
15
TRACEEXIT
();
16
return
NULL;
17
}
18
19
fbl_parametered_tap
= (
TYPE_Parametered_Tap
*)shmat(shmidParameterBlock, 0, 0);
20
if
((
int
)
fbl_parametered_tap
== -1)
21
{
22
TRACEEXIT
();
23
return
NULL;
24
}
25
26
ret = (
void
*)
fbl_parametered_tap
->
pParameterBlock
;
27
28
TRACEEXIT
();
29
return
ret;
30
}
FBLib_tap.h
fbl_parametered_tap
TYPE_Parametered_Tap * fbl_parametered_tap
Definition:
HDD_TAP_Start.c:6
PARAMBLOCKKEY
#define PARAMBLOCKKEY
Definition:
FBLib_tap.h:9
HDD_TAP_GetStartParameter
void * HDD_TAP_GetStartParameter(void)
Definition:
HDD_TAP_GetStartParameter.c:5
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TYPE_Parametered_Tap
Definition:
FBLib_tap.h:17
TYPE_Parametered_Tap::pParameterBlock
dword pParameterBlock
Definition:
FBLib_tap.h:20
tap
HDD_TAP_GetStartParameter.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3