
To develop applications, you must install the
development version of the SNIA HBA API provided
by the libHBAAPI2-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, zypper:
# zypper install libHBAAPI2-devel
The development RPM libHBAAPI2-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 libzfcphbaapi0,
in turn, supplies the function HBA_RegisterLibrary that
returns all function pointers to the common library and thus makes
them available to the application.