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

다운로드
페이지 1192
API Guide
601355 Rev A
API Functions
2-201
Functions
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_print_drivepool
4
*
5
* PURPOSE:
6
* This function prints out the 
information stored in
7
* in a drive pool handle.
8
*
9
* PARAMETERS:
10 * h : the drive pool handle to print
11 *
12 ****************************************
*********/
13 #ifdef ANSI_C
14
void 
vst_print_drivepool(VST_DRIVEPOOL
_HANDLE h)
15 #else
16
void vst_print_drivepool(h)
17
VST_DRIVEPOOL_HANDLE h;
18 #endif
19 {
20  VST_DRIVE_POOL_NAME 
DrivePoolName;
21  VST_TABLE_HANDLE 
DriveHandleTable;
22  VST_DRIVE_HANDLE 
DriveHandle;
23  int 
i;
24  int 
n;
25
26  VS_DrivePool_GetFields(h,
27  VSID_DRIVEPOOL_NAME, 
DrivePoolName,
28  VSID_DRIVE_HANDLE_TABLE
&DriveHandleTable,
29  VSID_ENDFIELD);
30  printf(“DrivePoolName 
%s\n”,DrivePoolName);
31  
/* Get # of entries */
32  
if ( DriveHandleTable != 
(VST_TABLE_HANDLE) NULL )