API Guide
2-466 API Functions 601355 Rev A
64 /* information */
65 arcqueryopt +=
VSD_ARCQRY_OPTION_CLASS;
66 }
67
68 printf( “query media type
information? (1) yes, (0) no: “);
69 ok = atoi(gets(input));
70 if (ok)
71 {
72 /* add the option to query media
type */
73 /* information */
74 arcqueryopt +=
VSD_ARCQRY_OPTION_TYPE;
75 }
76 /* create the command handle */
77 /* Note that the command handle is
not destroyed in */
78 /* this routine, but in vst_dispatch
when final */
79 /* status is received. */
80 cmd = VS_Command_Create();
81 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
82 {
83 /* Send the command to the
VolServ. */
84 /* Note that status is not
processed here. */
85 /* Instead, it is processed in the
*/
86 /* vst_dispatch routine. Also,
note that */
87 /* default values such as timeout,
value */
88 /* retry limit parameters and
priority are */
89 /* set as default parameters. */
90 if (queryopt ==
VSE_QUERY_OPTION_ALL)
91 {