NCM_GetInstalledFamilies( )
Description | Cautions | Example | Error Codes | See Also
NCMRetCode NCM_GetInstalledFamilies (ppncmFamily )
NCMFamily **ppncmFamily NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_GetInstalledFamilies( ) function gets all instantiated device families.
This function fills a pointer to a pointer with the beginning address of a list of instantiated device families.
The function parameter is defined as follows:
ppncmFamily address of the pointer to the list to be filled with family structures Cautions
This function enables you to determine what families are instantiated in the system configuration. To find out what families are available in the DCM Catalog, use the NCM_GetAllFamilies( ) function. 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" ... NCMFamily * pFamilies = NULL; // // Execute // NCMRetCode ncmRc = NCM_GetInstalledFamilies( &pFamilies ); if ( ncmRc == NCM_SUCCESS ) { NCMFamily * pCurrFamilies = pFamilies; while ( pCurrFamilies != NULL ) { // Process list ... pCurrFamilies = pCurrFamilies->next; } } else { // Process error ... } // Deallocate memory when through // with it NCM_Dealloc( pFamilies ); ...Error Codes
NCME_INVALID_INPUTS the values of the parameters supplied are invalid See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation