API Guide
601355 Rev A API Functions 2-9
Functions
18 VST_BOOLEAN rc =
VSE_FALSE;
19 VST_ARCHIVE_HANDLE h;
20 VST_ARCHIVE_TYPE
ArchiveType;
21 VST_ARCHIVE_NAME
ArchiveName;
22 VST_HOSTNAME
ConsoleLoc;
23 VST_COMP_STATE
ComponentState;
24 VST_ARCHIVE_MODE
ArchiveMode;
25 VST_ARCHIVE_FILL_MODE FillMode;
26 VST_ARCHIVE_CONFIG_STATE
ConfigState;
27
28 /* create the handle */
29 h = VS_Archive_Create();
30 if (h != (VST_ARCHIVE_HANDLE) NULL)
31 {
32 /* get values from user */
33 printf(“*** Archive Handle
***\n”);
34 printf(“Enter Archive Type ==> “);
35 ArchiveType = atoi(gets(input));;
36 printf(“Enter Archive Name ==> “);
37 gets(ArchiveName);
38 printf(“Enter Console Display
Location ==> “);
39 gets(ConsoleLoc);
40 printf(“Enter archive state ==>
“);
41 ComponentState =
atoi(gets(input));
42 printf(“Enter Archive Mode ==> “);
43 ArchiveMode = atoi(gets(input));
44 printf(“Enter Fill Mode ==> “);
45 FillMode = atoi(gets(input));;
46 printf(“Enter Config State ==> “);
47 ConfigState = atoi(gets(input));;
48 /* set the fields in the handle */