Dialogic 05-0867-005 Table Top Game User Manual


 
retrieves the line device handle for an event cc_GetLineDev( )
125
Name:
int cc_GetLineDev(linedevp, evtdatap)
Inputs:
LINEDEV *linedevp
pointer to the line device handle
void *evtdatap
pointer to an event block
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_GetLineDev( ) function retrieves the line device handle for an event from
the event queue.
Parameter Description
linedevp:
Pointer to the space containing the line device handle.
evtdatap:
Pointer to the structure containing the event data. The pointer
value is acquired through the Dialogic SRL function
sr_getevtdatap( ).
!
! !
!
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"
main()
{
.
.
.
.
if ( sr_enbhdlr( devhdl,CCEV_DISCONNECTED,discCallHdlr)<0)
{
printf( "dtiEnable for DISCONNECT failed: %s\n",