Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

259 lines
5.8 KiB

/*
File: Patches.h
Contains: Patch Manager Interfaces.
Version: QuickTime 7.3
Copyright: (c) 2007 (c) 1994-2001 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 __PATCHES__
#define __PATCHES__
#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 CALL_NOT_IN_CARBON
enum {
kOSTrapType = 0,
kToolboxTrapType = 1
};
typedef SignedByte TrapType;
enum {
OSTrap = kOSTrapType, /* old name */
ToolTrap = kToolboxTrapType /* old name */
};
#endif /* CALL_NOT_IN_CARBON */
/*
GetTrapAddress and SetTrapAddress are obsolete and should not
be used. Always use NGetTrapAddress and NSetTrapAddress instead.
The old routines will not be supported for PowerPC apps.
*/
#if TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#if CALL_NOT_IN_CARBON
/*
* GetTrapAddress()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __A0 GetTrapAddress(__D0)
#endif
EXTERN_API( UniversalProcPtr )
GetTrapAddress(UInt16 trapNum) ONEWORDINLINE(0xA146);
/*
* SetTrapAddress()
*
* Availability:
* Non-Carbon CFM: not available
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter SetTrapAddress(__A0, __D0)
#endif
EXTERN_API( void )
SetTrapAddress(
UniversalProcPtr trapAddr,
UInt16 trapNum) ONEWORDINLINE(0xA047);
#endif /* CALL_NOT_IN_CARBON */
#endif /* TARGET_CPU_68K && !TARGET_RT_MAC_CFM */
#if CALL_NOT_IN_CARBON
/*
* NGetTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( UniversalProcPtr )
NGetTrapAddress(
UInt16 trapNum,
TrapType tTyp);
/*
* NSetTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( void )
NSetTrapAddress(
UniversalProcPtr trapAddr,
UInt16 trapNum,
TrapType tTyp);
#endif /* CALL_NOT_IN_CARBON */
#if CALL_NOT_IN_CARBON
/*
* GetOSTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __A0 GetOSTrapAddress(__D0)
#endif
EXTERN_API( UniversalProcPtr )
GetOSTrapAddress(UInt16 trapNum) ONEWORDINLINE(0xA346);
/*
* SetOSTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter SetOSTrapAddress(__A0, __D0)
#endif
EXTERN_API( void )
SetOSTrapAddress(
UniversalProcPtr trapAddr,
UInt16 trapNum) ONEWORDINLINE(0xA247);
/*
* GetToolTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __A0 GetToolTrapAddress(__D0)
#endif
EXTERN_API( UniversalProcPtr )
GetToolTrapAddress(UInt16 trapNum) ONEWORDINLINE(0xA746);
/*
* SetToolTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter SetToolTrapAddress(__A0, __D0)
#endif
EXTERN_API( void )
SetToolTrapAddress(
UniversalProcPtr trapAddr,
UInt16 trapNum) ONEWORDINLINE(0xA647);
/*
* GetToolboxTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter __A0 GetToolboxTrapAddress(__D0)
#endif
EXTERN_API( UniversalProcPtr )
GetToolboxTrapAddress(UInt16 trapNum) ONEWORDINLINE(0xA746);
/*
* SetToolboxTrapAddress()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
#if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
#pragma parameter SetToolboxTrapAddress(__A0, __D0)
#endif
EXTERN_API( void )
SetToolboxTrapAddress(
UniversalProcPtr trapAddr,
UInt16 trapNum) ONEWORDINLINE(0xA647);
#endif /* CALL_NOT_IN_CARBON */
#if TARGET_CPU_PPC
#if CALL_NOT_IN_CARBON
/*
* GetTrapVector()
*
* Availability:
* Non-Carbon CFM: in InterfaceLib 7.1 and later
* CarbonLib: not available
* Mac OS X: not available
*/
EXTERN_API( UniversalProcHandle )
GetTrapVector(UInt16 trapNumber);
#endif /* CALL_NOT_IN_CARBON */
#endif /* TARGET_CPU_PPC */
#ifdef PRAGMA_IMPORT_OFF
#pragma import off
#elif PRAGMA_IMPORT
#pragma import reset
#endif
#ifdef __cplusplus
}
#endif
#endif /* __PATCHES__ */