API Guide
601355 Rev A API Functions 2-665
Functions
23 VST_COMMAND_HANDLE cmd;
24
25 /* get parameters from user */
26 printf(ā€œ*** Export Parameters ***\nā€
);
27 printf(ā€œ\nEnter Export Comment ā€œ);
28 gets( comment);
29 count =
vst_getmedialist(medialist,
VST_MAX_ITEMS);
30 /* create the command handle */
31 /* Note that the command handle is
not */
32 /* destroyed in this routine, but in
*/
33 /* vst_dispatch when final status is
received. */
34 cmd = VS_Command_Create();
35 /* validate the command handle */
36 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
37 {
38 /* Send the command to the VolServ
software. */
39 /* Note that status is not
processed here. */
40 /* Instead, it is processed in the
*/
41 /* vst_dispatch routine. Also,
note that */
42 /* default values such as time
out, value */
43 /* retry limit and priority are
set as */
44 /* default parameters. */
45 rc = VSCMD_Export(cmd,
46 VSID_COMMENT, comment,
47 VSID_MEDIA_ID_LIST,
count, medialist,
48 VSID_ENDFIELD);
49 }
50