Dialogic
®
Global Call IP Technology Guide — November 2007 429
Dialogic Corporation
copy the specified GC_PARM_BLK — gc_util_copy_parm_blk( )
Errors
If this function returns GC_ERROR(-1) to indicate failure, use the gc_ErrorInfo( ) function to
retrieve the reason for the error. See the “Error Handling” section in the Dialogic
®
Global Call API
Programming Guide. All Global Call error codes are defined in the gcerr.h file.
Example
#include "gclib.h"
#include "gcip.h"
void process_event(void)
{
METAEVENT metaevent;
GC_PARM_BLKP my_blkp = NULL;
if(gc_GetMetaEvent(&metaevent) != GC_SUCCESS)
{
/* process error */
}
Switch(metaevent.evttype)
{
case GCEV_OFFERED:
/* make a copy of the parm blk */
if(metaevent.extevtdatap)
{
if ( gc_util_copy_parm_blk( &my_blkp,(GC_PARM_BLKP)(metaevent.extevtdatap))
!= GC_SUCCESS )
{
/* Process error */
}
}
...
}
...
}
See Also
• gc_util_delete_parm_blk( )