API Guide
2-464 API Functions 601355 Rev A
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_archivequery_execute
4*
5 * PURPOSE:
6 * This executes the VSCMD_ArchiveQuery
API call.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_archivequery_execute(void)
14 #else
15 VST_BOOLEAN
vst_archivequery_execute()
16 #endif
17 {
18 VST_BOOLEAN rc =
VSE_FALSE;
19 int ok;
20 VST_QUERY_OPTION queryopt;
21 VST_ARCHIVE_QUERY_OPTION
arcqueryopt;
22 VST_ARCHIVE_NAME archive;
23 VST_COMMAND_HANDLE cmd;
24
25 /* get parameters from user */
26 printf( “*** Archive Query parameters
***\n” );
27 printf(“Query all archives? (1) yes,
(0) no: “);
28 queryopt = (VST_QUERY_OPTION)
atoi(gets(input));
29
30 if (queryopt == 0)
31 {