API Guide
601355 Rev A API Functions 2-241
Functions
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_show_globals
4*
5 * PURPOSE:
6 * This function allows the user to
display the
7 * VolServ API’s global parameters.
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN vst_show_globals( void )
14 #else
15 VST_BOOLEAN vst_show_globals()
16 #endif
17 {
18 VST_PRIORITY priority;
19 VST_USER_FIELD user_field;
20 VST_TIME_OUT timeout;
21 VST_RETRY_LIMIT retries;
22 VST_STATUS_WAIT_FLAG wait;
23 VST_ENTERPRISE_ID enterprise;
24
25 VS_Global_GetFields(VSID_PRIORITY,
&priority,
26 VSID_USER_FIELD,
user_field,
27 VSID_TIMEOUT_VALUE,
&timeout,
28 VSID_RETRY_LIMIT,
&retries,
29 VSID_STATUS_WAIT_FLAG,
&wait,
30 VSID_ENTERPRISE_ID,
&enterprise,
31 VSID_ENDFIELD);
32 printf(“*** Global Parameters
***\n”);