API Guide
601355 Rev A API Functions 2-179
Functions
51 printf(“Enter Current Usage Time
==> “);
52 CurrentTime = atoi(gets(input));
53 printf(“Enter Total Usage Time ==>
“);
54 TotalTime = atoi(gets(input));
55 printf(“Enter Error Count ==> “);
56 ErrorCount = atoi(gets(input));
57 printf(“Enter Mounted Media ID ==>
“);
58 gets(MountedMediaID);
59 /* set the fields */
60 rc = VS_Drive_SetFields(h,
61 VSID_DRIVE_ID,
DriveID,
62 VSID_DRIVE_TYPE,
DriveType,
63 VSID_ARCHIVE_NAME,
ArchiveName,
64 VSID_COMP_STATE,
ComponentState,
65 VSID_ASSIGNMENT,
Assignment,
66 VSID_MOUNT_STATE,
MountState,
67 VSID_USAGE_COUNT,
UsageCount,
68 VSID_USAGE_TIME,
CurrentTime,
69 VSID_TOTAL_USAGE_TIME,
TotalTime,
70 VSID_ERROR_COUNT,
ErrorCount,
71 VSID_MEDIA_ID,
MountedMediaID,
72 VSID_ENDFIELD);
73 if (rc)
74 {
75 vst_print_drive(h);
76 }
77 VS_Drive_Destroy(h);
78 }