API Guide
2-1064 API Functions 601355 Rev A
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN
vst_requestquery_execute(void)
14 #else
15 VST_BOOLEAN
vst_requestquery_execute()
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_REQUEST_ID requestid;
20 VST_COMMAND_HANDLE cmd;
21
22 /* get parameters from user */
23 printf(“*** Request Query parameters
***\n” );
24 printf(“Request ID to query: “);
25 requestid = (VST_REQUEST_ID)
atoi(gets(input));
26
27 /* create the command handle */
28 /* Note that the command handle is
not */
29 /* destoyed in this routine, but in
*/
30 /* vst_dispatch when final status is
received. */
31 cmd = VS_Command_Create();
32 if ( cmd != (VST_COMMAND_HANDLE)
NULL)
33 {
34 /* Send the command to the VolServ
software. */
35 /* Note that status is not
processed here. */
36 /* Instead, it is processed in the
*/
37 /* vst_dispatch routine. Also,
note that */
38 /* default values such as timeout
*/