Previous PageTable Of ContentsHomeIndexNext Page

sr_getboardcnt( )

Description | Example

Name:

long sr_getboardcnt(class_namep, boardcntp)

Inputs:

char *class_namep

  pointer to class name

 

int *boardcntp

  pointer where to return count of boards in this class

Returns:

0 if success

 

 

-1 if failure

 

Includes:

srllib.h

 

Type:

SRL Parameter

Top Of PageDescription

The sr_getboardcnt( ) function retrieves the number of boards of a particular type. Use this function prior to starting an application in order to determine the amount of available resources. Once returned, the application can use technology-specific attribute functions to determine the number of devices (or subdevices) on the board, as well as other particular attributes of the board. Valid defines for class name are:

DEV_CLASS_VOICE

  • For voice boards

DEV_CLASS_DTI

  • For DTI boards

DEV_CLASS_MSI

  • For MSI boards

This function returns the number of boards about which an application needs knowledge. In the case of voice, the number of four-channel boards is returned. Standard names are applied as shown below:

DEV_CLASS_VOICE

dxxxB?C?

DEV_CLASS_DTI

dtiB?T?

DEV_CLASS_MSI

msiB?C?

The ?s above represent board or channel numbers (incremental, starting with 1).

Parameter

Description

class_namep

Pointer to class name

boardcntp

Pointer where to return count of boards of this class

Top Of PageExample


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated January, 2001