Veritas NetBackup™ DataStore SDK Programmer's Guide for XBSA 1.1.0
- Introduction to NetBackup XBSA
- How to set up the SDK
- Using the NetBackup XBSA interface
- NetBackup XBSA data structures
- NetBackup XBSA environment
- XBSA sessions and transactions
- Creating a NetBackup XBSA application
- Initiating a session
- Backup - creating an object
- Query - finding an object descriptor
- Restore - retrieving an object's data
- Delete - deleting an object or image
- Media IDs - obtaining media IDs
- How to build an XBSA application
- How to run a NetBackup XBSA application
- About How to run a NetBackup XBSA application
- API reference
- Function calls
- Function specifications
- Type definitions
- Process flow and troubleshooting
- How to use the sample files
- Support and updates
- Appendix A. Register authorized locations
Send a byte stream of data in a buffer.
int BSASendData(BSA_Handle bsaHandle, BSA_DataBlock32 *dataBlockPtr)
BSASendData() sends a byte stream of data to the NetBackup XBSA interface in a buffer. BSASendData() can be called multiple times, in case the byte stream of data to be sent is large. This call can be used only after a BSACreateObject() or another BSASendData() call.
BSA_Handle bsaHandle (I)
This parameter is the handle that associates this call with a previous BSAInit() call.
BSA_DataBlock32 *dataBlockPtr (I)
This parameter is a pointer to a structure that includes a pointer to the buffer from which the data is to be sent, as well as the size of the buffer.
The NetBackup XBSA interface does not overwrite any of the fields in the BSA_DataBlock32 structure. The NetBackup XBSA interface can write into the header and trailer portions of the buffer. See Use of BSA_DataBlock32 in BSASendData().
The following return codes are returned by this function:
System detected error, operation aborted.
The sequence of API calls is incorrect.
The BSA_DataBlock32 parameter contained an inconsistent value.
The handle used to associate this call with a previous BSAInit() call is invalid.
A NULL pointer was encountered in one of the arguments.
The function succeeded.