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

다운로드
페이지 1192
API Guide
2-780
API Functions
601355 Rev A
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_createpool_execute
4
*
5
* PURPOSE:
6
* This executes the VSCMD_CreatePool API 
call.
7
*
8
* PARAMETERS:
9
* none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13
VST_BOOLEAN 
vst_createpool_execute(void)
14 #else
15
VST_BOOLEAN vst_createpool_execute()
16 #endif
17 {
18  
VST_BOOLEAN 
rc = VSE_FALSE;
19  VST_DRIVE_POOL_NAME 
dp;
20  int 
count;
21  VST_DRIVE_ID 
drivelist[VST_MAX_ITEMS];
22  VST_COMMAND_HANDLE cmd;
23
24  
/* get parameters from user */
25  
printf(“*** Create Pool Parameters 
***\n” );
26  
printf(“\nEnter Drive Pool Name 
==>”);
27  gets( 
dp 
);
28  
count = vst_getdrivelist(drivelist, 
VST_MAX_ITEMS);
29
30  
/* create the command handle */
31  
/* Note that the command handle is 
not */
32  
/* destroyed in this routine, but in 
*/