API Guide
601355 Rev A API Functions 2-721
Functions
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_mediaclassquery_execute
4*
5 * PURPOSE:
6 * This executes the
VSCMD_MediaClassQuery API call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_mediaclassquery_execute(void)
14 #else
15 VST_BOOLEAN
vst_mediaclassquery_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_QUERY_OPTION queryopt;
20 VST_QUERY_LIST_OPTION querylistopt;
21 VST_MEDIA_CLASS_NAME mediaclass;
22 VST_COMMAND_HANDLE cmd;
23
24 /* get parameters from user */
25 printf(“*** MediaClass Query
parameters ***\n” );
26 printf(“0) Query by Media Class Name,
1) Query all ==> “ );
27 queryopt = atoi(gets(input));
28
29 if (queryopt == 0)
30 {
31 printf(“\nEnter Media Class Name
==>”);
32 gets( mediaclass);
33 }