API Guide
2-28 API Functions 601355 Rev A
267 VST_ARCHIVE_HANDLE h;
268 VST_ARCHIVE_TYPE
ArchiveType;
269 VST_ARCHIVE_NAME
ArchiveName;
270 VST_HOSTNAME
ConsoleLoc;
271 VST_COMP_STATE
ComponentState;
272 VST_ARCHIVE_MODE
ArchiveMode;
273 VST_ARCHIVE_FILL_MODE FillMode;
274 VST_ARCHIVE_CONFIG_STATE
ConfigState;
275
276 /* create the handle */
277 h = VS_Archive_Create();
278 if (h != (VST_ARCHIVE_HANDLE) NULL)
279 {
280 /* get values from user */
281 printf(“*** Archive Handle
***\n”);
282 printf(“Enter Archive Type ==> “);
283 ArchiveType = atoi(gets(input));;
284 printf(“Enter Archive Name ==> “);
285 gets(ArchiveName);
286 printf(“Enter Console Display
Location ==> “);
287 gets(ConsoleLoc);
288 printf(“Enter archive state ==>
“);
289 ComponentState =
atoi(gets(input));
290 printf(“Enter Archive Mode ==> “);
291 ArchiveMode = atoi(gets(input));
292 printf(“Enter Fill Mode ==> “);
293 FillMode = atoi(gets(input));;
294 printf(“Enter Config State ==> “);
295 ConfigState = atoi(gets(input));;
296 /* set the fields in the handle */
297 rc = VS_Archive_SetFields(h,