NCM_GetCspCountries( )
Description | Cautions | Example | Error Codes | See Also
NCMRetCode NCM_GetCspCountries( ppncmCountries )
NCMValue **ppncmCountries NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_GetCspCountries( ) function gets a list of supported countries from the DCM Catalog. For more information about modifying country-specific parameter values, see Section 2.7, Working with Country Specific Parameters.
This function fills a pointer to a pointer with the beginning address of a list of countries. The list represents those countries for which Intel® Dialogic devices may be configured.
The function parameter is defined as follows:
ppncmCountries address of the pointer to the list to be filled with structures containing the countries Cautions
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" ... NCMValue * pCountries = NULL; // // Execute // NCMRetCode ncmRc = NCM_GetCspCountries( &pCountries ); if ( ncmRc == NCM_SUCCESS ) { NCMValue * pCurrCountries = pCountries; while ( pCurrCountries != NULL ) { // Process list ... pCurrCountries = pCurrCountries->next; } } else { // Process error ... } // Deallocate memory when through // with it NCM_Dealloc( pCountries ); ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation