
To develop applications, you must install
the development version of the SNIA HBA API provided by the libhbaapi-devel RPM,
link your application against the library, and load the library.
Procedure
- Install the development RPM for the SNIA HBA
API.
Use, for example, yum:
# yum install libhbaapi-devel
The development RPM libhbaapi-devel provides
the necessary header files and .so symbolic links needed to program
against the SNIA HBA API.
- Add the command line option -lHBAAPI during
the linker step of the build process to link your application against
the SNIA HBA API library.
- In the application, issue the HBA_LoadLibrary() call
as the first call to load the library.
The vendor-specific
library libzfcphbaapi, in turn,
supplies the function HBA_RegisterLibrary that
returns all function pointers to the common library and thus makes
them available to the application.