API Guide
2-494 API Functions 601355 Rev A
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_audit_execute
4*
5 * PURPOSE:
6 * This executes the VSCMD_Audit API
call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN vst_audit_execute(void)
14 #else
15 VST_BOOLEAN vst_audit_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_ARCHIVE_NAME archive;
20 VST_COMMAND_HANDLE cmd;
21
22 /* get parameters from user */
23 printf(“*** Audit parameters ***\n”
);
24 printf(“Enter Archive Name ==> “ );
25 gets(archive);
26
27 /* create the command handle */
28 /* Note that the command handle is
not */
29 /* destroyed in this routine, but in
*/
30 /* vst_dispatch when finalstatus is
received. */
31 cmd = VS_Command_Create();
32 if (cmd != (VST_COMMAND_HANDLE )NULL)
33 {
34 /* Send the command to the VolServ
software. */