Dialogic 05-0867-005 Table Top Game User Manual


 
cc_Close( ) closes a previously opened line device
70
Name:
int cc_Close(linedev)
Inputs:
LINEDEV linedev
line device handle
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System control
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_Close( ) function closes a previously opened line device. The application
can no longer access the device via the specified line device handle after this
function is called.
Parameter Description
linedev:
The line device handle returned when the line device is opened.
!
! !
!
Cautions
The cc_Close( ) function affects only the link between the calling process and
the device. Other processes and devices are unaffected.
The cc_Close( ) function must be issued while the line device is in the Null
state. The Null state occurs immediately after a call to either cc_Open( ),
cc_ReleaseCall( ) or cc_ReleaseCallEx( ).
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
void main()
{
LINEDEV devhdl = 0;
CRN crn = 0;
char *devname = "dtiB1T1";
if ( cc_Open( &devhdl, devname,0)<0)
{