ipm_Close( )
Termination Events | Cautions | Errors | Example | See Also
Name: int ipm_Close(nDeviceHandle, *pCloseInfo) Inputs:
Returns: Includes: Category: Mode: Platform: Description
The ipm_Close( ) function closes an IP channel device and disables the generation of all events.
nDeviceHandle IP Media device handle returned by ipm_Open( ) pCloseInfo set to NULL; reserved for future use Termination Events
None - this function operates in synchronous mode only.
Cautions
- The pCloseInfo pointer is reserved for future use and must be set to NULL.
- Issuing a call to ipm_Open( ) or ipm_Close( ) while the device is being used by another process will not affect the current operation of the device. Other handles for that device that exist in the same process or other processes will still be valid. The only process affected by ipm_Close( ) is the process that called the function.
Errors
If the function returns -1 to indicate failure, call ATDV_LASTERR( ) and ATDV_ERRMSGP( ) to return one of the following errors:
- EIPM_BADPARM
- Invalid parameter
- EIPM_CONFIG
- Configuration error
- EIPM_FWERROR
- Firmware error
Example
#include <stdio.h> #include <srllib.h> #include <ipmlib.h> void main() { int nDeviceHandle; /* . Main Processing . . . */ /* Application is shutting down. Need to close IP device handle. ASSUMPTION: A valid nDeviceHandle was obtained from prior call to ipm_Open(). */ if(ipm_Close(nDeviceHandle, NULL) == -1) { printf("----------->ipm_Close() failed for handle = %d\n", nDeviceHandle); /* . . Perform Error Processing . . */ } /* . . . Continue cleanup . . */ }See Also
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation