API Guide
601355 Rev A Getting Started 1-25
Getting Started
See the following example:
Command Defaults
Options that are not passed in the argument list are defaulted to
command-specific defaults. These defaults are kept on a
command basis and can be set to client-desired values. The
function to set command-specific defaults is of the form:
VSCMD_commandname_SetDefaults
The defaults are specified in a variable length argument list with
parameter name value pairs. The values in the command
parameter list supersede global default values. See the
following example:
if ( VSCMD_Mount ( cmd_handle,
VSID_MEDIACLASS_NAME,”scratch”
VSID_DRIVEPOOL_NAME,
”stagepool”,
VSID_PRIORITY,1,
VSID_ENDFIELD ) )
{
printf ( “mount successful\n” );
}
VSCMD_Mount_SetDefaults (
VSID_PRIORITY, 1,
VSID_MEDIACLASS_NAME,”scratch”
VSID_DRIVEPOOL_NAME,
”defaultpool”,
VSID_ENDFIELD);
VSCMD_Mount (cmd_handle,
VSID_DRIVEPOOL_NAME,”stagepool”,
VSID_ENDFIELD );