API Guide
2-84 API Functions 601355 Rev A
Example 1 /****************************************
*********
2*
3 * FUNCTION: vst_command_handle
4*
5 * PURPOSE:
6 * This function tests a command handle.
7*
8 * PARAMETERS:
9 * none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13 VST_BOOLEAN vst_command_handle(void)
14 #else
15 VST_BOOLEAN vst_command_handle(void)
16 #endif
17 {
18 VST_BOOLEAN rc = VSE_FALSE;
19 VST_COMMAND_HANDLE h;
20 VST_REQUEST_ID requestid;
21 VST_REQUEST_TYPE reqtype;
22 VST_RETRY_LIMIT retrylimit;
23 VST_TIME_OUT timeout;
24 VST_STATUS_WAIT_FLAG waitflag;
25
26 /* create the handle */
27 h = VS_Command_Create();
28 if (h != (VST_COMMAND_HANDLE) NULL)
29 {
30 /* get values from user */
31 printf(“*** Command Handle
***\n”);
32 printf(“Enter Request ID ==> “);
33 requestid = atol(gets(input));
34 printf(“Enter Request type ==> “);
35 reqtype = atol(gets(input));
36 printf(“Enter Retry Limit ==> “);
37 retrylimit = atol(gets(input));
38 printf(“Enter Timeout Value ==>
“);