ADIC Digital Camera 601355 Rev A 사용자 설명서
API Guide
601355 Rev A
Mount Example
C-3
Mount Ex
ample
Example
Mount by MediaClass Group & Drive Pool:
1
#include <stdio.h>
2
#include <vs_client.h>
3
4
/* include the VolServ API header file*/
5
6
/* define the volserv host computer */
7
#define VOLSERV_HOST
"vshost"
8
9
/* forward declare the dispatch routine
*/
10 void dispatch ( VST_COMMAND_HANDLE );
11
12 void print_error ( VST_ERROR_HANDLE );
13
14 main ( int argc, char *argv[] )
15 {
16
int
exitcode = 0;
17
18
/* the name of the MediaClass group
from */
19
/* which to select the medium to
mount */
20
VST_MEDIA_CLASS_NAME mediaclass;
21
22
/* the name of the DrivePool group
from */
23
/* which to select the drive to mount
*/
24
VST_DRIVE_POOL_NAME
drivepool;
25
26
/*
the identifier of the medium that
was mounted
*/
27
VST_MEDIA_ID
mediaid;
28
29
/* the identifier of the drive that
was mounted */
30
VST_DRIVE_ID
driveid;
31