API Guide
2-616 API Functions 601355 Rev A
72 if (comphandletable ==
(VST_TABLE_HANDLE) NULL)
73 {
74 return(VSE_FALSE);
75 }
76 for (i = 0; i < count; i++)
77 {
78 printf(“Enter row #%d:”, i +
1);
79 CompID[0] = (short)
atoi(gets(input));
80 printf(“Enter column #%d:”, i +
1);
81 CompID[1] = (short)
atoi(gets(input));
82 CompID[2] = 0;
83 CompID[3] = 0;
84 comphandle =
VS_Component_Create();
85 VS_Component_SetFields(comphandle
,
86 VSID_COMP_TYPE, CompType,
87 VSID_COMP_ID, CompID,
88 VSID_ENDFIELD);
89 VS_Table_AddEntry(comphandletable
,comphandle);
90 }
91 /* This also only needs to be set
if it is */
92 /* actually being used. It is not
needed */
93 /* otherwise. */
94 VSCMD_CreateArchiveMediaClass_Set
Defaults(
95 VSID_COMPONENT_HANDLE_TABLE,
comphandletable,
96 VSID_ENDFIELD);
97 }