API Guide
2-396 API Functions 601355 Rev A
46 cmd = VS_Command_Create();
47 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
48 {
49 /* Send the command to the VolServ
software. */
50 /* Note that status is not
processed here. */
51 /* Instead,it is processed in the
*/
52 /* vst_dispatch routine. */
53 /* Also, note that default values,
such as */
54 /* timeout, value retry limit, and
priority */
55 /* are set as default parameters.
*/
56 rc = VSCMD_MediaQuery(cmd,
57 VSID_QRY_OPTION, queryopt,
58 VSID_MEDIA_ID_LIST, count,
medialist,
59 VSID_CLIENT_DISPATCH, NULL,
60 /* no dispatch routine */
61 VSID_STATUS_WAIT_FLAG,
VSE_TRUE,
62 /* synchronous mode */
63 VSID_ENDFIELD);
64 if (rc)
65 {
66 /* the command was successful
*/
67 /* get the status */
68 VS_Command_GetFields(cmd,
69 VSID_STATUS_HANDLE, &status,
70 VSID_ENDFIELD);
71
72 /* get the media handle table
from the */
73 /* status handle */
74 VS_Status_GetFields(status,