Carbon


GetIndSymbol

Header: CodeFragments.h Carbon status: Supported

Gets information about the exported symbols in a fragment.

OSErr GetIndSymbol (
    CFragConnectionID connID, 
    SInt32 symIndex, 
    Str255 symName, 
    Ptr *symAddr, 
    CFragSymbolClass *symClass
);
connID

A connection ID.

symIndex

A symbol index. The value of this parameter should be greater than or equal to 1 and less than or equal to the value returned by the CountSymbols function.

symName

On return, the name of the indicated symbol.

symAddr

On return, a pointer to the address of the indicated symbol.

symClass

On return, a pointer to the class of the indicated symbol. See “Load Flag, Symbol Class, and Fragment Locator Constants”.

function result

A result code.

DISCUSSION

If GetIndSymbol executes successfully, it returns the symbol’s name, starting address, and class in the symName, symAddr, and symClass parameters, respectively. A fragment’s exported symbols are retrieved in no predetermined order.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)