ADIC Server Server User Manual


 
4-74 DAS ACI Functions
601626-B
aci_initialize
The aci_initialize function initializes ACI library for client use.
See Figure 4-64.
Figure 4-64 aci_initialize Function Call
This function initializes the DAS 3.01 ACI library. This
function should be called as the first activity, before the use of
any other functions from the ACI library.
For additional information, refer to aci_init on page 4-72.
Return Values
0: The call was successful.
-1: The call failed.
The external variable d_errno is set to one of the following
DAS error codes:
ERPC
EDASINT
EDASINT
ESWITCHINPROG
See Figure 4-65 for an example of the aci_initialize function.
Figure 4-65 Example of the aci_initialize Function
#include "aci.h"
int aci_initialize( void )
/* Initialize client, do not change drive state */
int rc = 0;
rc = aci_initialize( );
if( rc )
{
aci_perror( "ACI failed initialization:" );
}