Previous PageTable Of Contents../index.htmlIndexNext Page

cc_GetVer( )

Description | Cautions | Example | Errors | See Also

Name:

int cc_GetVer(linedev, majorp, minorp)

Inputs:

LINEDEV linedev

  line device handle

 

int *majorp

  pointer to major number

 

int *minorp

  pointer to minor number

Returns:

0 on success
< 0 on failure

Includes:

cclib.h

Category:

Optional call handling

Mode:

synchronous

Technology:

BRI/2; BRI/SC; PRI (all protocols)

Top Of PageDescription

The cc_GetVer( ) function retrieves the firmware version number associated with the specified line device handle. The firmware version number consists of two parts: the major version number and the minor version number.

Parameter

Description

linedev:

The specified line device handle.

majorp:

Pointer to the space prepared to receive the major firmware version number.

minorp:

Pointer to the space prepared to receive the minor firmware version number.

Top Of PageCautions

None

Top Of PageExample

Top Of PageErrors

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.

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

Top Of PageSee Also

None


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