NCM_IsEditable( )
Description | Cautions | Example | Error Codes
Description
The NCM_IsEditable( ) function determines if a configuration parameter can be edited.
This function queries the DCM Catalog to determine if the passed configuration parameter can be edited. If the configuration parameter can be edited, the address referenced by the pbEditable pointer is set to TRUE; otherwise it is set to FALSE.
The function parameters are defined as follows:
pncmFamily pointer to the structure containing the family name; the value of the structure must be an installable family (see Cautions below) pncmDevice pointer to the structure containing a device name; the device name can be either a device model name or a unique device 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) pncmProperty pointer to the structure containing the property name; the value of the structure must be an installable property (see Cautions below) pncmVariable pointer to the structure containing the configuration parameter; the value of the structure must be an installable configuration parameter (see Cautions below) pbEditable a pointer to a Boolean specifying that the configuration parameter can be edited (TRUE) or cannot be edited (FALSE) Cautions
The pncmFamily, pncmProperty, and pncmVariable pointers must reference information that is valid in the current DCM Catalog.
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; NCMProperty property; property.name = "System"; property.next = NULL; NCMVariable variable; variable.name = "D41DAddress"; variable.next = NULL; BOOL bEditable = TRUE; // // Execute // NCMRetCode ncmRc = NCM_IsEditable( &family, &device, &property, &variable, &bEditable ); if ( ncmRc == NCM_SUCCESS ) { if ( bEditable == TRUE ) { ... } else { ... } } else { // Process error ... } ...Error Codes
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation