Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetLineDev( )

Description | Cautions | Example | Errors | See Also

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)

Top Of PageDescription

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( ).

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

If the function returns a value < 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.

Typically, a < 0 return code for the cc_GetLineDev( ) function indicates that the function reference (the CRN) is not valid for the function call.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated December, 2001