API Guide
601355 Rev A API Functions 2-749
Functions
27 printf(���*** Media Type Query
parameters ***\n” );
28 printf(“0) Query by media type list,
1) Query all ==> “ );
29 queryopt = atoi(gets(input));
30
31 if (queryopt == 0)
32 {
33 count =
vst_getmediatypelist(mediatypelis
t, VST_MAX_ITEMS);
34 }
35
36 /* create the command handle */
37 /* Note that the command handle is
not */
38 /* destroyed in this routine, but in
*/
39 /* vst_dispatch when final status is
received. */
40 cmd = VS_Command_Create();
41 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
42 {
43 /* Send the command to the VolServ
software. */
44 /* Note that status is not
processed here. */
45 /* Instead, it is processed in the
*/
46 /* vst_dispatch routine. Also,
note that */
47 /* default values such as
timeout,*/
48 /* value retry limit and priority
are set as */
49 /* default parameters. */
50 if (queryopt == 0)
51 {
52 /* query a list of media types
*/
53 rc = VSCMD_MediaTypeQuery(cmd,