User Guide
4-10 Ampex 1308910-01
Model No.
Running Head
aclGetElemData ACL Application Programmer’s Guide
4.5 aclGetElemData
NAME
aclGetElemData() - get element counts and starting addresses.
SYNOPSIS
#include <acl.h>
int aclGetElemData(char *device, aclElemData_t *elemdata);
DESCRIPTION
aclGetElemData() reports the quantities and starting addresses of each element type in the
ACL. This information is used to determine the inputs to the aclMoveCartridge() and
aclMoveVolume() functions. See the libacl Overview manual page for information on ACL
address assignments.
aclGetElemData() is available to all users.
PARAMETERS
*device Pointer or string specifying the device special file associated with the
ACL.
*elemdata Pointer to a structure of type
aclElemData_t.
USAGE
aclGetElemData() reports element data in the *elemdata structure.
typedef struct
{
unsigned int XportCount; /* transport element count */
unsigned int XportStart; /* transport element start address */
unsigned int StorCount; /* storage element count */
unsigned int StorStart; /* storage element starting address */
unsigned int ImexCount; /* import/export element count */
unsigned int ImexStart; /* import/export element starting */
/* address */
unsigned int XferCount; /* data transfer element count */
unsigned int XferStart; /* data transfer element starting */
/* address */
}aclElemData_t;