Important: The information in this document is obsolete and should not be used for new development.
Runtime Interface
The RTLib runtime interface consists of a single procedure call (as defined inRTLib.h
):
pascal OSErr Runtime (RTPB* runtimeParams);TheRTPB
data type is a structure in which you specify one of four posssible parameter blocks:
struct RTPB { short fOperation; void* fA5; union { RTGetVersionParam fVersionParam; RTGetJTAddrParam fJTAddrParam; RTSetSegLoadParam fSegLoadParam; RTLoadSegbyNumParam fLoadbyNumParam; } fRTParams; }; typedef struct RTPB RTPB;The fields of theRTPB
structure are as follows:
The
- The
fOperation
field indicates the type of operation to be performed, and it can be set to any value shown in Table B-1 (page B-3). See "Runtime Operations" (page B-4) for more detailed information.- Any operation whose name ends in A5 requires a value for the
fA5
field, which indicates the address of an A5 world. The similarly named operation without the A5 suffix uses the current value of A5 for this parameter.- The
fRTParams
field is a parameter block consisting of one of four structures that hold the parameters for the appropriate operation. See the descriptions for each operation in "Runtime Operations" (page B-4) for more details about these structures.
Runtime
routine can return an error value as shown in Table B-2.
© Apple Computer, Inc.
11 MARCH 1997