API Guide
2-722 API Functions 601355 Rev A
34 printf(“\n0) no media list, 1) Media
List, 2) Media List Details ==>
“);
35 querylistopt = atoi(gets(input));
36
37 /* create the command handle */
38 /* Note that the command handle is
not */
39 /* destroyed in this routine, but in
*/
40 /* vst_dispatch when final status is
received. */
41 cmd = VS_Command_Create();
42 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
43 {
44 /* Send the command to the VolServ
software. */
45 /* Note that status is not
processed here. */
46 /* Instead, it is processed in the
*/
47 /* vst_dispatch routine. Also,
note that */
48 /* default values such as
timeout,*/
49 /* value retry limit and priority
are set as */
50 /* default parameters. */
51 if (queryopt == 0)
52 {
53 /* query one media class */
54 rc =
VSCMD_MediaClassQuery(cmd,
55 VSID_QRY_OPTION,
queryopt,
56 VSID_CLASS_QRY_OPTION,
querylistopt,
57 VSID_MEDIA_CLASS_NAME,
mediaclass,
58 VSID_ENDFIELD);
59 }