FireBirdLib - Topfield TMS PVR TAP Programming Library
TAPCOM_CloseChannel.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
FBLib_tapcom.h
"
3
4
void
TAPCOM_CloseChannel
(
TAPCOM_Channel
Channel)
5
{
6
TRACEENTER
();
7
8
TAPCOM_InternalMesBuf
*buf = (
TAPCOM_InternalMesBuf
*) Channel;
9
10
if
(
isValidChannel
(Channel) && (buf->
FromID
==
__tap_ud__
))
11
{
12
buf->
tapcomSignature
= 0;
13
TAP_MemFree(Channel);
14
}
15
16
TRACEEXIT
();
17
}
FBLib_tapcom.h
isValidChannel
bool isValidChannel(TAPCOM_Channel Channel)
Definition:
isValidChannel.c:3
__tap_ud__
const dword __tap_ud__
TAPCOM_CloseChannel
void TAPCOM_CloseChannel(TAPCOM_Channel Channel)
Definition:
TAPCOM_CloseChannel.c:4
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TAPCOM_Channel
void * TAPCOM_Channel
Definition:
libFireBird.h:2661
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
TAPCOM_InternalMesBuf
Definition:
FBLib_tapcom.h:18
TAPCOM_InternalMesBuf::tapcomSignature
dword tapcomSignature
Definition:
FBLib_tapcom.h:19
TAPCOM_InternalMesBuf::FromID
dword FromID
Definition:
FBLib_tapcom.h:22
tapcom
TAPCOM_CloseChannel.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3