Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves the logical data link state cc_GetDLinkState( )
109
Name:
int cc_GetDLinkState(bdev, dlinkptr, state_buf)
Inputs:
LINEDEV bdev
device handle
DLINK *dlinkptr
pointer to data link information
block
int *state_buf
pointer to location of D channel
state
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
System tools
Mode:
synchronous
Technology:
BRI/2; BRI/SC; PRI (all protocols)
!
! !
!
Description
The cc_GetDLinkState( ) function retrieves the logical data link state (operable,
inoperable or disabled) of the specified board device for PRI or station device for
BRI.
Parameter Description
bdev:
Board device handle for PRI, station device handle for BRI.
dlinkptr:
Pointer to the data link information block (DLINK). See Section
6.4. DLINK for a definition of the data link information block
data structure. See the Example code for details.
state_buf:
Pointer to the buffer containing the requested data link state
value. Possible data link states are:
DATA_LINK_UP channel layer 2 is operable
DATA_LINK_DOWN channel layer 2 is inoperable
DATA_LINK_DISABLED channel layer 2 was disabled
and cannot be reestablished
!
! !
!
Cautions
None