NCM_IsBoardEnabled( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_IsBoardEnabled( ) function determines if a device is to be initialized.
This function queries the system configuration to determine if a device is enabled to be initialized. If so, the address referenced by the pbEnabled pointer is set to TRUE; otherwise it is set to FALSE. For more information about device initialization, see Section 2.8, Starting and Stopping the Intel® Dialogic System Service.
The function parameters are defined as follows:
pncmFamily pointer to the structure containing the family name; the value contained in the structure must be an instantiated family (see Cautions below) pncmDeviceUnique pointer to the structure containing the device's unique name; the unique device name must be the same name you used to add the device to the system configuration with the NCM_AddDevice( ) function pbEnabled pointer to a Boolean variable indicating that device is to be initialized (TRUE) or is not to be initialized (FALSE) Cautions
This function queries devices that are 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 device; device.name = "D/41D-1"; device.next = NULL; BOOL bEnabled = TRUE; // // Execute // NCMRetCode ncmRc = NCM_IsBoardEnabled( &family, &device, &bEnabled ); if ( ncmRc == NCM_SUCCESS ) { if ( bEnabled == TRUE ) { ... } else { ... } } else { // Process error ... } ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation