retrieve parameters containing variable data cc_GetParmEx( )
145
Table 22. cc_GetParmEx( ) Parameter ID Definitions
Define Description Return values
DIRECTORY_NUMBER Directory Number String of length
parmdatalen
SPID_NUMBER
Service Provider
Identifier
String of length
parmdatalen
SUBADDR_NUMBER Subaddress Number String of length
parmdatalen
!
! !
!
Cautions
None
!
! !
!
Example
#include <windows.h> /* For Windows applications only */
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "srllib.h"
#include "dtilib.h"
#include "cclib.h"
void main()
{
LINEDEV devhdl = 0;
CRN crn = 0;
char *devname = "dtiB1T1";
PARM_INFO parminfo, parm_ret_value;
char databuffer[256];
if ( cc_Open( &devhdl, devname,0)<0)
{
printf("Error opening device: errno = %d\n", errno);
exit(1);
}
/* initialize PARM_INFO structure */
parminfo.parmdatalen = strlen(DN);
strcpy (parminfo.parmdata, DN); /* directory number */
/* Specify the Directory Number */
if cc_SetParmEx(ldev, DIRECTORY_NUMBER, &parminfo) < 0)
{
printf("Error in cc_SetParmEx(): %d\n", cc_CauseValue(ldev);
}
/* Get the Directory Number */
if ( cc_GetParmEx(devhdl, DIRECTORY_NUMBER, &parm_ret_value) <0)