API Guide
601355 Rev A API Functions 2-657
Functions
53 temp_drive_id =
atoi(gets(input));
54 VSCMD_DriveVary_SetDefaults(
55 VSID_DRIVE_ID,
temp_drive_id,
56 VSID_ENDFIELD);
57 }
58
59 printf(“0) Vary by state list , 1)
Vary single state ==> “ );
60 stateopt = atoi(gets(input));
61 if (stateopt == 0)
62 {
63 /* vary by using a list of
component states */
64 printf(“\nEnter New States
(1)ONLINE (2)OFFLINE (3) DIAG”);
65 for (i = 0; i < count; i++)
66 {
67 printf(“State #%d: “,
count+1);
68 statelist[i] =
atoi(gets(input));
69 }
70
71 VSCMD_DriveVary_SetDefaults(
72 VSID_COMP_STATE_LIST,
count,statelist,
73 VSID_ENDFIELD);
74 }
75 else
76 {
77 /* vary everyting to a single
state */
78 printf(“\nEnter New State (1)
ONLINE (2) OFFLINE (3) DIAG ==>”);
79 temp_state = atoi(gets(input));
80 VSCMD_DriveVary_SetDefaults(
81 VSID_COMP_STATE,
temp_state,
82 VSID_ENDFIELD);
83 }