User manual

149
err - system error number
chapi_tape_device_iface * ctrl
Instance of tape transport controller (pointer).
unsigned int
transport_number
Tape transport instance number.
NOTE about implemented CHAPI tape controller and CHAPI tape transports.
It was implemented 3 CHAPI tape transports:
-
CHAPI tape transport mapped to *.mtd file;
-
CHAPI tape transport mapped to SCSI port;
-
CHAPI tape transport mapped to tape driver ;
To load implemented CHAPI tape transport at run-time you should:
1) Load dll by calling :
hinst=::LoadLibrary(TEXT(“chapi_storage.dll”));
2) Find initiating function in loaded dll :
pf_init_tape_t init_tape = (pf_init_tape_t)::GetProcAddress(hinst[i], init_name);
init_name can be:
- “init_mtd_tape”
- “init_scsi_tape
- “init_driver_tape
Type of initiating function defined as:
typedef bool (*pf_init_tape_t)(void * ctrl, chapi_tape_transport_iface ** p_tape_i, unsigned
char transport_number)