Dialogic 05-0867-005 Table Top Game User Manual


 
cc_SetDLinkState( ) set the logical data link state
232
LINEDEV ldev;
main()
{
DLINK dlink;
int state;
.
.
.
/* Establish the data link on SAPI 0, CES 1 */
dlink.sapi = 0;
dlink.ces = 0;
state = DATA_LINK_UP;
if(cc_SetDLinkState(ldev, &dlink, &state) < 0) {
printf(error);
} else {
.
.
.
}
}
!
! !
!
Errors
If the function returns < 0 to indicate failure, use the cc_CauseValue( ) function
to retrieve the reason code for the failure. The cc_ResultMsg( ) function can be
used to interpret the reason code. Error codes are defined in the files ccerr.h,
isdnerr.h, and isdncmd.h.
Error codes from the cc_SetDLinkState( ) function include the following:
Error Code Description
E_BADDEV | ERR_ISDN_LIB Bad Device Descriptor
E_INVNDIINTERFACE | ERR_ISDN_LIB Invalid NDI Interface
E_INVNRB | ERR_ISDN_LIB Invalid NRB
!
! !
!
See Also
cc_GetDLinkState( )