ADIC Digital Camera 601355 Rev A 사용자 설명서
API Guide
2-250
API Functions
601355 Rev A
Return Values
VS_Initialize
returns:
•
VSE_TRUE
- Successful execution.
•
VSE_FALSE
- API failure - The appropriate error code is
set in
VSG_Error.
•
VSE_ERR_INITIALIZED
- VolServ API is already
initialized.
•
VSE_ERR_OUTOFMEM
- Memory allocation call failed.
•
VSE_ERR_PMAPFAILED
- RPC registration for return
status failed. RPC address specified could not be registered
with the local machine’s port mapper.
with the local machine’s port mapper.
•
VSE_ERR_SYSTEMCALL
- A system call failed (usually
from RPC). This generic error code covers an error that
stems from a system call. The API sets this error code when
encountering a failure during RPC setup.
stems from a system call. The API sets this error code when
encountering a failure during RPC setup.
Example
1
/****************************************
*********
2
*
3
* FUNCTION: vst_initialize
4
*
5
* PURPOSE:
6
* This function initializes the VolServ
API.
7
*
8
* PARAMETERS:
9
* none
10 *
11 ****************************************
*********/
12 #ifdef ANSI_C
13
VST_BOOLEAN vst_initialize(void)
14 #else
15
VST_BOOLEAN vst_initialize()
16 #endif
17 {