API Guide
2-780 API Functions 601355 Rev A
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_createpool_execute
4*
5 * PURPOSE:
6 * This executes the VSCMD_CreatePool API
call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_createpool_execute(void)
14 #else
15 VST_BOOLEAN vst_createpool_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_DRIVE_POOL_NAME dp;
20 int count;
21 VST_DRIVE_ID
drivelist[VST_MAX_ITEMS];
22 VST_COMMAND_HANDLE cmd;
23
24 /* get parameters from user */
25 printf(ā€œ*** Create Pool Parameters
***\nā€ );
26 printf(ā€œ\nEnter Drive Pool Name
==>ā€);
27 gets( dp );
28 count = vst_getdrivelist(drivelist,
VST_MAX_ITEMS);
29
30 /* create the command handle */
31 /* Note that the command handle is
not */
32 /* destroyed in this routine, but in
*/