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

다운로드
페이지 1192
API Guide
601355 Rev A
API Functions
2-585
Functions
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_connectquery_execute
4
*
5
* PURPOSE:
6
* This executes the VSCMD_ConnectQuery 
API call.
7
*
8
* PARAMETERS:
9
* none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13
VST_BOOLEAN 
vst_connectquery_execute(void)
14 #else
15
VST_BOOLEAN 
vst_connectquery_execute()
16 #endif
17 {
18  
VST_BOOLEAN 
rc = VSE_FALSE;
19  VST_ENTERPRISE_ID  enterprise;
20  VST_COMMAND_HANDLE cmd;
21
22  
/* get parameters from user */
23  
printf(“*** Connect Query parameters 
***\n” );
24  
printf(“\nEnter Enterprise ID ==>”);
25  
enterprise = (VST_ENTERPRISE_ID) 
atoi(gets(input));
26
27  
/* create the command handle */
28  
/* Note that the command handle is 
not */
29  
/* destroyed in this routine, but in 
*/
30  
/* vst_dispatch when final status is 
received. */
31  
cmd = VS_Command_Create();