Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves the current ISDN event mask cc_GetEvtMsk( )
117
!
! !
!
Cautions
None
!
! !
!
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";
ULONG *evtmskvalue;
USHORT uSubMask;
if ( cc_Open( &devhdl, devname,0)<0)
{
printf("Error opening device: errno = %d\n", errno);
exit(1);
}
if ( cc_GetEvtMsk (devhdl, &evtmskvalue) <0){
procdevfail(devhdl);
}
else {
/* check the event mask for enabled/disabled events */
uSubMask = (USHORT) (evtmskvalue);
if (CCMSK_ALERT && (uSubMask & CCMSK_ALERT) {
printf("ALERTING EVENT ENABLED\n");
}
if (CCMSK_PROCEEDING && (uSubMask & CCMSK_PROCEEDING) {
printf("PROCEEDING EVENT ENABLED\n");
}
if (CCMSK_PROGRESS && (uSubMask & CCMSK_PROGRESS) {
printf("PROGRESSING EVENT ENABLED\n");
}
if (CCMSK__SETUP_ACK && (uSubMask & CCMSK_SETUP_ACK) {
printf("SETUP_ACK event enabled for firmware to send SETUP_ACK\n");
}
}
.
.
etc...
.
.
.
.
} /* end main */