![]() |
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 };
Specifies that the Code Fragment Manager search for the specified fragment.
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 fragments container (which is either global or per-connection instantiation).
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 fragments 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).
Specifies a code symbol.
Specifies a data symbol.
Specifies a transition vector symbol.
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
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
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
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 6/30/2000)