Dialogic
®
System Release 6.1 CompactPCI for Windows
®
Release Update 144
GC_L2_BLK recvfrmptr; /* Buffer to store received frame */
.
.
.
case GCEV_L2FRAME:
/* retrieve signaling information from queue */
if ( gc_GetFrame(ldev, &recvfrmptr) != GC_SUCCESS)
to this:
L2_BLK l2ie;
GC_L2_BLK recvfrmptr; /* Buffer to store received frame */
.
.
.
recvfrmptr.cclib = (void *)&l2ie;
case GCEV_L2FRAME:
/* retrieve signaling information from queue */
if ( gc_GetFrame(ldev, &recvfrmptr) != GC_SUCCESS)
Update to gc_util_insert_parm_val( ) (IPY00043078)
In the description for gc_util_insert_parm_val( ), a note should be added stating that
gc_Start( ) must be called before gc_util_insert_parm_val( ). Also, the code
example should be replaced with the following:
#include <stdio.h>
#include <srllib.h>
#include <gclib.h>
#include <gcerr.h>
void main( )
{
GC_PARM_BLKP my_blkp = NULL;
GC_PARM_DATAP my_parmp;
GC_INFO gc_error_info; /* GlobalCall error information data */
int type = 1;
/* Issue a gc_Start() call to initialize the library */
if ( gc_Start(NULL) != GC_SUCCESS )
{
/* process error return as shown */
gc_ErrorInfo( &gc_error_info );
printf ("Error: gc_Start(), GC ErrorValue: 0x%hx - %s, CCLibID: %i - %s,
CC ErrorValue: 0x%lx - %s\n", gc_error_info.gcValue, gc_error_info.gcMsg,
gc_error_info.ccLibId, gc_error_info.ccLibName,
gc_error_info.ccValue, gc_error_info.ccMsg);
return (gc_error_info.gcValue);
}
/* insert parm by reference */
if ( gc_util_insert_parm_ref( &my_blkp, GC_SET_SERVREQ, PARM_REQTYPE,
sizeof( int ), &type ) != GC_SUCCESS )
{
/* Process error */
}
/* insert parm by value */
if ( gc_util_insert_parm_val( &my_blkp, GC_SET_SERVREQ, PARM_ACK,
sizeof( short ), GC_ACK ) != GC_SUCCESS )
{
/* Process error */
}
/* Now we should have a GC_PARM_BLK with 2 parameters */
Kommentare zu diesen Handbüchern