08.01.2013 Views

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ATDX_CHNAMES( ) — retrieve all channel names <strong>for</strong> a board<br />

ATDX_CHNAMES( )<br />

retrieve all channel names <strong>for</strong> a board<br />

Name: char ** ATDX_CHNAMES(bddev)<br />

Inputs: int bddev valid board device handle<br />

Returns: pointer to array of channel names if successful<br />

pointer to array of pointers that point to “Unknown device” if error<br />

Includes: srllib.h<br />

dxxxlib.h<br />

Category: Extended Attribute<br />

Mode: synchronous<br />

� Description<br />

The ATDX_CHNAMES( ) function returns a pointer to an array of channel names associated with<br />

the specified board device handle, bddev.<br />

A possible use <strong>for</strong> this attribute is to display the names of the channel devices associated with a<br />

particular board device.<br />

Parameter Description<br />

bddev specifies the valid board device handle obtained when the board was opened<br />

using dx_open( )<br />

� Cautions<br />

None.<br />

� Errors<br />

This function will fail and return the address of a pointer to “Unknown device” if an invalid board<br />

device handle is specified in bddev.<br />

� Example<br />

#include <br />

#include <br />

#include <br />

main()<br />

{<br />

int bddev, cnt;<br />

char **chnames;<br />

long subdevs;<br />

.<br />

.<br />

/* Open the board device */<br />

if ((bddev = dx_open("dxxxB1",NULL)) == -1) {<br />

/* Process error */<br />

28 <strong>Voice</strong> <strong>API</strong> <strong>for</strong> <strong>HMP</strong> <strong>Library</strong> <strong>Reference</strong> — September 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!