Carbon


Load Flag, Symbol Class, and Fragment Locator Constants

Header: CodeFragments.h

enum {
    kPowerPCArch = 'pwpc',
    kMotorola68KArch = 'm68k',
    kAnyArchType = 1061109567,
    kNoLibName = 0,
    kNoConnectionID = 0,
    kLoadLib = 1,
    kFindLib = 2,
    kNewCFragCopy = 5,
    kLoadNewCopy = 5,
    kUseInPlace = 128,
    kCodeSym = 0,
    kDataSym = 1,
    kTVectSym = 2,
    kTOCSym = 3,
    kGlueSym = 4,
    kInMem = 0,
    kOnDiskFlat = 1,
    kOnDiskSegmented = 2,
    kIsLib = 0,
    kIsApp = 1,
    kIsDropIn = 2,
    kFullLib = 0,
    kUpdateLib = 1,
    kWholeFork = 0,
    kCFMRsrcType = 'cfrg',
    kCFMRsrcID = 0,
    kSHLBFileType = 'shlb',
    kUnresolvedSymbolAddress = 0
};

Constant descriptions

kPowerPCArch
kMotorola68KArch
kAnyArchType
kNoLibName
kNoConnectionID
kLoadLib

Specifies that the Code Fragment Manager search for the specified fragment.

kFindLib

Specifies that the Code Fragment Manager search for the specified fragment and, if it finds it, load it into memory. If the fragment has already been loaded, it is not loaded again. The Code Fragment Manager uses the data-instantiation method specified in the fragment’s container (which is either global or per-connection instantiation).

kNewCFragCopy
kLoadNewCopy

Specifies that the Code Fragment Manager load the specified fragment, creating a new copy of any writable data maintained by the fragment. You specify kLoadNewCopy to obtain one instance per load of the fragment’s data and to override the data-instantiation method specified in the container itself. This is most useful for application extensions (for example, drop-in tools).

kUseInPlace
kCodeSym

Specifies a code symbol.

kDataSym

Specifies a data symbol.

kTVectSym

Specifies a transition vector symbol.

kTOCSym
kGlueSym
kInMem

Specifies that the container is in memory. If used in the where parameter of a FragmentLocator structure, the relevant member of the union is a CFragSystem7MemoryLocator structure.

kOnDiskFlat

Specifies that the container is in a data fork. If used in the where parameter of a FragmentLocator structure, the relevant member of the union is a CFragSystem7DiskFlatLocator structure.

kOnDiskSegmented

Specifies that the container is in a resource. If used in the where parameter of a FragmentLocator structure, the relevant member of the union is a CFragSystem7SegmentedLocator structure.

kIsLib
kIsApp
kIsDropIn
kFullLib
kUpdateLib
kWholeFork
kCFMRsrcType
kCFMRsrcID
kSHLBFileType
kUnresolvedSymbolAddress

The load flag constants (kLoadLib, kFindLib, and kLoadNewCopy) are used in the loadFlags parameter of the GetDiskFragment, GetMemFragment, and GetSharedLibrary functions to specify the action taken by those functions.

The symbol class constants (kCodeSym, kDataSym, and kTVectSym) are returned in the symClass parameter of the FindSymbol function to specify the class of the specified symbol.

The fragment locator constants (kInMem, kOnDiskFlat, and kOnDiskSegmented) are used in the where field of the CFragSystem7Locator structure to indicate which member of the union u is relevant.


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