gc_StopTrace( )
Termination Events | Cautions | Errors | Example | See Also
Description
The gc_StopTrace( ) function stops the logging of debug information that was started using the gc_StartTrace( ) function and closes the trace file.
linedev Global Call line device handle Termination Events
Cautions
If this function is invoked for an unsupported technology, the function fails. The error value EGC_UNSUPPORTED will be the Global Call value returned when the gc_ErrorInfo( ) function is used to retrieve the error code.
Errors
If this function returns <0 to indicate failure, use the gc_ErrorInfo( ) function to retrieve the reason for the error. See the "Error Handling" section in the Global Call API Programming Guide. All Global Call error codes are defined in the gcerr.h file. If the error returned is technology specific, see the technology-specific error header file(s) for the error definition (for example, ccerr.h or isdnerr.h file for the ISDN call control library).
Example
#include <stdio.h> #include <srllib.h> #include <gclib.h> #include <gcerr.h> LINEDEV bdev; /* board level device number */ int parm_id; /* parameter id */ int rc; /* Return code */ int value; /* value to be for the specified parameter */ int D_CH_hdl; /* identify D channel to be traced */ char *filename; /* file name for the trace */ GC_INFO gc_error_info; /* GlobalCall error information data */ main() { /* Only one D channel can be traced at any given time. */ . . . rc = gc_StopTrace(bdev); if(rc != GC_SUCCESS) { printf("Error in gc_StopTrace, rc = %x\n", rc); } else { /* Process event */ } . . . }See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation