ADIC 601355 Rev A User Manual

Page of 1192
API Guide
601355 Rev A
API Functions
2-97
Functions
Return Values
VS_Component_GetFields
 returns:
VSE_TRUE
 - Successful execution.
VSE_FALSE
 - API failure - An appropriate error code is set 
in 
VSG_Error
.
VSE_ERR_BADFIELD
 - An invalid parameter was 
specified.
VSE_ERR_BADHANDLE
 - Specified handle was not a 
component handle.
VSE_ERR_NULLHANDLE
 - Specified handle was a null 
pointer.
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_print_component
4
*
5
* PURPOSE:
6
* This function prints out the 
information stored in 
7
* a component handle.
8
*
9
* PARAMETERS:
10 * h : the component handle to print
11 *
12 ****************************************
*********/
13 #ifdef ANSI_C
14
void 
vst_print_component(VST_COMPONENT
_HANDLE h)
15 #else
16
void vst_print_component(h)
17
VST_COMPONENT_HANDLE h;
18 #endif
19 {
20  VST_COMP_TYPE 
CompType;