API Guide
601355 Rev A API Functions 2-319
Functions
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_multimount_execute(void)
14 #else
15 VST_BOOLEAN vst_multimount_execute()
16 #endif
17 {
18 int i;
19 int num;
20 VST_BOOLEAN rc = VSE_FALSE;
21 VST_COMMAND_HANDLE cmdh;
22 VST_MOUNT_HANDLE
mounth[VSD_MAX_MOUNT_REQS];
23
24 /* get parameters from user */
25 printf(“*** MultiMount Parameters
***\n”);
26 printf(“Enter the number of mount
requests ==> “ );
27 num = atoi(gets(input));
28
29 /* loop through the number of mount
request */
30 for ( i = 0 ; i < num ; i++ )
31 {
32 /* Create a mount handle. */
33 /* Each mount handle stores a
single mount */
34 /* request.The MultiMount command
accepts */
35 /* multiple mount requests and
executes */
36 /* them all as one operation.*/
37 mounth[i] =
vst_create_mount_handle();
38 if ( mounth[i] !=
(VST_MOUNT_HANDLE) NULL )
39 {
40 /* add the mount request to the
multimount */
41 /* via the command default
function */