19 #ifndef __PPCTOOLBOX__
20 #define __PPCTOOLBOX__
43 #if PRAGMA_STRUCT_ALIGN
44 #pragma options align = mac68k
45 #elif PRAGMA_STRUCT_PACKPUSH
47 #elif PRAGMA_STRUCT_PACK
51 typedef UInt8 PPCServiceType;
54 ppcServiceRealTime = 1
57 typedef SInt16 PPCLocationKind;
64 ppcXTIAddrLocation = 3
67 typedef SInt16 PPCPortKinds;
76 typedef UInt8 PPCSessionOrigin;
83 typedef short PPCPortRefNum;
84 typedef long PPCSessRefNum;
89 kMaxPPCXTIAddress = 95
139 PPCLocationKind locationKindSelector;
152 ScriptCode nameScript;
154 PPCPortKinds portKindSelector;
182 unsigned short csCode; \
183 unsigned short intUse; \
185 PPCCompUPP ioCompletion; \
186 volatile OSErr ioResult; \
187 unsigned long Reserved[5];
192 unsigned short csCode;
193 unsigned short intUse;
195 PPCCompUPP ioCompletion;
196 volatile OSErr ioResult;
197 unsigned long Reserved[5];
198 PPCPortRefNum portRefNum;
200 PPCServiceType serviceType;
214 unsigned short csCode;
215 unsigned short intUse;
217 PPCCompUPP ioCompletion;
218 volatile OSErr ioResult;
219 unsigned long Reserved[5];
220 PPCPortRefNum portRefNum;
221 PPCSessRefNum sessRefNum;
222 PPCServiceType serviceType;
230 unsigned long userData;
231 PPCSessionOrigin requestType;
239 unsigned short csCode;
240 unsigned short intUse;
242 PPCCompUPP ioCompletion;
243 volatile OSErr ioResult;
244 unsigned long Reserved[5];
245 PPCPortRefNum portRefNum;
246 PPCSessRefNum sessRefNum;
247 PPCServiceType serviceType;
264 unsigned short csCode;
265 unsigned short intUse;
267 PPCCompUPP ioCompletion;
268 volatile OSErr ioResult;
269 unsigned long Reserved[5];
271 PPCSessRefNum sessRefNum;
278 unsigned short csCode;
279 unsigned short intUse;
281 PPCCompUPP ioCompletion;
282 volatile OSErr ioResult;
283 unsigned long Reserved[5];
285 PPCSessRefNum sessRefNum;
297 unsigned short csCode;
298 unsigned short intUse;
300 PPCCompUPP ioCompletion;
301 volatile OSErr ioResult;
302 unsigned long Reserved[5];
304 PPCSessRefNum sessRefNum;
320 unsigned short csCode;
321 unsigned short intUse;
323 PPCCompUPP ioCompletion;
324 volatile OSErr ioResult;
325 unsigned long Reserved[5];
327 PPCSessRefNum sessRefNum;
343 unsigned short csCode;
344 unsigned short intUse;
346 PPCCompUPP ioCompletion;
347 volatile OSErr ioResult;
348 unsigned long Reserved[5];
350 PPCSessRefNum sessRefNum;
357 unsigned short csCode;
358 unsigned short intUse;
360 PPCCompUPP ioCompletion;
361 volatile OSErr ioResult;
362 unsigned long Reserved[5];
363 PPCPortRefNum portRefNum;
370 unsigned short csCode;
371 unsigned short intUse;
373 PPCCompUPP ioCompletion;
374 volatile OSErr ioResult;
375 unsigned long Reserved[5];
377 unsigned short startIndex;
378 unsigned short requestCount;
404 #if CALL_NOT_IN_CARBON
413 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
414 #pragma parameter __D0 PPCInit
427 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
428 #pragma parameter __D0 PPCOpenSync(__A0)
441 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
442 #pragma parameter __D0 PPCOpenAsync(__A0)
455 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
456 #pragma parameter __D0 PPCInformSync(__A0)
469 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
470 #pragma parameter __D0 PPCInformAsync(__A0)
483 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
484 #pragma parameter __D0 PPCStartSync(__A0)
497 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
498 #pragma parameter __D0 PPCStartAsync(__A0)
511 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
512 #pragma parameter __D0 PPCAcceptSync(__A0)
525 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
526 #pragma parameter __D0 PPCAcceptAsync(__A0)
539 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
540 #pragma parameter __D0 PPCRejectSync(__A0)
553 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
554 #pragma parameter __D0 PPCRejectAsync(__A0)
567 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
568 #pragma parameter __D0 PPCWriteSync(__A0)
581 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
582 #pragma parameter __D0 PPCWriteAsync(__A0)
595 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
596 #pragma parameter __D0 PPCReadSync(__A0)
609 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
610 #pragma parameter __D0 PPCReadAsync(__A0)
623 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
624 #pragma parameter __D0 PPCEndSync(__A0)
637 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
638 #pragma parameter __D0 PPCEndAsync(__A0)
651 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
652 #pragma parameter __D0 PPCCloseSync(__A0)
665 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
666 #pragma parameter __D0 PPCCloseAsync(__A0)
679 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
680 #pragma parameter __D0 IPCListPortsSync(__A0)
693 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
694 #pragma parameter __D0 IPCListPortsAsync(__A0)
707 #if TARGET_OS_MAC && TARGET_CPU_68K && !TARGET_RT_MAC_CFM
708 #pragma parameter __D0 IPCKillListPorts(__A0)
746 ConstStr255Param prompt);
753 #if CALL_NOT_IN_CARBON
764 #if !OPAQUE_UPP_TYPES
767 uppPPCCompProcInfo = 0x000000C0
773 (ProcPtr)(userRoutine), uppPPCCompProcInfo, GetCurrentArchitecture());
776 #define NewPPCCompUPP(userRoutine) \
777 (PPCCompUPP) NewRoutineDescriptor( \
778 (ProcPtr)(userRoutine), uppPPCCompProcInfo, GetCurrentArchitecture())
792 #if !OPAQUE_UPP_TYPES
795 uppPPCFilterProcInfo = 0x000003D0
801 (ProcPtr)(userRoutine), uppPPCFilterProcInfo, GetCurrentArchitecture());
804 #define NewPPCFilterUPP(userRoutine) \
805 (PPCFilterUPP) NewRoutineDescriptor( \
806 (ProcPtr)(userRoutine), uppPPCFilterProcInfo, GetCurrentArchitecture())
820 #if !OPAQUE_UPP_TYPES
827 #define DisposePPCCompUPP(userUPP) DisposeRoutineDescriptor(userUPP)
841 #if !OPAQUE_UPP_TYPES
848 #define DisposePPCFilterUPP(userUPP) DisposeRoutineDescriptor(userUPP)
862 #if !OPAQUE_UPP_TYPES
866 CALL_ONE_PARAMETER_UPP(userUPP, uppPPCCompProcInfo,
pb);
869 #define InvokePPCCompUPP(pb, userUPP) \
870 CALL_ONE_PARAMETER_UPP((userUPP), uppPPCCompProcInfo, (pb))
884 PPCFilterUPP userUPP);
885 #if !OPAQUE_UPP_TYPES
888 PPCFilterUPP userUPP)
890 return (
Boolean)CALL_TWO_PARAMETER_UPP(userUPP, uppPPCFilterProcInfo, name,
894 #define InvokePPCFilterUPP(name, port, userUPP) \
896 CALL_TWO_PARAMETER_UPP((userUPP), uppPPCFilterProcInfo, (name), (port))
902 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
904 #define NewPPCCompProc(userRoutine) NewPPCCompUPP(userRoutine)
905 #define NewPPCFilterProc(userRoutine) NewPPCFilterUPP(userRoutine)
906 #define CallPPCCompProc(userRoutine, pb) InvokePPCCompUPP(pb, userRoutine)
907 #define CallPPCFilterProc(userRoutine, name, port) \
908 InvokePPCFilterUPP(name, port, userRoutine)
911 #if CALL_NOT_IN_CARBON
921 PPCBrowser(ConstStr255Param prompt, ConstStr255Param applListLabel,
924 ConstStr32Param theLocNBPType);
932 #define PPCOpen(pb, async) ((async) ? PPCOpenAsync(pb) : PPCOpenSync(pb))
933 #define PPCInform(pb, async) ((async) ? PPCInformAsync(pb) : PPCInformSync(pb))
934 #define PPCStart(pb, async) ((async) ? PPCStartAsync(pb) : PPCStartSync(pb))
935 #define PPCAccept(pb, async) ((async) ? PPCAcceptAsync(pb) : PPCAcceptSync(pb))
936 #define PPCReject(pb, async) ((async) ? PPCRejectAsync(pb) : PPCRejectSync(pb))
937 #define PPCWrite(pb, async) ((async) ? PPCWriteAsync(pb) : PPCWriteSync(pb))
938 #define PPCRead(pb, async) ((async) ? PPCReadAsync(pb) : PPCReadSync(pb))
939 #define PPCEnd(pb, async) ((async) ? PPCEndAsync(pb) : PPCEndSync(pb))
940 #define PPCClose(pb, async) ((async) ? PPCCloseAsync(pb) : PPCCloseSync(pb))
941 #define IPCListPorts(pb, async) \
942 ((async) ? IPCListPortsAsync(pb) : IPCListPortsSync(pb))
944 #if PRAGMA_STRUCT_ALIGN
945 #pragma options align = reset
946 #elif PRAGMA_STRUCT_PACKPUSH
948 #elif PRAGMA_STRUCT_PACK
952 #ifdef PRAGMA_IMPORT_OFF
Basic Macintosh data types.
unsigned char Str32Field[34]
Definition: MacTypes.h:461
unsigned char * StringPtr
Definition: MacTypes.h:477
unsigned char Boolean
Definition: MacTypes.h:318
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Definition: AppleTalk.h:334
Definition: PPCToolbox.h:368
Definition: PPCToolbox.h:138
Definition: PPCToolbox.h:262
Definition: PPCToolbox.h:129
Definition: PPCToolbox.h:355
Definition: PPCToolbox.h:341
Definition: PPCToolbox.h:190
Definition: PPCToolbox.h:151
Definition: PPCToolbox.h:318
Definition: PPCToolbox.h:276
Definition: PPCToolbox.h:237
Definition: PPCToolbox.h:295
Definition: PPCToolbox.h:111
Definition: PPCToolbox.h:168
Definition: PPCToolbox.h:390