NCM_RemoveThirdPartyDevice( )
Description | Cautions | Example | Error Codes | See Also
NCMRetCode NCM_RemoveThirdPartyDevice(pDeviceName)
NCMDevice *pDeviceName NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_RemoveThirdPartyDevice( ) function deletes a third party device's TDM bus configuration information from the Intel® Dialogic system. This function also releases all time slots that are allocated to the deleted third party device.
- Note: If the third party device you are removing is the system's primary clock master, you must define a new primary clock master before calling the NCM_RemoveThirdPartyDevice( ) function.
The function parameters are defined as follows:
pDeviceName pointer to the data structure containing the name of the third party device being deleted. The device name must be the same name you used to add the third party device to the system configuration with the NCM_AddThirdPartyDevice( ) function Cautions
You cannot set the pDeviceName parameter to NULL.
Example
#include "NCMApi.h" NCMDevice deviceName; Char DeviceString[] = "ThirdPartyDevice-XYZ#1"; deviceName.name = (char *)DeviceString; deviceName.next = NULL; //call NCM API function ncmRc = NCM_RemoveThirdPartyDevice(deviceName); if (ncmRc !=NCM_SUCCESS) { /*process error*/ } else { /*process success*/ } ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation