API Guide
2-410 API Functions 601355 Rev A
59 gets( targetarchive );
60 printf(“Enter Migration Priority
== > “ );
61 migpri = atoi(gets(input));
62 VSCMD_CreateArchiveMediaClass_Set
Defaults (
63 VSID_TARGET_ARCHIVE_NAME,
targetarchive,
64 VSID_MIGRATION_PRIORITY,
migpri,
65 VSID_ENDFIELD );
66 }
67
68 printf(“How many prefered placements
(0 to skip): “);
69 count = atoi(gets(input));
70 if (count > 0)
71 {
72 comphandletable =
VS_Table_Create(VSE_COMPONENT_HAN
DLE, count);
73 if (comphandletable ==
(VST_TABLE_HANDLE) NULL)
74 {
75 return(VSE_FALSE);
76 }
77 for (i = 0; i < count; i++)
78 {
79 printf(“Enter row #%d:”, i +
1);
80 CompID[0] = (short)
atoi(gets(input));
81 printf(“Enter column #%d:”, i +
1);
82 CompID[1] = (short)
atoi(gets(input));
83 CompID[2] = 0;
84 CompID[3] = 0;
85 comphandle =
VS_Component_Create();