API Guide
601355 Rev A API Functions 2-823
Functions
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_deletepool_execute
4*
5 * PURPOSE:
6 * This executes the VSCMD_DeletePool API
call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_deletepool_execute(void)
14 #else
15 VST_BOOLEAN vst_deletepool_execute()
16 #endif
17 {
18 VST_BOOLEAN rc =
VSE_FALSE;
19 VST_DRIVE_POOL_NAME dp;
20 VST_COMMAND_HANDLE cmd;
21
22 /* get parameters from user */
23 printf(“*** Delete Pool Parameters
***\n” );
24 printf(“\nEnter Drive Pool name to
delete ==>”);
25 gets( dp );
26
27 /* create the command handle */
28 /* Note that the command handle is
not */
29 /* destoyed in this routine, but in
*/
30 /* vst_dispatch when final status is
received. */
31 cmd = VS_Command_Create();