NCM_GetValueRangeEx( )
Description | Cautions | Example | Error Codes | See Also
Description
The NCM_GetValueRangeEx( ) function gets the value range of a parameter.
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) pncmVariable pointer to the structure containing the configuration parameter; the value of the structure must be an installable configuration parameter (see Cautions below) ppncmRangeEx an address of the pointer to be filled with the configuration parameter value range Cautions
This function provides the range of values that can be set for an installable configuration parameter. To determine the value of a configuration parameter instantiated in your system configuration, use NCM_GetValue( ). For more information about the distinction between the system configuration and the DCM Catalog, see Section 2.1, The DCM API Architecture.
The DCM API allocates memory for the data returned by this function. To avoid memory leaks, the client application must deallocate this memory by calling the NCM_Dealloc( ) or NCM_DeallocValue( ) function.
Example
#include "NCMApi.h" ... // // Prepare inputs // NCMFamily family; family.name = "DM3"; family.next = NULL; NCMDevice device; device.name = "VOIP-T1-1"; device.next = NULL; NCMVariable variable; variable.name = "PciID"; variable.next = NULL; NCMValueEx * pRangeEx = NULL; // // Execute // NCMRetCode ncmRc = NCM_GetValueRangeEx( &family, &device, &variable, &pRangeEx ); if ( ncmRc == NCM_SUCCESS) { NCMValueEx * pCurrRangeEx = pRangeEx; while (pCurrRangeEx != NULL) { // Process list ... pCurrRangeEx = pCurrRangeEx->next; } // endwhile } else { // Process error ... } // Deallocate memory when through // with it NCM_DeallocValue( pRangeEx ); ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation