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

다운로드
페이지 1192
API Guide
2-480
API Functions
601355 Rev A
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_archivevary_execute
4
*
5
* PURPOSE:
6
* This executes the VSCMD_ArchiveVary 
API call.
7
*
8
* PARAMETERS:
9
* none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13
VST_BOOLEAN 
vst_archivevary_execute(void)
14 #else
15
VST_BOOLEAN 
vst_archivevary_execute()
16 #endif
17 {
18  
VST_BOOLEAN 
rc = VSE_FALSE;
19
VST_ARCHIVE_NAME archive;
20  VST_COMP_STATE 
state;
21  VST_COMMAND_HANDLE cmd;
22
23  
/* get parameters from user */
24  
printf(“*** Archive Vary parameters 
***\n” );
25  
printf(“\nEnter Archive “);
26  gets(archive);
27  
printf(“\nEnter Archive State (1) 
ONLINE (2) OFFLINE (3) DIAG: “);
28  
state = (VST_COMP_STATE) 
atoi(gets(input));
29
30  
/* create the command handle */
31  
/* Note that the command handle is 
not */
32
/* destroyed in this routine, but in 
*/