19 #ifndef __NOTIFICATION__
20 #define __NOTIFICATION__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
53 typedef CALLBACK_API(
void, NMProcPtr)(
NMRecPtr nmReqPtr);
83 uppNMProcInfo = 0x000000C0
86 inline NMUPP
NewNMUPP(NMProcPtr userRoutine)
89 GetCurrentArchitecture());
92 #define NewNMUPP(userRoutine) \
93 (NMUPP) NewRoutineDescriptor((ProcPtr)(userRoutine), uppNMProcInfo, \
94 GetCurrentArchitecture())
108 #if !OPAQUE_UPP_TYPES
115 #define DisposeNMUPP(userUPP) DisposeRoutineDescriptor(userUPP)
129 #if !OPAQUE_UPP_TYPES
133 CALL_ONE_PARAMETER_UPP(userUPP, uppNMProcInfo, nmReqPtr);
136 #define InvokeNMUPP(nmReqPtr, userUPP) \
137 CALL_ONE_PARAMETER_UPP((userUPP), uppNMProcInfo, (nmReqPtr))
141 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
143 #define NewNMProc(userRoutine) NewNMUPP(userRoutine)
144 #define CallNMProc(userRoutine, nmReqPtr) InvokeNMUPP(nmReqPtr, userRoutine)
188 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
189 #pragma parameter __D0 NMInstall(__A0)
224 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
225 #pragma parameter __D0 NMRemove(__A0)
230 #if PRAGMA_STRUCT_ALIGN
231 #pragma options align = reset
232 #elif PRAGMA_STRUCT_PACKPUSH
234 #elif PRAGMA_STRUCT_PACK
238 #ifdef PRAGMA_IMPORT_OFF
Basic Macintosh data types.
unsigned char * StringPtr
Definition: MacTypes.h:477
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
#define NewNMUPP(userRoutine)
Definition: Notification.h:92
void DisposeNMUPP(NMUPP userUPP)
void InvokeNMUPP(NMRecPtr nmReqPtr, NMUPP userUPP)
OSErr NMInstall(NMRecPtr nmReqPtr)
Add a notification request to the notification queue.
OSErr NMRemove(NMRecPtr nmReqPtr)
Remove a notification request from the notification queue.
Definition: Notification.h:56
short nmFlags
Definition: Notification.h:59
short nmReserved
Definition: Notification.h:61
Handle nmIcon
Definition: Notification.h:63
short nmMark
Definition: Notification.h:62
long nmRefCon
Definition: Notification.h:67
short qType
Definition: Notification.h:58
NMUPP nmResp
Definition: Notification.h:66
long nmPrivate
Definition: Notification.h:60
Handle nmSound
Definition: Notification.h:64
StringPtr nmStr
Definition: Notification.h:65
Definition: OSUtils.h:131