API Guide
601355 Rev A Getting Started 1-17
Getting Started
VS_Command_GetFields ( cmdh,
VSID_STATUS_HANDLE,
&statush,
VSID_ERROR_HANDLE
&errorh,
VSID_STATUS_CODE,
&statcode,
VSID_ENDFIELD );
if ( statcode == VSE_STATUS_OK )
{VS_Status_GetFields ( status,
VSID_MEDIA_ID, media,
VSID_DRIVE_ID, &drive,
VSID_ENDFIELD );
printf ( “media [%s] mounted on
[%d]”, media, drive );
}
else
{print_error_code ( errorh );
}
}
Function names that map directly to a VolServ Command begin with the VSCMD prefix, followed by the command name. Refer to the following example:
VSCMD_command_option
The following is an actual command:
VSCMD_DriveQuery
( VS_COMMAND_HANDLE, …);
Item Description