diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /common/quicktime_win32/SegLoad.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'common/quicktime_win32/SegLoad.h')
| -rw-r--r-- | common/quicktime_win32/SegLoad.h | 197 |
1 files changed, 197 insertions, 0 deletions
diff --git a/common/quicktime_win32/SegLoad.h b/common/quicktime_win32/SegLoad.h new file mode 100644 index 0000000..9a400c0 --- /dev/null +++ b/common/quicktime_win32/SegLoad.h @@ -0,0 +1,197 @@ +/* + File: SegLoad.h + + Contains: Segment Loader Interfaces. + + Version: Technology: Mac OS 8 + Release: QuickTime 7.3 + + Copyright: (c) 2007 (c) 1985-1999 by Apple Computer, Inc., all rights reserved + + Bugs?: For bug reports, consult the following page on + the World Wide Web: + + http://developer.apple.com/bugreporter/ + +*/ +#ifndef __SEGLOAD__ +#define __SEGLOAD__ + +#ifndef __MACTYPES__ +#include <MacTypes.h> +#endif + + + + +#if PRAGMA_ONCE +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +#if PRAGMA_IMPORT +#pragma import on +#endif + +#if PRAGMA_STRUCT_ALIGN + #pragma options align=mac68k +#elif PRAGMA_STRUCT_PACKPUSH + #pragma pack(push, 2) +#elif PRAGMA_STRUCT_PACK + #pragma pack(2) +#endif + +#if TARGET_CPU_68K && !TARGET_RT_MAC_CFM || !TARGET_OS_MAC +/* + CountAppFiles, GetAppFiles, ClrAppFiles, GetAppParms, getappparms, + and the AppFile data structure and enums are obsolete. + They are still supported for writing old style 68K apps, + but they are not supported for CFM-based apps. + Use AppleEvents to determine which files are to be + opened or printed from the Finder. +*/ +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; +#if CALL_NOT_IN_CARBON +/* + * CountAppFiles() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API( void ) +CountAppFiles( + short * message, + short * count); + + +/* + * GetAppFiles() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API( void ) +GetAppFiles( + short index, + AppFile * theFile); + + +/* + * ClrAppFiles() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API( void ) +ClrAppFiles(short index); + + +/* + * GetAppParms() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API( void ) +GetAppParms( + Str255 apName, + short * apRefNum, + Handle * apParam) ONEWORDINLINE(0xA9F5); + + +#endif /* CALL_NOT_IN_CARBON */ + +#if CALL_NOT_IN_CARBON +/* + * getappparms() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API_C( void ) +getappparms( + char * apName, + short * apRefNum, + Handle * apParam); + + +#endif /* CALL_NOT_IN_CARBON */ + +#endif /* TARGET_CPU_68K && !TARGET_RT_MAC_CFM || !TARGET_OS_MAC */ + + +/* + Because PowerPC applications don't have segments. + But, in order to allow applications to not have conditionalized + source code, UnloadSeg is macro'ed away for PowerPC. +*/ +#if TARGET_CPU_68K +#if CALL_NOT_IN_CARBON +/* + * UnloadSeg() + * + * Availability: + * Non-Carbon CFM: not available + * CarbonLib: not available + * Mac OS X: not available + */ +EXTERN_API( void ) +UnloadSeg(void * routineAddr) ONEWORDINLINE(0xA9F1); + + +#endif /* CALL_NOT_IN_CARBON */ + +#else +#define UnloadSeg(x) +#endif /* TARGET_CPU_68K */ + +/* ExitToShell() has moved to Process.h*/ + + + + + +#if PRAGMA_STRUCT_ALIGN + #pragma options align=reset +#elif PRAGMA_STRUCT_PACKPUSH + #pragma pack(pop) +#elif PRAGMA_STRUCT_PACK + #pragma pack() +#endif + +#ifdef PRAGMA_IMPORT_OFF +#pragma import off +#elif PRAGMA_IMPORT +#pragma import reset +#endif + +#ifdef __cplusplus +} +#endif + +#endif /* __SEGLOAD__ */ + |