API Guide
601355 Rev A API Functions 2-63
Functions
39 timeout = atol(gets(input));
40
41 /* set fields in handle */
42 rc = VS_Command_SetFields(h,
43 VSID_REQUEST_ID,
requestid,
44 VSID_REQUEST_TYPE,
reqtype,
45 VSID_RETRY_LIMIT,
retrylimit,
46 VSID_TIMEOUT_VALUE,
timeout,
47 VSID_STATUS_WAIT_FLAG,
waitflag,
48 VSID_ENDFIELD);
49 if (rc)
50 {
51 /* print the handle and destroy
it */
52 vst_print_command(h);
53 }
54 VS_Command_Destroy(h);
55 }
56 return(rc);
57 }
Notes A command handle should be used for only one outstanding
command at any given time.
After VS_Command_Destroy has been called for a command
handle, that handle is no longer valid and should not be used.
If final status has not been received for a command, the API
software fails a VS_Command_Destroy request for the
associated command handle.