NCM_DetectBoards( )
Description | Cautions | Example | Error Codes
NCMRetCode NCM_DetectBoards( pCallBackFunc, pnNumBrdsFound )
GL_PROG_FUNC *pCallBackFunc int *pnNumBrdsFound NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_DetectBoards( ) function initiates a process that detects auto-detectable boards installed in the system. For more information about auto-detection, see Section 2.6.1, Auto Detection.
The function parameters are defined as follows:
Cautions
Intel® Dialogic recommends using the NCM_DetectBoards ( ) function for non-DM3 boards only.
All auto-detectable Intel® Dialogic devices in the system must be detected using either the NCM_DetectBoards( ) function or the NCM_DetectBoardsEx( ) function before the NCM_StartDlgSrv( ) function can be used to start the Intel® Dialogic System Service. Refer to Section 2.6.1, Auto Detection for information about auto-detectable Intel® Dialogic devices.
The callback function referenced by the pCallBackFunc pointer must have the following format:
- int func_name (UINT percentageCompleted, const char *message);
- percentageCompleted is an unsigned integer variable that the board detection function will fill to indicate the progress of the detection process as a percentage of overall time required for detection.
- message is a NULL-terminated character string containing a message to indicate detection progress status, such as "Detected Board #5".
If pCallBackFunc is NULL, then no message is sent to the client application from the detection process.
Example
#include "NCMApi.h" int CallBackFunc( UINT uipercent, const char *message ) { // use the percentage and message // to show status of the auto-detection process return TRUE; } ... int nNumBoardsFound = 0; // // Execute // NCMRetCode ncmRc = NCM_DetectBoards( CallBackFunc, &nNumBoardsFound ); ...Error Codes
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation