08.01.2013 Views

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

gc_util_find_parm( ) — find a parameter in a GC_PARM_BLK<br />

gc_util_find_parm( )<br />

find a parameter in a GC_PARM_BLK<br />

Name: GC_PARM_DATAP gc_util_find_parm(parm_blk, setID, parmID )<br />

Inputs: GC_PARM_BLK *parm_blk pointer to GC_PARM_BLK where parameter is possibly<br />

located<br />

unsigned short setID set ID of parameter to be found<br />

unsigned short parmID parm ID of parameter to be found<br />

Returns: a pointer to GC_PARM_DATAP if successful<br />

NULL if the parameter is not found in the given GC_PARM_BLK<br />

Includes: gclib.h<br />

gcerr.h<br />

Category: GC_PARM_BLK utility<br />

Dialogic ®<br />

Platform and<br />

Technology:<br />

Mode: synchronous<br />

All<br />

Description<br />

The gc_util_find_parm( ) function is used to find a parameter in a GC_PARM_BLK. The<br />

gc_util_find_parm( ) function can be used to verify that a particular parameter exists, or to<br />

retrieve a particular parameter, or both. The function returns a pointer to the parameter if the<br />

parameter exists, or NULL if the parameter is not found in the specified GC_PARM_BLK.<br />

Parameter Description<br />

parm_blk points to a valid GC_PARM_BLK where the parameter is possibly<br />

located<br />

setID set ID of the parameter to be found<br />

parmID parm ID of the parameter to be found<br />

Termination Events<br />

None<br />

Cautions<br />

If the same parameter is included twice inside the GC_PARM_BLK, only the first instance of<br />

the parameter is returned.<br />

The pointer returned by gc_util_find_parm( ) can be used to modify that specific parameter<br />

within the GC_PARM_BLK. When the GC_PARM_BLK is modified, the changes will not<br />

take effect until the appropriate function, such as gc_SetConfigData( ), is called. The size of<br />

the data must remain the same.<br />

374 Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> <strong>Library</strong> <strong>Reference</strong> — January 2008<br />

Dialogic Corporation

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

Saved successfully!

Ooh no, something went wrong!