/* File: SegLoad.h Contains: Segment Loader Interfaces. Version: Technology: System 7.5 Package: Universal Interfaces 2.1 in ŇMPW LatestÓ on ETO #18 Copyright: © 1984-1995 by Apple Computer, Inc. All rights reserved. Bugs?: If you find a problem with this file, use the Apple Bug Reporter stack. Include the file and version information (from above) in the problem description and send to: Internet: apple.bugs@applelink.apple.com AppleLink: APPLE.BUGS */ #ifndef __SEGLOAD__ #define __SEGLOAD__ #ifndef __TYPES__ #include #endif /* #include */ #ifdef __cplusplus extern "C" { #endif #if PRAGMA_ALIGN_SUPPORTED #pragma options align=mac68k #endif #if PRAGMA_IMPORT_SUPPORTED #pragma import on #endif enum { appOpen = 0, /*Open the Document (s)*/ appPrint = 1 /*Print the Document (s)*/ }; struct AppFile { short vRefNum; OSType fType; short versNum; /*versNum in high byte*/ Str255 fName; }; typedef struct AppFile AppFile; /* Because PowerPC applications donŐt have segments, UnloadSeg is unsupported for PowerPC. */ #if GENERATING68K extern pascal void UnloadSeg(void *routineAddr) ONEWORDINLINE(0xA9F1); #else #define UnloadSeg(x) #endif #if !GENERATINGCFM extern pascal void CountAppFiles(short *message, short *count); extern pascal void GetAppFiles(short index, AppFile *theFile); extern pascal void ClrAppFiles(short index); extern pascal void GetAppParms(Str255 apName, short *apRefNum, Handle *apParam) ONEWORDINLINE(0xA9F5); #if CGLUESUPPORTED extern void getappparms(char *apName, short *apRefNum, Handle *apParam); #endif #endif #if OLDROUTINELOCATIONS extern pascal void ExitToShell(void) ONEWORDINLINE(0xA9F4); #endif #if PRAGMA_IMPORT_SUPPORTED #pragma import off #endif #if PRAGMA_ALIGN_SUPPORTED #pragma options align=reset #endif #ifdef __cplusplus } #endif #endif /* __SEGLOAD__ */