retrieves the firmware version number cc_GetVer( )
159
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)
!
! !
!
Description
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.
!
! !
!
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()
{short devhdl; /* device handle for D channel */
int majnum; /* major version number */