NCM_AddDevice( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_AddDevice( ) function instantiates a device in the system configuration. Upon adding the device, this function will establish default settings for all configuration parameters pertaining to the device. It also sets the device's System parameters based on the system's available resources (for more information, see Section 2.6.2, System Property Parameters).
The function parameters are defined as follows:
Cautions
Because devices are instantiated in the system configuration according to their unique device name, it is impossible to correlate an instantiated device with a device model name. Intel® Dialogic strongly recommends that you embed the device model name within the unique device name when you instantiate a device with the NCM_AddDevice( ) function.
The pncmFamily and pncmDeviceModel pointers must reference information that is valid in the current DCM Catalog. For information about how to determine which families, devices, and configuration parameters are valid in the current DCM Catalog, see Section 2.3.1, Populating Required Structures.
This function adds to the information instantiated in the current system configuration. It has no effect on the installable families, devices and configuration parameters defined in the DCM Catalog. For more information about the distinction between the system configuration and the DCM Catalog, see Section 2.1, The DCM API Architecture.
Example
#include "NCMApi.h" ... // // Prepare inputs // NCMFamily family; family.name = "D/x1D"; family.next = NULL; NCMDevice model; model.name = "D/41D"; model.next = NULL; NCMDeviceUniqueName; UniqueName.name = "D/41D at ID 0"; uniqueName.next = NULL; // // Execute // NCMRetCode ncmRc = NCM_AddDevice( &family, &model, &uniqueName ); if ( ncmRc == NCM_SUCCESS ) { ... } else { // Process error ... } ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation