PDTransfer.mesa
Michael Plass, November 16, 1983 4:06 pm
DIRECTORY PDInterpBasic;
PDTransfer: DEFINITIONS = BEGIN
This interface defines the protocol for transfering data from the requestor to the PD interpreter, and status from the interpreter to the requestor.
maxWords: NAT = 400;
tune this for best results.
DataBlock: TYPE = RECORD [
words: NAT,
buffer: ARRAY [0..maxWords) OF CARDINAL
];
GetBlock: PROC [sourceIndex: INT, words: INT] RETURNS [DataBlock];
Gets the specified number of words, starting at word sourceIndex of the PD file.
ReportStatus: PROC [status: PDInterpBasic.Status, queueSize: NAT, queuePosition: NAT, page, pass, sourceIndex: INT] RETURNS [abort: BOOLEAN];
Called at reasonable intervals to report on the status of the print request.
Callee returns TRUE to request abort; some additional status reports may be made after an abort is requested.
END.