API Guide
2-402 API Functions 601355 Rev A
30 VST_TABLE_HANDLE
comphandletable;
31 VST_COMPONENT_HANDLE
comphandle;
32 VST_COMP_TYPE CompType =
VSE_COMPTYPE_COLUMN;
33 ST_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));
47 printf(“Enter High Mark Percentage
==> “ );
48 highmark = atoi(gets(input));
49 printf(“Enter Low Mark Percentage ==>
“ );
50 lowmark = atoi(gets(input));
51
52 if ( action == VSE_ARCHIVE_ACTION_MIG
)
53 {
54 /* these parameters only need to
be set */
55 /* if the archivemediaclass is
being */
56 /* set up to support migration */
57 printf(“Enter Target Archive ==> “
);