API Guide
601355 Rev A API Functions 2-735
Functions
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_mediaquery_execute(void)
14 #else
15 VST_BOOLEAN vst_mediaquery_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_QUERY_OPTION queryopt;
20 int count;
21 char *
medialist[VST_MAX_ITEMS];
22 VST_COMMAND_HANDLE cmd;
23
24 /* get parameters from user */
25 printf(“*** Media Query parameters
***\n” );
26 printf(“0) Query by media list, 1)
Query all ==> “ );
27 queryopt = atoi(gets(input));
28
29 if (queryopt == 0)
30 {
31 count =
vst_getmedialist(medialist,
VST_MAX_ITEMS);
32 }
33
34 /* create the command handle */
35 /* Note that the command handle is
not */
36 /* destroyed in this routine, but in
*/
37 /* vst_dispatch when final status is
received. */
38 cmd = VS_Command_Create();
39 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
40 {
41 /* Send the command to the VolServ
software. */