API Guide
2-12 API Functions 601355 Rev A
78 VST_BOOLEAN vst_archive_handle(void)
79 #endif
80 {
81 VST_BOOLEAN rc =
VSE_FALSE;
82 VST_ARCHIVE_HANDLE h;
83 VST_ARCHIVE_TYPE
ArchiveType;
84 VST_ARCHIVE_NAME
ArchiveName;
85 VST_HOSTNAME
ConsoleLoc;
86 VST_COMP_STATE
ComponentState;
87 VST_ARCHIVE_MODE
ArchiveMode;
88 VST_ARCHIVE_FILL_MODE FillMode;
89 VST_ARCHIVE_CONFIG_STATE
ConfigState;
90
91 /* create the handle */
92 h = VS_Archive_Create();
93 if (h != (VST_ARCHIVE_HANDLE) NULL)
94 {
95 /* get values from user */
96 printf(“*** Archive Handle
***\n”);
97 printf(“Enter Archive Type ==> “);
98 ArchiveType = atoi(gets(input));;
99 printf(“Enter Archive Name ==> “);
100 gets(ArchiveName);
101 printf(“Enter Console Display
Location ==> “);
102 gets(ConsoleLoc);
103 printf(“Enter archive state ==>
“);
104 ComponentState =
atoi(gets(input));
105 printf(“Enter Archive Mode ==> “);
106 ArchiveMode = atoi(gets(input));
107 printf(“Enter Fill Mode ==> “);
108 FillMode = atoi(gets(input));;