API Guide
601355 Rev A API Functions 2-679
Functions
23 VST_MEDIA_CLASS_NAME mediaclass;
24 VST_BATCH_NAME batch;
25 VST_MANUFACTURER_NAM manuf;
26 VST_COMMAND_HANDLE cmd;
27
28 /* get parameters from user */
29 printf(“*** Import parameters ***\n”
);
30 printf(“\nEnter Archive “);
31 gets( archive);
32 printf(“\nEnter Media Class “);
33 gets( mediaclass);
34 printf(“\nEnter Batch “);
35 gets( batch);
36 printf(“\nEnter Manufacturer “);
37 gets( manuf);
38 count = vst_getmedialist(medialist,
VST_MAX_ITEMS);
39 /* create the command handle */
40 /* Note that the command handle is
not */
41 /* destroyed in this routine, but in
*/
42 /* vst_dispatch when final status is
received. */
43 cmd = VS_Command_Create();
44 /* make sure that the command handle
is not */
45 /* null. */
46 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
47 {
48 /* Send the command to the VolServ
software. */
49 /* Note that status is not
processed here. */
50 /* Instead, it is processed in the
*/
51 /* vst_dispatch routine. Also,
note that */
52 /* default values such as timeout,
value */