API Guide
601355 Rev A API Functions 2-601
Functions
17 #endif
18 {
19 int i;
20 int count;
21 VST_BOOLEAN rc =
VSE_FALSE;
22 VST_ARCHIVE_NAME archive;
23 VST_MEDIA_CLASS_NAME
mediaclass;
24 VST_CAPACITY capacity;
25 VST_ARCHIVE_ACTION_OPTION action;
26 VST_HIGH_MARK highmark;
27 VST_LOW_MARK lowmark;
28 VST_PRIORITY migpri;
29 VST_ARCHIVE_NAME
targetarchive;
30 VST_TABLE_HANDLE
comphandletable;
31 VST_COMPONENT_HANDLE
comphandle;
32 VST_COMP_TYPE CompType =
VSE_COMPTYPE_COLUMN;
33 VST_COMPONENT_ID CompID;
34 VST_COMMAND_HANDLE cmd;
35
36 bzero ( CompID, sizeof (
VST_COMPONENT_ID ) );
37 /* get parameters from user */
38 printf(“*** Create Archive Media
Class parameters ***\n” );
39 printf(“Enter Archive Name ==> “ );
40 gets( archive );
41 printf(“Enter Media Class Name ==> “
);
42 gets( mediaclass );
43 printf(“Enter Capacity Percent ==> “
);
44 capacity = atoi(gets(input));
45 printf(“Enter Archive action option
(0-none/1-mig/2-notify) ==> “ );
46 action = atoi(gets(input));