User`s guide

Dialogic
®
System Release 6.0 PCI for Windows
®
Release Update, Rev 62 — January 30, 2008 123
Dialogic Corporation
&t_CasTrain);
break;
default:
/* Process the error here */
return -1;
break;
}
/* Get the CAS_WINKRCV with new value */
t_result = gc_GetConfigData(GCTGT_PROTOCOL_SYSTEM, a_PDKProtocolID, t_pParmBlk, 0,
&t_RequestID, EV_ASYNC);
if (t_result)
{
/* Process the error */
gc_util_delete_parm_blk(t_pParmBlk);
return t_result;
}
gc_util_delete_parm_blk(t_pParmBlk);
return t_result;
}
typedef struct {
char name[50];
int type;
void * valuep;
} CDP_PARM;
int GetCDPVarParms(long a_PDKProtocolID, int a_NumParms, CDP_PARM * a_CDPVarParms, long *
a_pRequestID)
{
GC_PARM_BLK * t_pParmBlk = NULL;
unsigned short t_SetID;
unsigned short t_ParmID;
unsigned char t_ValType = 0;
int t_result = 0;
int index1 = 0;
if (!a_PDKProtocolID)
{
/* Process the error */
return -1;
}
if (!a_CDPVarParms)
{
/* Process the error */
return -1;
}
/* Support retrieving multiple CDP variables in a single gc_GetConfigData() function call */
for (index1 = 0; index1 < a_NumParms; index1 ++)
{
/* Find the {setID, parmID, valueType} of each CDP variable by its name: e.g.,
"CDP_ANI_ENABLED" in pdk_ar_r2_io.cdp */
t_result = QueryParmID(a_PDKProtocolID, a_CDPVarParms[index1].name, &t_SetID, &t_ParmID,
&t_ValType);
if (t_result)
{
/* Process the error */
gc_util_delete_parm_blk(t_pParmBlk);
return t_result;
}
if (t_SetID != PRSET_TSC_VARIABLE)
{
/* Not a CDP variable parameter */
gc_util_delete_parm_blk(t_pParmBlk);
return -1;
}