ADIC Digital Camera 601355 Rev A 사용자 설명서

다운로드
페이지 1192
API Guide
601355 Rev A
API Functions
2-381
Functions
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_request_handle
4
*
5
* PURPOSE:
6
* This function tests a request handle.
7
*
8
* PARAMETERS:
9
* none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13
VST_BOOLEAN vst_request_handle(void)
14 #else
15
VST_BOOLEAN vst_request_handle()
16 #endif
17 {
18
VST_BOOLEAN 
rc = VSE_FALSE;
19  VST_REQUEST_HANDLE h;
20  VST_REQUEST_ID 
RequestID;
21  VST_REQUEST_TYPE 
RequestType;
22  VST_REQUEST_STATE  State;
23  VST_PRIORITY 
Priority;
24
25  
/* create the handle */
26  
h = VS_Request_Create();
27  
if (h != (VST_REQUEST_HANDLE) NULL)
28  {
29
/* get values from user */
30  
printf(“*** Request Handle 
***\n”);
31  
printf(“Enter request id ==> “);
32  RequestID 
atol(gets(input));
33  
printf(“Enter request type ==> “);
34  
RequestType = atoi(gets(input));
35  
printf(“Enter request state ==> 
“);
36  
State = atoi(gets(input));
37  
printf(“Enter Priority ==> “);
38  
Priority = atoi(gets(input));