Known good

This commit is contained in:
Elliot Nunn 2019-01-13 15:57:32 +08:00
parent 131b60959a
commit 6faaef5995
1870 changed files with 457725 additions and 326865 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

1
Apps/ResEdit.idump Normal file
View File

@ -0,0 +1 @@
APPLRSED

43589
Apps/ResEdit.rdump Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,217 +0,0 @@
/************************************************************
Created: Friday, September 13, 1991 at 10:23 AM
ADSP.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1986-1991
All rights reserved
************************************************************/
#ifndef __ADSP__
#define __ADSP__
#ifndef __APPLETALK__
#include <AppleTalk.h>
#endif
enum {
/* driver control ioResults */
errRefNum = -1280, /* bad connection refNum */
errAborted = -1279, /* control call was aborted */
errState = -1278, /* bad connection state for this operation */
errOpening = -1277, /* open connection request failed */
errAttention = -1276, /* attention message too long */
errFwdReset = -1275, /* read terminated by forward reset */
errDSPQueueSize = -1274, /* DSP Read/Write Queue Too small */
errOpenDenied = -1273, /* open connection request was denied */
/*driver control csCodes*/
dspInit = 255, /* create a new connection end */
dspRemove = 254, /* remove a connection end */
dspOpen = 253, /* open a connection */
dspClose = 252, /* close a connection */
dspCLInit = 251, /* create a connection listener */
dspCLRemove = 250, /* remove a connection listener */
dspCLListen = 249, /* post a listener request */
dspCLDeny = 248, /* deny an open connection request */
dspStatus = 247, /* get status of connection end */
dspRead = 246, /* read data from the connection */
dspWrite = 245, /* write data on the connection */
dspAttention = 244 /* send an attention message */
};
enum {
dspOptions = 243, /* set connection end options */
dspReset = 242, /* forward reset the connection */
dspNewCID = 241, /* generate a cid for a connection end */
/* connection opening modes */
ocRequest = 1, /* request a connection with remote */
ocPassive = 2, /* wait for a connection request from remote */
ocAccept = 3, /* accept request as delivered by listener */
ocEstablish = 4, /* consider connection to be open */
/* connection end states */
sListening = 1, /* for connection listeners */
sPassive = 2, /* waiting for a connection request from remote */
sOpening = 3, /* requesting a connection with remote */
sOpen = 4, /* connection is open */
sClosing = 5, /* connection is being torn down */
sClosed = 6, /* connection end state is closed */
/* client event flags */
eClosed = 0x80, /* received connection closed advice */
eTearDown = 0x40, /* connection closed due to broken connection */
eAttention = 0x20, /* received attention message */
eFwdReset = 0x10, /* received forward reset advice */
/* miscellaneous constants */
attnBufSize = 570, /* size of client attention buffer */
minDSPQueueSize = 100 /* Minimum size of receive or send Queue */
};
/* connection control block */
struct TRCCB {
unsigned char *ccbLink; /* link to next ccb */
unsigned short refNum; /* user reference number */
unsigned short state; /* state of the connection end */
unsigned char userFlags; /* flags for unsolicited connection events */
unsigned char localSocket; /* socket number of this connection end */
AddrBlock remoteAddress; /* internet address of remote end */
unsigned short attnCode; /* attention code received */
unsigned short attnSize; /* size of received attention data */
unsigned char *attnPtr; /* ptr to received attention data */
unsigned char reserved[220]; /* for adsp internal use */
};
typedef struct TRCCB TRCCB;
typedef TRCCB *TPCCB;
/* init connection end parameters */
struct TRinitParams {
TPCCB ccbPtr; /* pointer to connection control block */
ProcPtr userRoutine; /* client routine to call on event */
unsigned short sendQSize; /* size of send queue (0..64K bytes) */
unsigned char *sendQueue; /* client passed send queue buffer */
unsigned short recvQSize; /* size of receive queue (0..64K bytes) */
unsigned char *recvQueue; /* client passed receive queue buffer */
unsigned char *attnPtr; /* client passed receive attention buffer */
unsigned char localSocket; /* local socket number */
};
typedef struct TRinitParams TRinitParams;
/* open connection parameters */
struct TRopenParams {
unsigned short localCID; /* local connection id */
unsigned short remoteCID; /* remote connection id */
AddrBlock remoteAddress; /* address of remote end */
AddrBlock filterAddress; /* address filter */
unsigned long sendSeq; /* local send sequence number */
unsigned short sendWindow; /* send window size */
unsigned long recvSeq; /* receive sequence number */
unsigned long attnSendSeq; /* attention send sequence number */
unsigned long attnRecvSeq; /* attention receive sequence number */
unsigned char ocMode; /* open connection mode */
unsigned char ocInterval; /* open connection request retry interval */
unsigned char ocMaximum; /* open connection request retry maximum */
};
typedef struct TRopenParams TRopenParams;
/* close connection parameters */
struct TRcloseParams {
unsigned char abort; /* abort connection immediately if non-zero */
};
typedef struct TRcloseParams TRcloseParams;
/* client status parameter block */
struct TRstatusParams {
TPCCB ccbPtr; /* pointer to ccb */
unsigned short sendQPending; /* pending bytes in send queue */
unsigned short sendQFree; /* available buffer space in send queue */
unsigned short recvQPending; /* pending bytes in receive queue */
unsigned short recvQFree; /* available buffer space in receive queue */
};
typedef struct TRstatusParams TRstatusParams;
/* read/write parameter block */
struct TRioParams {
unsigned short reqCount; /* requested number of bytes */
unsigned short actCount; /* actual number of bytes */
unsigned char *dataPtr; /* pointer to data buffer */
unsigned char eom; /* indicates logical end of message */
unsigned char flush; /* send data now */
};
typedef struct TRioParams TRioParams;
/* attention parameter block */
struct TRattnParams {
unsigned short attnCode; /* client attention code */
unsigned short attnSize; /* size of attention data */
unsigned char *attnData; /* pointer to attention data */
unsigned char attnInterval; /* retransmit timer in 10-tick intervals */
};
typedef struct TRattnParams TRattnParams;
/* client send option parameter block */
struct TRoptionParams {
unsigned short sendBlocking; /* quantum for data packets */
unsigned char sendTimer; /* send timer in 10-tick intervals */
unsigned char rtmtTimer; /* retransmit timer in 10-tick intervals */
unsigned char badSeqMax; /* threshold for sending retransmit advice */
unsigned char useCheckSum; /* use ddp packet checksum */
};
typedef struct TRoptionParams TRoptionParams;
/* new cid parameters */
struct TRnewcidParams {
unsigned short newcid; /* new connection id returned */
};
typedef struct TRnewcidParams TRnewcidParams;
/* ADSP CntrlParam ioQElement , driver control call parameter block*/
struct DSPParamBlock {
struct QElem *qLink;
short qType;
short ioTrap;
Ptr ioCmdAddr;
ProcPtr ioCompletion;
OSErr ioResult;
char *ioNamePtr;
short ioVRefNum;
short ioCRefNum; /* adsp driver refNum */
short csCode; /* adsp driver control code */
long qStatus; /* adsp internal use */
short ccbRefNum;
union{
TRinitParams initParams; /*dspInit, dspCLInit*/
TRopenParams openParams; /*dspOpen, dspCLListen, dspCLDeny*/
TRcloseParams closeParams; /*dspClose, dspRemove*/
TRioParams ioParams; /*dspRead, dspWrite*/
TRattnParams attnParams; /*dspAttention*/
TRstatusParams statusParams; /*dspStatus*/
TRoptionParams optionParams; /*dspOptions*/
TRnewcidParams newCIDParams; /*dspNewCID*/
} u;
};
typedef struct DSPParamBlock DSPParamBlock;
typedef DSPParamBlock *DSPPBPtr;
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"4720 750D 7374 6174 7573 5061 7261 6D73" /* G u.statusParams */
$"2044 5320 5452 7374 6174 7573 5061 7261" /* DS TRstatusPara */
$"0641 4453 502E 68DA 0200 0000 5445 5854" /* .ADSP.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 00E7" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 6172" /* ...d..........ar */
$"616D 7320 4453 2054 526E 6577 6369 6450" /* ams DS TRnewcidP */
$"6172 616D 7320 3B64 7370 4E65 7743 4944" /* arams ;dspNewCID */
$"0D20 4F52 470D 7369 7A65 2045 5155 202A" /* . ORG.size EQU * */
$"0D20 454E 4452 005E 0006 0064 6972 7479" /* . ENDR.^...dirty */
$"005D 0006 0064 6972 7479 0025 000B 002A" /* .]...dirty.%...* */
$"696F 4E61 6D65 5074 7200 003A 0317 0073" /* ioNamePtr..:...s */
$"7472 7563 7420 4453 5050 6172 616D 426C" /* truct DSPParamBl */
$"6F63 6B20 7B0D 0973 7472 7563 7420 5145" /* ock {..struct QE */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006E 7369 676E 6564" /* ..Monaco.nsigned */
$"2063 6861 7220 2A61 7474 6E50 7472 3B09" /* char *attnPtr;. */
$"092F 0006 0004 0031 000A 015D 01E0 0031" /* ./.....1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,258 +0,0 @@
/*———————————————————————————————————————————————————————————————————————————————————*/
/*
©Apple Computer, Inc. 2/21/91
All Rights Reserved.
*/
#ifndef __AEOBJECTS__
#define __AEOBJECTS__
#ifndef __MEMORY__
#include <Memory.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
#ifndef __EVENTS__
#include <Events.h>
#endif
#ifndef __EPPC__
#include <EPPC.h>
#endif
#ifndef __APPLEEVENTS__
#include <AppleEvents.h>
#endif
/* Logical operators: look for them in descriptors of type typeLogicalDescriptor
with keyword keyAELogicalOperator */
#define kAEAND 'AND '
#define kAEOR 'OR '
#define kAENOT 'NOT '
/* Absolute ordinals: look for them in descriptors of type typeAbsoluteOrdinal.
Possible use is as keyAEKeyData in an object specifier whose keyAEKeyForm
field is formAbsolutePosition. */
#define kAEFirst 'firs'
#define kAELast 'last'
#define kAEMiddle 'midd'
#define kAEAny 'any '
#define kAEAll 'all '
/* Relative ordinals: look for them in descriptors of type formRelativePosition. */
#define kAENext 'next'
#define kAEPrevious 'prev'
/********** Keywords for getting fields out of object specifier records **********/
#define keyAEDesiredClass 'want'
#define keyAEContainer 'from'
#define keyAEKeyForm 'form'
#define keyAEKeyData 'seld'
/********** Keywords for getting fields out of Range specifier records **********/
#define keyAERangeStart 'star' /* These are the only two fields in the range desc */
#define keyAERangeStop 'stop'
/********** Possible values for the keyAEKeyForm field of an object specifier **********/
/* Remember that this set is an open-ended one. The OSL makes assumptions about some of them,
but nothing in the grammar says you can't define your own */
#define formAbsolutePosition 'indx' /* e.g., 1st, -2nd ( 2nd from end) */
#define formRelativePosition 'rele' /* next, previous */
#define formTest 'test' /* A logical or a comparison */
#define formRange 'rang' /* Two arbitrary objects and everything in between */
#define formPropertyID 'prop' /* Key data is a 4-char property name */
#define formName 'name' /* Key data may be of type 'TEXT' */
/************** Various relevant types ****************/
/* Some of these tend to be paired with certain of the forms above. Where this
is the case comments indicating the form(s) follow. */
#define typeObjectSpecifier 'obj ' /* keyAEContainer will often be one of these */
#define typeObjectBeingExamined 'exmn' /* Another possible value for keyAEContainer */
#define typeCurrentContainer 'ccnt' /* Another possible value for keyAEContainer */
#define typeToken 'toke' /* Substituted for 'ccnt' before accessor called */
#define typeRelativeDescriptor 'rel ' /* formRelativePosition */
#define typeAbsoluteOrdinal 'abso' /* formAbsolutePosition */
#define typeIndexDescriptor 'inde' /* formAbsolutePosition */
#define typeRangeDescriptor 'rang' /* formRange */
#define typeLogicalDescriptor 'logi' /* formTest is this or typeCompDescriptor */
#define typeCompDescriptor 'cmpd' /* formTest is this or typeLogicalDescriptor */
/************** various relevant keywords ****************/
#define keyAECompOperator 'relo' /* Relates two terms: '', '<', etc. */
#define keyAELogicalTerms 'term' /* An AEList of terms to be related by 'logc' below */
#define keyAELogicalOperator 'logc' /* kAEAND, kAEOR or kAENOT */
#define keyAEObject1 'obj1' /* One of two objects in a term must be object specifier */
#define keyAEObject2 'obj2' /* The other object may be a simple descriptor or obj. spec. */
/************ Special Handler selectors for OSL Callbacks ***************/
/* You don't need to use these unless you are not using AESetObjectCallbacks. */
#define keyDisposeTokenProc 'xtok'
#define keyAECompareProc 'cmpr'
#define keyAECountProc 'cont'
#define keyAEMarkTokenProc 'mkid'
#define keyAEMarkProc 'mark'
#define keyAEAdjustMarksProc 'adjm'
#define keyAEGetErrDescProc 'indc'
/************ Error codes ***************/
/* OSL error codes: AEM proper uses up to -1719*/
#define errAEImpossibleRange -1720 /* A range like 3rd to 2nd, or 1st to all. */
#define errAEWrongNumberArgs -1721 /* Logical op kAENOT used with other than 1 term */
#define errAEAccessorNotFound -1723 /* Accessor proc matching wantClass and containerType
...or wildcards not found */
#define errAENoSuchLogical -1725 /* Something other than AND, OR, or NOT */
#define errAEBadTestKey -1726 /* Test is neither typeLogicalDescriptor
...nor typeCompDescriptor */
#define errAENotAnObjSpec -1727 /* Param to AEResolve not of type 'obj ' */
#define errAENoSuchObject -1728 /* e.g.,: specifier asked for the 3rd, but there are only 2.
...Basically, this indicates a run-time resolution error. */
#define errAENegativeCount -1729 /* CountProc returned negative value */
#define errAEEmptyListContainer -1730 /* Attempt to pass empty list as container to accessor */
/* Possible values for flags parameter to AEResolve. They're additive */
#define kAEIDoMinimum 0x0000
#define kAEIDoWhose 0x0001
#define kAEIDoMarking 0x0004
/* You only care about the constants that follow if you're doing your own whose
clause resolution */
#define typeWhoseDescriptor 'whos'
#define formWhose 'whos'
#define typeWhoseRange 'wrng'
#define keyAEWhoseRangeStart 'wstr'
#define keyAEWhoseRangeStop 'wstp'
#define keyAEIndex 'kidx'
#define keyAETest 'ktst'
struct ccntTokenRecord { /* used for rewriting tokens in place of 'ccnt' descriptors */
DescType tokenClass ; /* This record is only of interest to those who, when they... */
AEDesc token ; /* ...get ranges as key data in their accessor procs, choose */
} ; /* ...to resolve them manually rather than call AEResolve again. */
typedef struct ccntTokenRecord ccntTokenRecord, *ccntTokenRecPtr, **ccntTokenRecHandle ;
typedef AEDesc *DescPtr, **DescHandle ;
/* typedefs providing type checking for procedure pointers */
typedef pascal OSErr (*accessorProcPtr) ( DescType desiredClass,
const AEDesc *container, DescType containerClass, DescType form,
const AEDesc *selectionData, AEDesc *value, long LongInt ) ;
typedef pascal OSErr (*compareProcPtr)( DescType oper, const AEDesc *obj1,
const AEDesc *obj2, Boolean *result ) ;
typedef pascal OSErr (*countProcPtr)( DescType desiredType, DescType containerClass,
const AEDesc *container, long *result ) ;
typedef pascal OSErr (*disposeTokenProcPtr)( AEDesc *unneededToken ) ;
typedef pascal OSErr (*getMarkTokenProcPtr)( const AEDesc *dContainerToken, DescType containerClass,
AEDesc *result ) ;
typedef pascal OSErr (*getErrDescProcPtr)( DescPtr *appDescPtr ) ;
/* Note: app is supposed to dispose of dToken after marking */
typedef pascal OSErr (*markProcPtr)( const AEDesc *dToken, const AEDesc *markToken, long index ) ;
typedef pascal OSErr (*adjustMarksProcPtr)( long newStart, long newStop, const AEDesc *markToken ) ;
/*——————————————————————————————— PUBLIC PROCEDURES —————————————————————————————————*/
pascal OSErr AEObjectInit() ;
/* Not done by inline, but by direct linking into code. It sets up the pack
such that further calls can be via inline */
pascal OSErr AESetObjectCallbacks(
compareProcPtr myCompareProc,
countProcPtr myCountProc,
disposeTokenProcPtr myDisposeTokenProc,
getMarkTokenProcPtr myGetMarkTokenProc, /* called when mark (below) is true (all 3)*/
markProcPtr myMarkProc,
adjustMarksProcPtr myAdjustMarksProc,
getErrDescProcPtr myGetErrDescProcPtr )
= { 0x303C, 0x0E35, 0xA816 } ;
pascal OSErr AEResolve ( const AEDesc *objectSpecifier,
short callbackFlags, /* see above for possible values */
AEDesc *theToken )
= { 0x303C, 0x0536, 0xA816 } ;
pascal OSErr AEInstallObjectAccessor(
DescType desiredClass,
DescType containerType,
accessorProcPtr theAccessor,
long accessorRefcon,
Boolean isSysHandler )
= { 0x303C, 0x0937, 0xA816 } ;
pascal OSErr AERemoveObjectAccessor(
DescType desiredClass,
DescType containerType,
accessorProcPtr theAccessor,
Boolean isSysHandler )
= { 0x303C, 0x0738, 0xA816 } ;
pascal OSErr AEGetObjectAccessor(
DescType desiredClass,
DescType containerType,
accessorProcPtr *accessor,
long *accessorRefcon,
Boolean isSysHandler )
= { 0x303C, 0x0939, 0xA816 } ;
pascal OSErr AEDisposeToken( AEDesc *theToken )
= { 0x303C, 0x023A, 0xA816 } ;
pascal OSErr AECallObjectAccessor( DescType desiredClass,
const AEDesc *containerToken,
DescType containerClass,
DescType keyForm,
const AEDesc *keyData,
AEDesc *token )
= { 0x303C, 0x0C3B, 0xA816 } ;
/*
Here are the interfaces your callback procs must be written to:
pascal OSErr MyCompareProc( DescType comparisonOperator, const AEDesc *theObject,
const AEDesc *descOrObj, Boolean *result ) ;
pascal OSErr MyCountProc( DescType desiredType, DescType containerClass,
const AEDesc *container, long *result: ) ;
pascal OSErr MyGetMarkToken( const AEDesc *containerToken, DescType containerClass,
AEDesc *result ) ;
pascal OSErr MyMark( const AEDesc *theToken, const AEDesc *markToken, long markCount ) ;
pascal OSErr MyAdjustMarks( long newStart, long newStop, const AEDesc *markToken ) ;
pascal OSErr MyMyDisposeToken( AEDesc *unneededToken ) ;
pascal OSErr MyGetErrDesc( DescPtr *appDescPtr ) ;
pascal OSErr MyObjectAccessor( DescType desiredClass, const AEDesc *containerToken,
DescType containerClass, DescType keyForm, const AEDesc *keyData,
AEDesc *theToken, long *theRefcon ) ;
You'll probably want to have a number of these last ones.
A proc that finds a line within a document should be installed with 'line' and 'docu'
as the desiredClass and containerClass fields in the call to AEInstallObjectHandler().
*/
#endif

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6F20 796F 7520 7761 6E74 2074 6F20 7072" /* o you want to pr */
$"6F63 6565 643F 2011 0D0D 2D2D 2D2D 4849" /* oceed? ...----HI */
$"0B41 454F 626A 6563 7473 2E68 0200 0000" /* .AEObjects.h.... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A3E9 A420 0000 0000 0000 01D6 6D6F" /* ..... ........mo */
$"6574 732C 204C 6177 7265 6E63 6520 596F" /* ets, Lawrence Yo */
$"752C 204A 6F68 6E20 4461 6E63 652C 2050" /* u, John Dance, P */
$"6574 6572 2050 6F74 7265 6269 632C 0D09" /* eter Potrebic,.. */
$"4A65 6666 2050 6172 7269 7368 2C20 426F" /* Jeff Parrish, Bo */
$"6220 4574 6865 7265 6467 652C 2044 616E" /* b Etheredge, Dan */
$"2053 6D69 7468 2C20 5269 636B 204D 6579" /* Smith, Rick Mey */
$"6572 732C 2044 616E 2041 6C6C 656E 2C0D" /* ers, Dan Allen,. */
$"0952 6F6E 204B 6172 722C 204E 6963 6B20" /* .Ron Karr, Nick */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FABC 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A47B CA6B 0000 0000 0000" /* ...]...{.k...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,46 +0,0 @@
/************************************************************************************
©Apple Computer, Inc. 1991
All Rights Reserved.
************************************************************************************/
#ifndef __AEOBJECTPACKING__
#define __AEOBJECTPACKING__
#ifndef __APPLEEVENTS__
#include <AppleEvents.h>
#endif
/* These are the object packing routines. */
pascal OSErr CreateOffsetDescriptor( long theOffset,
AEDesc *theDescriptor ) ;
pascal OSErr CreateCompDescriptor( DescType comparisonOperator,
AEDesc* operand1,
AEDesc* operand2,
Boolean disposeInputs,
AEDesc* theDescriptor ) ;
pascal OSErr CreateLogicalDescriptor( AEDescList *theLogicalTerms, /* a list of comb and logi terms */
DescType theLogicOperator, /* the operator, e.g. AND */
Boolean disposeInputs,
AEDesc *theDescriptor ) ;
pascal OSErr CreateObjSpecifier( DescType desiredClass,
AEDesc *theContainer,
DescType keyForm,
AEDesc *keyData,
Boolean disposeInputs,
AEDesc *objSpecifier ) ;
pascal OSErr CreateRangeDescriptor( AEDesc *rangeStart,
AEDesc *rangeStop,
Boolean disposeInputs,
AEDesc *theDescriptor ) ;
#endif

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"D5C0 226D F850 7028 D3C0 2049 B5C8 6300" /* .."m.Pp(.. I..c. */
$"FFD4 6026 42A7 486D F8FA 4EBA FB9A 4878" /* ..`&B.Hm..N...Hx */
$"0E41 4550 6163 6B4F 626A 6563 742E 6841" /* .AEPackObject.hA */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A441 A781 0000 0000 0000 01D6 282E" /* ...A..........(. */
$"0008 302D F84E 48C0 81FC 0014 48C0 2600" /* ..0-.NH.....H.&. */
$"5383 7400 600A 2F02 4EBA FB9E 588F 5282" /* S.t.`./.N...X.R. */
$"B483 6F00 FFF2 4AAD F868 6708 2F04 4EAD" /* ..o...J..hg./.N. */
$"01DA 588F 4CEE 001C FFF4 4E5E 4E75 DF43" /* ..X.L.....N^Nu.C */
$"4F52 4549 4F45 4E56 0000 302E 000A 7200" /* OREIOENV..0...r. */
$"0C40 FF94 6D60 6E04 6000 008C 0C40 FFC3" /* .@..m`n.`....@.. */
$"6D4E 0C40 FFDF 6E48 907C FFC3 D040 303B" /* mN.@..nH.|...@0; */
$"0006 4EFB 0002 009A 0044 0068 0056 0076" /* ..N......D.h.V.v */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0062 6A65 6374 2E68" /* ..Monaco.bject.h */
$"0022 0049 6E63 6C75 6465 733A 4145 5061" /* .".Includes:AEPa */
$"636B 0006 0004 0031 000A 015D 01E0 0031" /* ck.....1...]...1 */
$"000A 015D 01E0 A47B D924 0000 0000 0000" /* ...]...{.$...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,538 +0,0 @@
/************************************************************
Created: 2:40 PM Thu, 18 Feb 1993
AERegistry.h
C Interface to the Apple Event Registry
Copyright Apple Computer, Inc. 1993
All rights reserved
************************************************************/
#ifndef __AEREGISTRY__
#define __AEREGISTRY__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __APPLEEVENTS__
#include <AppleEvents.h>
#endif
enum {
cAEList = 'list',
cApplication = 'capp',
cArc = 'carc',
cBoolean = 'bool',
cCell = 'ccel',
cChar = 'cha ',
cColorTable = 'clrt',
cColumn = 'ccol',
cDocument = 'docu',
cDrawingArea = 'cdrw',
cEnumeration = 'enum',
cFile = 'file',
cFixed = 'fixd',
cFixedPoint = 'fpnt',
cFixedRectangle = 'frct',
cGraphicLine = 'glin',
cGraphicObject = 'cgob',
cGraphicShape = 'cgsh',
cGraphicText = 'cgtx',
cGroupedGraphic = 'cpic'
};
enum {
cInsertionLoc = 'insl',
cInsertionPoint = 'cins',
cIntlText = 'itxt',
cIntlWritingCode = 'intl',
cItem = 'citm',
cLine = 'clin',
cLongDateTime = 'ldt ',
cLongFixed = 'lfxd',
cLongFixedPoint = 'lfpt',
cLongFixedRectangle = 'lfrc',
cLongInteger = 'long',
cLongPoint = 'lpnt',
cLongRectangle = 'lrct',
cMachineLoc = 'mLoc',
cMenu = 'cmnu',
cMenuItem = 'cmen',
cObject = 'cobj',
cObjectSpecifier = 'obj ',
cOpenableObject = 'coob',
cOval = 'covl'
};
enum {
cParagraph = 'cpar',
cPICT = 'PICT',
cPixel = 'cpxl',
cPixelMap = 'cpix',
cPolygon = 'cpgn',
cProperty = 'prop',
cQDPoint = 'QDpt',
cQDRectangle = 'qdrt',
cRectangle = 'crec',
cRGBColor = 'cRGB',
cRotation = 'trot',
cRoundedRectangle = 'crrc',
cRow = 'crow',
cSelection = 'csel',
cShortInteger = 'shor',
cTable = 'ctbl',
cText = 'ctxt',
cTextFlow = 'cflo',
cTextStyles = 'tsty',
cType = 'type'
};
enum {
cVersion = 'vers',
cWindow = 'cwin',
cWord = 'cwor',
enumArrows = 'arro',
enumJustification = 'just',
enumKeyForm = 'kfrm',
enumPosition = 'posi',
enumProtection = 'prtn',
enumQuality = 'qual',
enumSaveOptions = 'savo',
enumStyle = 'styl',
enumTransferMode = 'tran',
errAEBadKeyForm = -10002,
errAECantHandleClass = -10010,
errAECantSupplyType = -10009,
errAECantUndo = -10015,
errAEEventFailed = -10000,
errAEIndexTooLarge = -10007,
errAEInTransaction = -10011,
errAELocalOnly = -10016
};
enum {
errAENoSuchTransaction = -10012,
errAENotAnElement = -10008,
errAENotASingleObject = -10014,
errAENotModifiable = -10003,
errAENoUserSelection = -10013,
errAEPrivilegeError = -10004,
errAEReadDenied = -10005,
errAETypeError = -10001,
errAEWriteDenied = -10006,
formUniqueID = 'ID ',
kAEAbout = 'abou',
kAEAfter = 'afte',
kAEAliasSelection = 'sali',
kAEAllCaps = 'alcp',
kAEArrowAtEnd = 'aren',
kAEArrowAtStart = 'arst',
kAEArrowBothEnds = 'arbo',
kAEAsk = 'ask ',
kAEBefore = 'befo',
kAEBeginning = 'bgng'
};
enum {
kAEBeginsWith = 'bgwt',
kAEBeginTransaction = 'begi',
kAEBold = 'bold',
kAECaseSensEquals = 'cseq',
kAECentered = 'cent',
kAEChangeView = 'view',
kAEClone = 'clon',
kAEClose = 'clos',
kAECondensed = 'cond',
kAEContains = 'cont',
kAECopy = 'copy',
kAECoreSuite = 'core',
kAECountElements = 'cnte',
kAECreateElement = 'crel',
kAECreatePublisher = 'cpub',
kAECut = 'cut ',
kAEDelete = 'delo',
kAEDoObjectsExist = 'doex',
kAEDoScript = 'dosc',
kAEDrag = 'drag'
};
enum {
kAEDuplicateSelection = 'sdup',
kAEEditGraphic = 'edit',
kAEEmptyTrash = 'empt',
kAEEnd = 'end ',
kAEEndsWith = 'ends',
kAEEndTransaction = 'endt',
kAEEquals = '= ',
kAEExpanded = 'pexp',
kAEFast = 'fast',
kAEFinderEvents = 'FNDR',
kAEFormulaProtect = 'fpro',
kAEFullyJustified = 'full',
kAEGetClassInfo = 'qobj',
kAEGetData = 'getd',
kAEGetDataSize = 'dsiz',
kAEGetEventInfo = 'gtei',
kAEGetInfoSelection = 'sinf',
kAEGetPrivilegeSelection = 'sprv',
kAEGetSuiteInfo = 'gtsi',
kAEGreaterThan = '> '
};
enum {
kAEGreaterThanEquals = '>= ',
kAEGrow = 'grow',
kAEHidden = 'hidn',
kAEHiQuality = 'hiqu',
kAEImageGraphic = 'imgr',
kAEInfo = 11,
kAEIsUniform = 'isun',
kAEItalic = 'ital',
kAELeftJustified = 'left',
kAELessThan = '< ',
kAELessThanEquals = '<= ',
kAELowercase = 'lowc',
kAEMain = 0,
kAEMakeObjectsVisible = 'mvis',
kAEMiscStandards = 'misc',
kAEModifiable = 'modf',
kAEMove = 'move',
kAENo = 'no ',
kAENoArrow = 'arno',
kAENonmodifiable = 'nmod'
};
enum {
kAEOpen = 'odoc',
kAEOpenSelection = 'sope',
kAEOutline = 'outl',
kAEPageSetup = 'pgsu',
kAEPaste = 'past',
kAEPlain = 'plan',
kAEPrint = 'pdoc',
kAEPrintSelection = 'spri',
kAEPrintWindow = 'pwin',
kAEPutAwaySelection = 'sput',
kAEQDAddOver = 'addo',
kAEQDAddPin = 'addp',
kAEQDAdMax = 'admx',
kAEQDAdMin = 'admn',
kAEQDBic = 'bic ',
kAEQDBlend = 'blnd',
kAEQDCopy = 'cpy ',
kAEQDNotBic = 'nbic',
kAEQDNotCopy = 'ncpy',
kAEQDNotOr = 'ntor'
};
enum {
kAEQDNotXor = 'nxor',
kAEQDOr = 'or ',
kAEQDSubOver = 'subo',
kAEQDSubPin = 'subp',
kAEQDSupplementalSuite = 'qdsp',
kAEQDXor = 'xor ',
kAEQuickdrawSuite = 'qdrw',
kAERedo = 'redo',
kAERegular = 'regl',
kAEReplace = 'rplc',
kAERequiredSuite = 'reqd',
kAERestart = 'rest',
kAERevealSelection = 'srev',
kAERevert = 'rvrt',
kAERightJustified = 'rght',
kAESave = 'save',
kAESelect = 'slct',
kAESetData = 'setd',
kAESetPosition = 'posn',
kAEShadow = 'shad'
};
enum {
kAESharing = 13,
kAEShowClipboard = 'shcl',
kAEShutDown = 'shut',
kAESleep = 'slep',
kAESmallCaps = 'smcp',
kAESpecialClassProperties = 'c@#!',
kAEStrikethrough = 'strk',
kAESubscript = 'sbsc',
kAESuperscript = 'spsc',
kAETableSuite = 'tbls',
kAETextSuite = 'TEXT',
kAETransactionTerminated = 'ttrm',
kAEUnderline = 'undl',
kAEUndo = 'undo',
kAEWholeWordEquals = 'wweq',
kAEYes = 'yes ',
kAEZoom = 'zoom',
kByCommentView = 6,
kByDateView = 3,
kByIconView = 1
};
enum {
kByKindView = 5,
kByLabelView = 7,
kByNameView = 2,
kBySizeView = 4,
kBySmallIcon = 0,
kByVersionView = 8,
keyAEAngle = 'kang',
keyAEArcAngle = 'parc',
keyAEBaseAddr = 'badd',
keyAEBestType = 'pbst',
keyAEBgndColor = 'kbcl',
keyAEBgndPattern = 'kbpt',
keyAEBounds = 'pbnd',
keyAECellList = 'kclt',
keyAEClassID = 'clID',
keyAEColor = 'colr',
keyAEColorTable = 'cltb',
keyAECurveHeight = 'kchd',
keyAECurveWidth = 'kcwd',
keyAEDashStyle = 'pdst'
};
enum {
keyAEData = 'data',
keyAEDefaultType = 'deft',
keyAEDefinitionRect = 'pdrt',
keyAEDescType = 'dstp',
keyAEDestination = 'dest',
keyAEDoAntiAlias = 'anta',
keyAEDoDithered = 'gdit',
keyAEDoRotate = 'kdrt',
keyAEDoScale = 'ksca',
keyAEDoTranslate = 'ktra',
keyAEEditionFileLoc = 'eloc',
keyAEElements = 'elms',
keyAEEndPoint = 'pend',
keyAEEventClass = 'evcl',
keyAEEventID = 'evti',
keyAEFile = 'kfil',
keyAEFileType = 'fltp',
keyAEFillColor = 'flcl',
keyAEFillPattern = 'flpt',
keyAEFlipHorizontal = 'kfho'
};
enum {
keyAEFlipVertical = 'kfvt',
keyAEFont = 'font',
keyAEFormula = 'pfor',
keyAEGraphicObjects = 'gobs',
keyAEID = 'ID ',
keyAEImageQuality = 'gqua',
keyAEInsertHere = 'insh',
keyAEKeyForms = 'keyf',
keyAEKeyword = 'kywd',
keyAELevel = 'levl',
keyAELineArrow = 'arro',
keyAEName = 'pnam',
keyAENewElementLoc = 'pnel',
keyAEObject = 'kobj',
keyAEObjectClass = 'kocl',
keyAEOffStyles = 'ofst',
keyAEOnStyles = 'onst',
keyAEParameters = 'prms',
keyAEParamFlags = 'pmfg',
keyAEPenColor = 'ppcl'
};
enum {
keyAEPenPattern = 'pppa',
keyAEPenWidth = 'ppwd',
keyAEPixelDepth = 'pdpt',
keyAEPixMapMinus = 'kpmm',
keyAEPMTable = 'kpmt',
keyAEPointList = 'ptlt',
keyAEPointSize = 'ptsz',
keyAEPosition = 'kpos',
keyAEPropData = 'prdt',
keyAEProperties = 'qpro',
keyAEProperty = 'kprp',
keyAEPropFlags = 'prfg',
keyAEPropID = 'prop',
keyAEProtection = 'ppro',
keyAERenderAs = 'kren',
keyAERequestedType = 'rtyp',
keyAEResult = '----',
keyAEResultInfo = 'rsin',
keyAERotation = 'prot',
keyAERotPoint = 'krtp'
};
enum {
keyAERowList = 'krls',
keyAESaveOptions = 'savo',
keyAEScale = 'pscl',
keyAEScriptTag = 'psct',
keyAEShowWhere = 'show',
keyAEStartAngle = 'pang',
keyAEStartPoint = 'pstp',
keyAEStyles = 'ksty',
keyAESuiteID = 'suit',
keyAEText = 'ktxt',
keyAETextColor = 'ptxc',
keyAETextFont = 'ptxf',
keyAETextPointSize = 'ptps',
keyAETextStyles = 'txst',
keyAETheText = 'thtx',
keyAETransferMode = 'pptm',
keyAETranslation = 'ptrs',
keyAETryAsStructGraf = 'toog',
keyAEUniformStyles = 'ustl',
keyAEUpdateOn = 'pupd'
};
enum {
keyAEUserTerm = 'utrm',
keyAEWindow = 'wndw',
keyAEWritingCode = 'wrcd',
keyMiscellaneous = 'fmsc',
keySelection = 'fsel',
keyWindow = 'kwnd',
pArcAngle = 'parc',
pBackgroundColor = 'pbcl',
pBackgroundPattern = 'pbpt',
pBestType = 'pbst',
pBounds = 'pbnd',
pClass = 'pcls',
pClipboard = 'pcli',
pColor = 'colr',
pColorTable = 'cltb',
pContents = 'pcnt',
pCornerCurveHeight = 'pchd',
pCornerCurveWidth = 'pcwd',
pDashStyle = 'pdst',
pDefaultType = 'deft'
};
enum {
pDefinitionRect = 'pdrt',
pEnabled = 'enbl',
pEndPoint = 'pend',
pFillColor = 'flcl',
pFillPattern = 'flpt',
pFont = 'font',
pFormula = 'pfor',
pGraphicObjects = 'gobs',
pHasCloseBox = 'hclb',
pHasTitleBar = 'ptit',
pID = 'ID ',
pIndex = 'pidx',
pInsertionLoc = 'pins',
pIsFloating = 'isfl',
pIsFrontProcess = 'pisf',
pIsModal = 'pmod',
pIsModified = 'imod',
pIsResizable = 'prsz',
pIsStationeryPad = 'pspd',
pIsZoomable = 'iszm'
};
enum {
pIsZoomed = 'pzum',
pItemNumber = 'itmn',
pJustification = 'pjst',
pLineArrow = 'arro',
pMenuID = 'mnid',
pName = 'pnam',
pNewElementLoc = 'pnel',
pPenColor = 'ppcl',
pPenPattern = 'pppa',
pPenWidth = 'ppwd',
pPixelDepth = 'pdpt',
pPointList = 'ptlt',
pPointSize = 'ptsz',
pProtection = 'ppro',
pRotation = 'prot',
pScale = 'pscl',
pScript = 'scpt',
pScriptTag = 'psct',
pSelected = 'selc',
pSelection = 'sele'
};
enum {
pStartAngle = 'pang',
pStartPoint = 'pstp',
pTextColor = 'ptxc',
pTextFont = 'ptxf',
pTextItemDelimiters = 'txdl',
pTextPointSize = 'ptps',
pTextStyles = 'txst',
pTransferMode = 'pptm',
pTranslation = 'ptrs',
pUniformStyles = 'ustl',
pUpdateOn = 'pupd',
pUserSelection = 'pusl',
pVersion = 'vers',
pVisible = 'pvis',
typeAEText = 'tTXT',
typeArc = 'carc',
typeBest = 'best',
typeCell = 'ccel',
typeClassInfo = 'gcli',
typeColorTable = 'clrt'
};
enum {
typeColumn = 'ccol',
typeDashStyle = 'tdas',
typeData = 'tdta',
typeDrawingArea = 'cdrw',
typeElemInfo = 'elin',
typeEnumeration = 'enum',
typeEPS = 'EPS ',
typeEventInfo = 'evin',
typeFinderWindow = 'fwin',
typeFixed = 'fixd',
typeFixedPoint = 'fpnt',
typeFixedRectangle = 'frct',
typeGraphicLine = 'glin',
typeGraphicText = 'cgtx',
typeGroupedGraphic = 'cpic',
typeInsertionLoc = 'insl',
typeIntlText = 'itxt',
typeIntlWritingCode = 'intl',
typeLongDateTime = 'ldt ',
typeLongFixed = 'lfxd'
};
enum {
typeLongFixedPoint = 'lfpt',
typeLongFixedRectangle = 'lfrc',
typeLongPoint = 'lpnt',
typeLongRectangle = 'lrct',
typeMachineLoc = 'mLoc',
typeOval = 'covl',
typeParamInfo = 'pmin',
typePict = 'PICT',
typePixelMap = 'cpix',
typePixMapMinus = 'tpmm',
typePolygon = 'cpgn',
typePropInfo = 'pinf',
typeQDPoint = 'QDpt',
typeQDRectangle = 'qdrt',
typeRectangle = 'crec',
typeRGB16 = 'tr16',
typeRGB96 = 'tr96',
typeRGBColor = 'cRGB',
typeRotation = 'trot',
typeRoundedRectangle = 'crrc'
};
enum {
typeRow = 'crow',
typeScrapStyles = 'styl',
typeScript = 'scpt',
typeStyledText = 'STXT',
typeSuiteInfo = 'suin',
typeTable = 'ctbl',
typeTextStyles = 'tsty',
typeTIFF = 'TIFF',
typeVersion = 'vers',
zoomIn = 7,
zoomOut = 8
};
struct WritingCode {
ScriptCode theScriptCode;
LangCode theLangCode;
};
typedef struct WritingCode WritingCode;
struct IntlText {
ScriptCode theScriptCode;
LangCode theLangCode;
char theText[1];
/* variable length data */
};
typedef struct IntlText IntlText;
#endif

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6374 696F 6E09 0909 2D31 3030 3132 0D23" /* ction...-10012.# */
$"2064 6566 696E 6520 6572 7241 454E 6F74" /* define errAENot */
$"0C41 4552 6567 6973 7472 792E 68E4 0200" /* .AERegistry.h... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0219 6469" /* ..............di */
$"6669 6162 6C65 0909 092D 3130 3030 330D" /* fiable...-10003. */
$"2320 6465 6669 6E65 2065 7272 4145 4E6F" /* # define errAENo */
$"5573 6572 5365 6C65 6374 696F 6E09 0909" /* UserSelection... */
$"2D31 3030 3133 0D23 2064 6566 696E 6520" /* -10013.# define */
$"6572 7241 4550 7269 7669 6C65 6765 4572" /* errAEPrivilegeEr */
$"726F 7209 0909 2D31 3030 3034 0D23 2064" /* ror...-10004.# d */
$"6566 696E 6520 6572 7241 4552 6561 6444" /* efine errAEReadD */
$"656E 6965 6409 0909 2D31 3030 3035 0D23" /* enied...-10005.# */
};
#endif
data 'vers' (1) {
$"0120 8000 0000 0331 2E32 1F31 2E32 20A9" /* . .....1.2.1.2 . */
$"2031 3939 3220 4170 706C 6520 436F 6D70" /* 1992 Apple Comp */
$"7574 6572 2C20 496E 632E" /* uter, Inc. */
};
data 'vers' (2, purgeable) {
$"0100 8000 0000 0331 2E30 1041 7070 6C65" /* .......1.0.Apple */
$"5363 7269 7074 AA20 312E 30" /* Script. 1.0 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 001E 017C 7FFF 01AF" /* ..Monaco...|.... */
$"0000 017C 7FFF 7FFF 0000 002C 0059 080C" /* ...|.......,.Y.. */
$"0016 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A7E9 F4F8 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,230 +0,0 @@
/************************************************************
Created: Monday, December 2, 1991 at 5:00 PM
AIFF.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1990-1991
All rights reserved
************************************************************/
#ifndef __AIFF__
#define __AIFF__
#ifndef __TYPES__
#include <Types.h>
#endif
enum {
#define AIFFID 'AIFF'
#define AIFCID 'AIFC'
#define FormatVersionID 'FVER'
#define CommonID 'COMM'
#define FORMID 'FORM'
#define SoundDataID 'SSND'
#define MarkerID 'MARK'
#define InstrumentID 'INST'
#define MIDIDataID 'MIDI'
#define AudioRecordingID 'AESD'
#define ApplicationSpecificID 'APPL'
#define CommentID 'COMT'
#define NameID 'NAME'
#define AuthorID 'AUTH'
#define CopyrightID '(c) '
#define AnnotationID 'ANNO'
NoLooping = 0,
ForwardLooping = 1,
ForwardBackwardLooping = 2,
/* AIFF-C Versions */
AIFCVersion1 = 0xA2805140
/* Compression Names */
#define NoneName "\pnot compressed"
#define ACE2to1Name "\pACE 2-to-1"
#define ACE8to3Name "\pACE 8-to-3"
#define MACE3to1Name "\pMACE 3-to-1"
#define MACE6to1Name "\pMACE 6-to-1"
/* Compression Types */
#define NoneType 'NONE'
#define ACE2Type 'ACE2'
#define ACE8Type 'ACE8'
#define MACE3Type 'MAC3'
#define MACE6Type 'MAC6'
};
typedef unsigned long ID;
typedef short MarkerIdType;
struct ChunkHeader {
ID ckID;
long ckSize;
};
typedef struct ChunkHeader ChunkHeader;
struct ContainerChunk {
ID ckID;
long ckSize;
ID formType;
};
typedef struct ContainerChunk ContainerChunk;
struct FormatVersionChunk {
ID ckID;
long ckSize;
unsigned long timestamp;
};
typedef struct FormatVersionChunk FormatVersionChunk;
typedef FormatVersionChunk *FormatVersionChunkPtr;
struct CommonChunk {
ID ckID;
long ckSize;
short numChannels;
unsigned long numSampleFrames;
short sampleSize;
extended80 sampleRate;
};
typedef struct CommonChunk CommonChunk;
typedef CommonChunk *CommonChunkPtr;
struct ExtCommonChunk {
ID ckID;
long ckSize;
short numChannels;
unsigned long numSampleFrames;
short sampleSize;
extended80 sampleRate;
ID compressionType;
char compressionName[1];
};
typedef struct ExtCommonChunk ExtCommonChunk;
typedef ExtCommonChunk *ExtCommonChunkPtr;
struct SoundDataChunk {
ID ckID;
long ckSize;
unsigned long offset;
unsigned long blockSize;
};
typedef struct SoundDataChunk SoundDataChunk;
typedef SoundDataChunk *SoundDataChunkPtr;
struct Marker {
MarkerIdType id;
unsigned long position;
Str255 markerName;
};
typedef struct Marker Marker;
struct MarkerChunk {
ID ckID;
long ckSize;
unsigned short numMarkers;
Marker Markers[1];
};
typedef struct MarkerChunk MarkerChunk;
typedef MarkerChunk *MarkerChunkPtr;
struct AIFFLoop {
short playMode;
MarkerIdType beginLoop;
MarkerIdType endLoop;
};
typedef struct AIFFLoop AIFFLoop;
struct InstrumentChunk {
ID ckID;
long ckSize;
char baseFrequency;
char detune;
char lowFrequency;
char highFrequency;
char lowVelocity;
char highVelocity;
short gain;
AIFFLoop sustainLoop;
AIFFLoop releaseLoop;
};
typedef struct InstrumentChunk InstrumentChunk;
typedef InstrumentChunk *InstrumentChunkPtr;
struct MIDIDataChunk {
ID ckID;
long ckSize;
unsigned char MIDIdata[1];
};
typedef struct MIDIDataChunk MIDIDataChunk;
typedef MIDIDataChunk *MIDIDataChunkPtr;
struct AudioRecordingChunk {
ID ckID;
long ckSize;
unsigned char AESChannelStatus[24];
};
typedef struct AudioRecordingChunk AudioRecordingChunk;
typedef AudioRecordingChunk *AudioRecordingChunkPtr;
struct ApplicationSpecificChunk {
ID ckID;
long ckSize;
OSType applicationSignature;
char data[1];
};
typedef struct ApplicationSpecificChunk ApplicationSpecificChunk;
typedef ApplicationSpecificChunk *ApplicationSpecificChunkPtr;
struct Comment {
unsigned long timeStamp;
MarkerIdType marker;
unsigned short count;
char text[1];
};
typedef struct Comment Comment;
struct CommentsChunk {
ID ckID;
long ckSize;
unsigned short numComments;
Comment comments[1];
};
typedef struct CommentsChunk CommentsChunk;
typedef CommentsChunk *CommentsChunkPtr;
struct TextChunk {
ID ckID;
long ckSize;
char text[1];
};
typedef struct TextChunk TextChunk;
typedef TextChunk *TextChunkPtr;
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"000B 006D 7955 7365 724E 616D 6500 0106" /* ...myUserName... */
$"0005 0074 7275 6500 011C 0010 0034 2F34" /* ...true......4/4 */
$"0641 4946 462E 68DA 0200 0000 5445 5854" /* .AIFF.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 00EB" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0074" /* ...d...........t */
$"7970 6564 6566 2073 686F 7274 204C 616E" /* ypedef short Lan */
$"6743 6F64 653B 0140 0002 0031 0141 0005" /* gCode;.@...1.A.. */
$"0074 7275 6500 012F 0014 004C 616E 6743" /* .true../...LangC */
$"6F64 6520 3D20 494E 5445 4745 523B 0142" /* ode = INTEGER;.B */
$"0002 0031 0143 0005 0074 7275 6500 0130" /* ...1.C...true..0 */
$"0017 004C 616E 6743 6F64 6520 7479 7065" /* ...LangCode type */
$"6465 6620 7368 6F72 7400 0139 0006 0064" /* def short..9...d */
$"6972 7479 0138 0006 0064 6972 7479 4C61" /* irty.8...dirtyLa */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FB98 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,56 +0,0 @@
/*
File: ActionAtomIntf.h
Contains: C declarations for things the Installer wants to tell
action atoms about.
Written by: Bobby Carp
Copyright: © 1990 by Apple Computer, Inc., all rights reserved.
Change History (most recent first):
<4> 11/5/91 RRK Added Function prototype comment
<3> 11/7/90 BAC Need to include types.h
<2> 11/7/90 BAC Adding the AAPBRec that defines the parameters an action atom
receives.
<1> 10/8/90 BAC first checked in
To Do:
*/
#include <Types.h>
enum { before, after, cleanUpCancel };
typedef unsigned char InstallationStage ;
/* The action atom param block record contains all of the parameters that action atoms */
/* receive. The first (and only) parameter to action atoms is a ptr to this block (AAPBRecPtr) */
struct AAPBRec {
short targetVRefNum;
long blessedDirID;
long aaRefCon;
Boolean doingInstall;
InstallationStage whichStage;
Boolean didLiveUpdate;
long installerTempDirID;
};
typedef struct AAPBRec AAPBRec;
typedef AAPBRec *AAPBRecPtr;
/*
The function prototype for the format 0 Action Atom code is as follows
Boolean MyActionAtom(AAPBRecPtr myAAPBPtr)
The function prototype for the format 1 Action Atom code is as follows
long MyActionAtom(AAPBRecPtr myAAPBPtr)
*/

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"3007 C1FC 01D8 0640 E120 1035 0000 5300" /* 0......@. .5..S. */
$"672E 4AAC 01C6 6728 554F 2F2C 01C6 4EBA" /* g.J...g(UO/,..N. */
$"1041 6374 696F 6E41 746F 6D49 6E74 662E" /* .ActionAtomIntf. */
$"6874 0200 0000 5445 5854 4D50 5320 0000" /* ht....TEXTMPS .. */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A336 1867 0000 0000 0000 01D6 2F0B" /* ...6.g......../. */
$"4EBA FDD2 2E1F 4A87 57C0 2F00 554F 2F07" /* N.....J.W./.UO/. */
$"2053 3F28 000A 486D E6C0 4EBA 013A 121F" /* S?(..Hm..N..:.. */
$"201F 5301 8001 6712 3B7C FFFE E6B6 422E" /* .S...g.;|....B. */
$"000C 6000 0090 6000 0072 2F0B 205F A029" /* ..`...`..r/. _.) */
$"2853 1C2D A7FC 1B7C 0001 A7FC 4AAC 0010" /* (S.-...|....J... */
$"6610 594F 2F2C 0008 4EAD 0192 295F 0010" /* f.YO/,..N...)_.. */
$"600C 2F2C 0010 2F2C 0008 4EAD 01AA 554F" /* `./,../,..N...UO */
$"3EB8 0220 4A5F 670C 3B7C FFFD E6B6 422E" /* >.. J_g.;|....B. */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0074 6F6D 496E 7466" /* ..Monaco.tomIntf */
$"2E68 0022 0000 0000 0000 4D50 8200 0038" /* .h."......MP...8 */
$"0006 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A6E3 58B9 0000 0000 0000" /* ...]....X....... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"682E 680D 4D65 6D6F 7279 2E68 0D4D 656E" /* h.h.Memory.h.Men */
$"7573 2E68 0D4D 4944 492E 680D 4E6F 7469" /* us.h.MIDI.h.Noti */
$"0941 6C69 6173 6573 2E68 0200 0000 5445" /* .Aliases.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 680D" /* ...1.@........h. */
$"5069 6374 5574 696C 2E68 0D50 4C53 7472" /* PictUtil.h.PLStr */
$"696E 6746 756E 6373 2E68 0D50 6F77 6572" /* ingFuncs.h.Power */
$"2E68 0D50 5043 546F 6F6C 426F 782E 680D" /* .h.PPCToolBox.h. */
$"5072 696E 7469 6E67 2E68 0D50 7269 6E74" /* Printing.h.Print */
$"5472 6170 732E 680D 5072 6F63 6573 7365" /* Traps.h.Processe */
$"732E 680D 5144 4F66 6673 6372 6565 6E2E" /* s.h.QDOffscreen. */
$"680D 5175 6963 6B64 7261 772E 680D 5265" /* h.Quickdraw.h.Re */
$"736F 7572 6365 732E 680D 5265 7472 6163" /* sources.h.Retrac */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 000A 01E2 7FFF 01D3" /* ..Monaco........ */
$"02A3 02A4 7FFF 01D4 02A4 02C4 7FFF 01D5" /* ................ */
$"02C4 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,694 +0,0 @@
/*****************************************************************
Created: Monday, September 16, 1991 at 2:22 PM
AppleEvents.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1989-1992
All rights reserved
Modified for AppleEvents manager version 1.0.1 Nov 13th, 1992
*****************************************************************/
#ifndef __APPLEEVENTS__
#define __APPLEEVENTS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __MEMORY__
#include <Memory.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
#ifndef __EVENTS__
#include <Events.h>
#endif
#ifndef __EPPC__
#include <EPPC.h>
#endif
#ifndef __NOTIFICATION__
#include <Notification.h>
#endif
/*--------------------------------------------------------------
Apple event descriptor types
--------------------------------------------------------------*/
enum { /* compiler limits us to 20 items within an enum */
typeBoolean = 'bool', /* enum's are used to avoid conflicts with other header files */
typeChar = 'TEXT',
typeSMInt = 'shor',
typeInteger = 'long',
typeSMFloat = 'sing',
typeFloat = 'doub',
typeLongInteger = 'long',
typeShortInteger = 'shor',
typeLongFloat = 'doub',
typeShortFloat = 'sing',
typeExtended = 'exte',
typeComp = 'comp',
typeMagnitude = 'magn',
typeAEList = 'list',
typeAERecord = 'reco',
typeAppleEvent = 'aevt',
typeTrue = 'true',
typeFalse = 'fals',
typeAlias = 'alis',
typeEnumerated = 'enum'
};
enum {
typeType = 'type',
typeAppParameters = 'appa',
typeProperty = 'prop',
typeFSS = 'fss ',
typeKeyword = 'keyw',
typeSectionH = 'sect',
typeWildCard = '****',
typeApplSignature = 'sign',
typeSessionID = 'ssid',
typeTargetID = 'targ',
typeProcessSerialNumber = 'psn ',
typeNull = 'null' /* null or nonexistent data */
};
/*--------------------------------------------------------------
Keywords for Apple event parameters
--------------------------------------------------------------*/
enum {
keyDirectObject = '----',
keyErrorNumber = 'errn',
keyErrorString = 'errs',
keyProcessSerialNumber = 'psn '
};
/*--------------------------------------------------------------
Keywords for Apple event attributes
--------------------------------------------------------------*/
enum {
keyTransactionIDAttr = 'tran',
keyReturnIDAttr = 'rtid',
keyEventClassAttr = 'evcl',
keyEventIDAttr = 'evid',
keyAddressAttr = 'addr',
keyOptionalKeywordAttr = 'optk',
keyTimeoutAttr = 'timo',
keyInteractLevelAttr = 'inte', /* this attribute is read only - will be set in AESend */
keyEventSourceAttr = 'esrc', /* this attribute is read only */
keyMissedKeywordAttr = 'miss', /* this attribute is read only */
keyOriginalAddressAttr = 'from' /* new in 1.0.1 */
};
/*--------------------------------------------------------------
Keywords for special handlers
--------------------------------------------------------------*/
enum {
keyPreDispatch = 'phac', /* preHandler accessor call */
keySelectProc = 'selh', /* more selector call */
/*--------------------------------------------------------------
Keyword for recording
--------------------------------------------------------------*/
keyAERecorderCount = 'recr', /* available only in vers 1.0.1 and greater */
/*--------------------------------------------------------------
Keyword for version information
--------------------------------------------------------------*/
keyAEVersion = 'vers', /* available only in vers 1.0.1 and greater */
/*--------------------------------------------------------------
Event Class
--------------------------------------------------------------*/
kCoreEventClass = 'aevt'
}; /* end of enum */
/*--------------------------------------------------------------
Event ID's
--------------------------------------------------------------*/
enum {
kAEOpenApplication = 'oapp',
kAEOpenDocuments = 'odoc',
kAEPrintDocuments = 'pdoc',
kAEQuitApplication = 'quit',
kAEAnswer = 'ansr',
kAEApplicationDied = 'obit'
};
/*--------------------------------------------------------------
Constants for use in AESend mode
--------------------------------------------------------------*/
enum {
kAENoReply = 0x00000001, /* sender doesn't want a reply to event */
kAEQueueReply = 0x00000002, /* sender wants a reply but won't wait */
kAEWaitReply = 0x00000003, /* sender wants a reply and will wait */
kAENeverInteract = 0x00000010, /* server should not interact with user */
kAECanInteract = 0x00000020, /* server may try to interact with user */
kAEAlwaysInteract = 0x00000030, /* server should always interact with user where appropriate */
kAECanSwitchLayer = 0x00000040, /* interaction may switch layer */
kAEDontReconnect = 0x00000080, /* don't reconnect if there is a sessClosedErr from PPCToolbox */
kAEWantReceipt = nReturnReceipt, /* sender wants a receipt of message */
kAEDontRecord = 0x00001000, /* don't record this event - available only in vers 1.0.1 and greater */
kAEDontExecute = 0x00002000, /* don't send the event for recording - available only in vers 1.0.1 and greater */
/*--------------------------------------------------------------
Constants for the send priority in AESend
--------------------------------------------------------------*/
kAENormalPriority = 0x00000000, /* post message at the end of the event queue */
kAEHighPriority = nAttnMsg /* post message at the front of the event queue */
}; /* end of enum */
/*--------------------------------------------------------------
Constants for recording
--------------------------------------------------------------*/
enum {
kAEStartRecording = 'reca', /* available only in vers 1.0.1 and greater */
kAEStopRecording = 'recc', /* available only in vers 1.0.1 and greater */
kAENotifyStartRecording = 'rec1', /* available only in vers 1.0.1 and greater */
kAENotifyStopRecording = 'rec0', /* available only in vers 1.0.1 and greater */
kAENotifyRecording = 'recr' /* available only in vers 1.0.1 and greater */
};
/*--------------------------------------------------------------
Constant for the returnID param of AECreateAppleEvent
--------------------------------------------------------------*/
enum {
kAutoGenerateReturnID = -1, /* AECreateAppleEvent will generate a session-unique ID */
/*--------------------------------------------------------------
Constant for transaction ID's
--------------------------------------------------------------*/
kAnyTransactionID = 0, /* no transaction is in use */
/*--------------------------------------------------------------
Constants for timeout durations
--------------------------------------------------------------*/
kAEDefaultTimeout = -1, /* timeout value determined by AEM */
kNoTimeOut = -2 /* wait until reply comes back, however long it takes */
}; /* end of enum */
/*--------------------------------------------------------------
Constants for AEResumeTheCurrentEvent
--------------------------------------------------------------*/
enum {
kAENoDispatch= 0, /* dispatch parameter to AEResumeTheCurrentEvent takes a pointer to a dispatch */
kAEUseStandardDispatch = -1 /* table, or one of these two constants */
}; /* end of enum */
/*--------------------------------------------------------------
Apple event manager data types
--------------------------------------------------------------*/
typedef unsigned long AEEventClass;
typedef unsigned long AEEventID;
typedef unsigned long AEKeyword;
typedef ResType DescType;
struct AEDesc {
DescType descriptorType;
Handle dataHandle;
};
typedef struct AEDesc AEDesc;
struct AEKeyDesc {
AEKeyword descKey;
AEDesc descContent;
};
typedef struct AEKeyDesc AEKeyDesc;
typedef AEDesc AEAddressDesc; /* an AEDesc which contains address data */
typedef AEDesc AEDescList; /* a list of AEDesc's is a special kind of AEDesc */
typedef AEDescList AERecord; /* AERecord is a list of keyworded AEDesc's */
typedef AERecord AppleEvent; /* an AERecord that contains an AppleEvent */
typedef long AESendMode; /* parameter to AESend */
typedef short AESendPriority; /* priority param of AESend */
enum { kAEInteractWithSelf, kAEInteractWithLocal, kAEInteractWithAll };
typedef unsigned char AEInteractAllowed;
enum { kAEUnknownSource, kAEDirectCall, kAESameProcess,
kAELocalProcess, kAERemoteProcess };
typedef unsigned char AEEventSource;
enum { kAEDataArray, kAEPackedArray, kAEHandleArray, kAEDescArray,
kAEKeyDescArray };
typedef unsigned char AEArrayType;
union AEArrayData {
short AEDataArray[1];
char AEPackedArray[1];
Handle AEHandleArray[1];
AEDesc AEDescArray[1];
AEKeyDesc AEKeyDescArray[1];
};
typedef union AEArrayData AEArrayData;
typedef AEArrayData *AEArrayDataPointer;
typedef ProcPtr EventHandlerProcPtr;
typedef ProcPtr IdleProcPtr;
typedef ProcPtr EventFilterProcPtr;
/*--------------------------------------------------------------
Apple event manager error messages
--------------------------------------------------------------*/
enum {
errAECoercionFail = -1700, /* bad parameter data or unable to coerce the data supplied */
errAEDescNotFound = -1701,
errAECorruptData = -1702,
errAEWrongDataType = -1703,
errAENotAEDesc = -1704,
errAEBadListItem = -1705, /* the specified list item does not exist */
errAENewerVersion = -1706, /* need newer version of the AppleEvent manager */
errAENotAppleEvent = -1707, /* the event is not in AppleEvent format */
errAEEventNotHandled = -1708, /* the AppleEvent was not handled by any handler */
errAEReplyNotValid = -1709, /* AEResetTimer was passed an invalid reply parameter */
errAEUnknownSendMode = -1710, /* mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown */
errAEWaitCanceled = -1711, /* in AESend, the user cancelled out of wait loop for reply or receipt */
errAETimeout = -1712, /* the AppleEvent timed out */
errAENoUserInteraction = -1713, /* no user interaction is allowed */
errAENotASpecialFunction = -1714, /* there is no special function for/with this keyword */
errAEParamMissed = -1715, /* a required parameter was not accessed */
errAEUnknownAddressType = -1716, /* the target address type is not known */
errAEHandlerNotFound = -1717, /* no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler */
errAEReplyNotArrived = -1718 /* the contents of the reply you are accessing have not arrived yet */
};
enum { /* error codes should be continued within this enum */
errAEIllegalIndex = -1719, /* index is out of range in a put operation */
errAEUnknownObjectType = -1731, /* available only in version 1.0.1 or greater */
errAERecordingIsAlreadyOn = -1732 /* available only in version 1.0.1 or greater */
};
#ifdef __cplusplus
extern "C" {
#endif
/**************************************************************************
The following calls apply to any AEDesc. Every 'result' descriptor is
created for you, so you will be responsible for memory management
(including disposing) of the descriptors so created. Note: purgeable
descriptor data is not supported - the AEM does not call LoadResource.
**************************************************************************/
pascal OSErr
AECreateDesc( DescType typeCode, const void* dataPtr, Size dataSize, AEDesc *result )
= {0x303C,0x0825,0xA816};
pascal OSErr
AECoercePtr( DescType typeCode, const void* dataPtr, Size dataSize, DescType toType,
AEDesc *result )
= {0x303C,0x0A02,0xA816};
pascal OSErr
AECoerceDesc( const AEDesc *theAEDesc, DescType toType, AEDesc *result )
= {0x303C,0x0603,0xA816};
pascal OSErr
AEDisposeDesc( AEDesc *theAEDesc )
= {0x303C,0x0204,0xA816};
pascal OSErr
AEDuplicateDesc( const AEDesc *theAEDesc, AEDesc *result )
= {0x303C,0x0405,0xA816};
/**************************************************************************
The following calls apply to AEDescList. Since AEDescList is a subtype of
AEDesc, the calls in the previous section can also be used for AEDescList.
All list and array indices are 1-based. If the data was greater than
maximumSize in the routines below, then actualSize will be greater than
maximumSize, but only maximumSize bytes will actually be retrieved.
**************************************************************************/
pascal OSErr
AECreateList( const void* factoringPtr, Size factoredSize, Boolean isRecord,
AEDescList *resultList )
= {0x303C,0x0706,0xA816};
pascal OSErr
AECountItems( const AEDescList *theAEDescList, long *theCount )
= {0x303C,0x0407,0xA816};
pascal OSErr
AEPutPtr( const AEDescList *theAEDescList, long index, DescType typeCode,
const void* dataPtr, Size dataSize )
= {0x303C,0x0A08,0xA816};
pascal OSErr
AEPutDesc( const AEDescList *theAEDescList, long index,
const AEDesc *theAEDesc )
= {0x303C,0x0609,0xA816};
pascal OSErr
AEGetNthPtr( const AEDescList *theAEDescList, long index, DescType desiredType,
AEKeyword *theAEKeyword, DescType *typeCode, void* dataPtr,
Size maximumSize, Size *actualSize )
= {0x303C,0x100A,0xA816};
pascal OSErr
AEGetNthDesc( const AEDescList *theAEDescList, long index, DescType desiredType,
AEKeyword *theAEKeyword, AEDesc *result )
= {0x303C,0x0A0B,0xA816};
pascal OSErr
AESizeOfNthItem( const AEDescList *theAEDescList, long index,
DescType *typeCode, Size *dataSize )
= {0x303C,0x082A,0xA816};
pascal OSErr
AEGetArray( const AEDescList *theAEDescList, AEArrayType arrayType,
AEArrayDataPointer arrayPtr, Size maximumSize, DescType *itemType,
Size *itemSize, long *itemCount )
= {0x303C,0x0D0C,0xA816};
pascal OSErr
AEPutArray( const AEDescList *theAEDescList, AEArrayType arrayType,
const AEArrayData *arrayPtr, DescType itemType,
Size itemSize, long itemCount )
= {0x303C,0x0B0D,0xA816};
pascal OSErr
AEDeleteItem( const AEDescList *theAEDescList, long index )
= {0x303C,0x040E,0xA816};
/**************************************************************************
The following calls apply to AERecord. Since AERecord is a subtype of
AEDescList, the calls in the previous sections can also be used for
AERecord an AERecord can be created by using AECreateList with isRecord
set to true.
**************************************************************************/
pascal OSErr
AEPutKeyPtr( const AERecord *theAERecord, AEKeyword theAEKeyword,
DescType typeCode, const void* dataPtr, Size dataSize )
= {0x303C,0x0A0F,0xA816};
pascal OSErr
AEPutKeyDesc( const AERecord *theAERecord, AEKeyword theAEKeyword,
const AEDesc *theAEDesc )
= {0x303C,0x0610,0xA816};
pascal OSErr
AEGetKeyPtr( const AERecord *theAERecord, AEKeyword theAEKeyword,
DescType desiredType, DescType *typeCode, void* dataPtr,
Size maximumSize, Size *actualSize )
= {0x303C,0x0E11,0xA816};
pascal OSErr
AEGetKeyDesc( const AERecord *theAERecord, AEKeyword theAEKeyword,
DescType desiredType, AEDesc *result )
= {0x303C,0x0812,0xA816};
pascal OSErr
AESizeOfKeyDesc( const AERecord *theAERecord, AEKeyword theAEKeyword,
DescType *typeCode, Size *dataSize )
= {0x303C,0x0829,0xA816};
pascal OSErr
AEDeleteKeyDesc( const AERecord *theAERecord, AEKeyword theAEKeyword )
= {0x303C,0x0413,0xA816};
/**************************************************************************
The following calls are used to pack and unpack parameters from records
of type AppleEvent. Since AppleEvent is a subtype of AERecord, the calls
in the previous sections can also be used for variables of type
AppleEvent. The next six calls are in fact identical to the six calls
for AERecord.
**************************************************************************/
pascal OSErr
AEPutParamPtr( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType typeCode, const void* dataPtr, Size dataSize )
= {0x303C,0x0A0F,0xA816};
pascal OSErr
AEPutParamDesc( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
const AEDesc *theAEDesc )
= {0x303C,0x0610,0xA816};
pascal OSErr
AEGetParamPtr( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType desiredType, DescType *typeCode, void* dataPtr,
Size maximumSize, Size *actualSize )
= {0x303C,0x0E11,0xA816};
pascal OSErr
AEGetParamDesc( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType desiredType, AEDesc *result )
= {0x303C,0x0812,0xA816};
pascal OSErr
AESizeOfParam( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType *typeCode, Size *dataSize )
= {0x303C,0x0829,0xA816};
pascal OSErr
AEDeleteParam( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword )
= {0x303C,0x0413,0xA816};
/**************************************************************************
The following calls also apply to type AppleEvent. Message attributes are
far more restricted, and can only be accessed through the following 5
calls. The various list and record routines cannot be used to access the
attributes of an event.
**************************************************************************/
pascal OSErr
AEGetAttributePtr( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType desiredType, DescType *typeCode, void* dataPtr,
Size maximumSize, Size *actualSize )
= {0x303C,0x0E15,0xA816};
pascal OSErr
AEGetAttributeDesc( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType desiredType, AEDesc *result )
= {0x303C,0x0826,0xA816};
pascal OSErr
AESizeOfAttribute( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType *typeCode, Size *dataSize )
= {0x303C,0x0828,0xA816};
pascal OSErr
AEPutAttributePtr( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
DescType typeCode, const void* dataPtr, Size dataSize )
= {0x303C,0x0A16,0xA816};
pascal OSErr
AEPutAttributeDesc( const AppleEvent *theAppleEvent, AEKeyword theAEKeyword,
const AEDesc *theAEDesc )
= {0x303C,0x0627,0xA816};
/**************************************************************************
The next couple of calls are basic routines used to create, send,
and process AppleEvents.
**************************************************************************/
pascal OSErr
AECreateAppleEvent( AEEventClass theAEEventClass, AEEventID theAEEventID,
const AEAddressDesc *target, short returnID,
long transactionID, AppleEvent *result )
= {0x303C,0x0B14,0xA816};
pascal OSErr
AESend( const AppleEvent *theAppleEvent, AppleEvent *reply,
AESendMode sendMode, AESendPriority sendPriority, long timeOutInTicks,
IdleProcPtr idleProc, EventFilterProcPtr filterProc )
= {0x303C,0x0D17,0xA816};
pascal OSErr
AEProcessAppleEvent( const EventRecord *theEventRecord )
= {0x303C,0x021B,0xA816};
/*
Note: during event processing, an event handler may realize that it is likely
to exceed the client's timeout limit. Passing the reply to this
routine causes a wait event to be generated that asks the client
for more time.
*/
pascal OSErr
AEResetTimer( const AppleEvent *reply )
= {0x303C,0x0219,0xA816};
/**************************************************************************
The following four calls are available for applications which need more
sophisticated control over when and how events are processed. Applications
which implement multi-session servers or which implement their own
internal event queueing will probably be the major clients of these
routines. They can be called from within a handler to prevent the AEM from
disposing of the AppleEvent when the handler returns. They can be used to
asynchronously process the event (as MacApp does).
**************************************************************************/
pascal OSErr
AESuspendTheCurrentEvent( const AppleEvent *theAppleEvent )
= {0x303C,0x022B,0xA816};
/*
Note: The following routine tells the AppleEvent manager that processing
is either about to resume or has been completed on a previously suspended
event. The procPtr passed in as the dispatcher parameter will be called to
attempt to redispatch the event. Several constants for the dispatcher
parameter allow special behavior. They are:
- kAEUseStandardDispatch means redispatch as if the event was just
received, using the standard AppleEvent dispatch mechanism.
- kAENoDispatch means ignore the parameter.
Use this in the case where the event has been handled and no
redispatch is needed.
- non nil means call the routine which the dispatcher points to.
*/
pascal OSErr
AEResumeTheCurrentEvent( const AppleEvent *theAppleEvent,
const AppleEvent *reply,
EventHandlerProcPtr dispatcher, long handlerRefcon )
= {0x303C,0x0818,0xA816};
pascal OSErr
AEGetTheCurrentEvent( AppleEvent *theAppleEvent )
= {0x303C,0x021A,0xA816};
pascal OSErr
AESetTheCurrentEvent( const AppleEvent *theAppleEvent )
= {0x303C,0x022C,0xA816};
/**************************************************************************
The following three calls are used to allow applications to behave
courteously when a user interaction such as a dialog box is needed.
**************************************************************************/
pascal OSErr
AEGetInteractionAllowed( AEInteractAllowed *level )
= {0x303C,0x021D,0xA816};
pascal OSErr
AESetInteractionAllowed( AEInteractAllowed level )
= {0x303C,0x011E,0xA816};
pascal OSErr
AEInteractWithUser( long timeOutInTicks, NMRecPtr nmReqPtr,
IdleProcPtr idleProc )
= {0x303C,0x061C,0xA816};
/**************************************************************************
These calls are used to set up and modify the event dispatch table.
**************************************************************************/
pascal OSErr
AEInstallEventHandler( AEEventClass theAEEventClass, AEEventID theAEEventID,
EventHandlerProcPtr handler, long handlerRefcon,
Boolean isSysHandler )
= {0x303C,0x091F,0xA816};
pascal OSErr
AERemoveEventHandler( AEEventClass theAEEventClass, AEEventID theAEEventID,
EventHandlerProcPtr handler, Boolean isSysHandler )
= {0x303C,0x0720,0xA816};
pascal OSErr
AEGetEventHandler( AEEventClass theAEEventClass, AEEventID theAEEventID,
EventHandlerProcPtr *handler, long *handlerRefcon,
Boolean isSysHandler )
= {0x303C,0x0921,0xA816};
/**************************************************************************
These calls are used to set up and modify the coercion dispatch table.
**************************************************************************/
pascal OSErr
AEInstallCoercionHandler( DescType fromType, DescType toType, ProcPtr handler,
long handlerRefcon, Boolean fromTypeIsDesc,
Boolean isSysHandler )
= {0x303C,0x0A22,0xA816};
pascal OSErr
AERemoveCoercionHandler( DescType fromType, DescType toType, ProcPtr handler,
Boolean isSysHandler )
= {0x303C,0x0723,0xA816};
pascal OSErr
AEGetCoercionHandler( DescType fromType, DescType toType, ProcPtr *handler,
long *handlerRefcon, Boolean *fromTypeIsDesc,
Boolean isSysHandler )
= {0x303C,0x0B24,0xA816};
/**************************************************************************
These calls are used to set up and modify special hooks into the
AppleEvent manager.
**************************************************************************/
pascal OSErr
AEInstallSpecialHandler( AEKeyword functionClass, ProcPtr handler,
Boolean isSysHandler )
= {0x303C,0x0500,0xA816};
pascal OSErr
AERemoveSpecialHandler( AEKeyword functionClass, ProcPtr handler,
Boolean isSysHandler )
= {0x303C,0x0501,0xA816};
pascal OSErr
AEGetSpecialHandler( AEKeyword functionClass, ProcPtr *handler,
Boolean isSysHandler )
= {0x303C,0x052D,0xA816};
/**************************************************************************
This call was added in version 1.0.1. If called with the keyword
keyAERecorderCount ('recr'), the number of recorders that are
currently active is returned in 'result'.
**************************************************************************/
/* available only in vers 1.0.1 and greater */
pascal OSErr
AEManagerInfo( AEKeyword keyWord, long *result )
= {0x303C,0x0441,0xA816};
#ifdef __cplusplus
}
#endif
#ifndef __AEREGISTRY__ // for access to constants moved to AERegistry.h
#include <AERegistry.h> // placed at end because AERegistry.h depends on AppleEvents.h
#endif
#endif

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 049E 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0D41 7070 6C65 4576 656E 7473 2E68 0200" /* .AppleEvents.h.. */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 01D6 0000" /* ................ */
$"0000 0000 0000 0000 0000 040E 2500 0000" /* ............%... */
$"049E 0A50 726F 6365 7373 4D67 7200 0000" /* ...ProcessMgr... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0078 2500 0000 049E 0754 6964" /* .....x%......Tid */
$"6269 7473 0000 0000 0000 0000 0000 0000" /* bits............ */
$"0000 0000 0000 0000 0000 0000 0000 011A" /* ................ */
$"2500 0000 049F 0733 3242 6974 5144 0000" /* %......32BitQD.. */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
};
#endif
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006C 6545 7665 6E74" /* ..Monaco.leEvent */
$"732E 6800 0059 0406 0000 0044 7465 0000" /* s.h..Y.....Dte.. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A80A B9C0 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};

View File

@ -1,777 +0,0 @@
/************************************************************
Created: Friday, November 15, 1991 at 10:14 AM
AppleTalk.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1985-1991
All rights reserved
************************************************************/
#ifndef __APPLETALK__
#define __APPLETALK__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
enum {
/* Driver unit and reference numbers (ADSP is dynamic) */
mppUnitNum = 9, /* MPP unit number */
atpUnitNum = 10, /* ATP unit number */
xppUnitNum = 40, /* XPP unit number */
mppRefNum = -10, /* MPP reference number */
atpRefNum = -11, /* ATP reference number */
xppRefNum = -41, /* XPP reference number */
/* .MPP csCodes */
lookupReply = 242, /* This command queued to ourself */
writeLAP = 243, /* Write out LAP packet */
detachPH = 244, /* Detach LAP protocol handler */
attachPH = 245, /* Attach LAP protocol handler */
writeDDP = 246, /* Write out DDP packet */
closeSkt = 247, /* Close DDP socket */
openSkt = 248, /* Open DDP socket */
loadNBP = 249, /* Load NBP command-executing code */
lastResident = 249, /* Last resident command */
confirmName = 250, /* Confirm name */
lookupName = 251, /* Look up name on internet */
removeName = 252, /* Remove name from Names Table */
registerName = 253, /* Register name in Names Table */
killNBP = 254 /* Kill outstanding NBP request */
};
enum {
unloadNBP = 255, /* Unload NBP command code */
setSelfSend = 256, /* MPP: Set to allow writes to self */
SetMyZone = 257, /* Set my zone name */
GetATalkInfo = 258, /* get AppleTalk information */
ATalkClosePrep = 259, /* AppleTalk close query */
/* .ATP csCodes */
nSendRequest = 248, /* NSendRequest code */
relRspCB = 249, /* Release RspCB */
closeATPSkt = 250, /* Close ATP socket */
addResponse = 251, /* Add response code | Require open skt */
sendResponse = 252, /* Send response code */
getRequest = 253, /* Get request code */
openATPSkt = 254, /* Open ATP socket */
sendRequest = 255, /* Send request code */
relTCB = 256, /* Release TCB */
killGetReq = 257, /* Kill GetRequest */
killSendReq = 258, /* Kill SendRequest */
killAllGetReq = 259, /* Kill all getRequests for a skt */
/* .XPP csCodes */
openSess = 255, /* Open session */
closeSess = 254, /* Close session */
userCommand = 253 /* User command */
};
enum {
userWrite = 252, /* User write */
getStatus = 251, /* Get status */
afpCall = 250, /* AFP command (buffer has command code) */
getParms = 249, /* Get parameters */
abortOS = 248, /* Abort open session request */
closeAll = 247, /* Close all open sessions */
xCall = 246, /* .XPP extended calls */
/* Transition Queue transition types */
ATTransOpen = 0, /*AppleTalk has opened*/
ATTransClose = 2, /*AppleTalk is about to close*/
ATTransClosePrep = 3, /*Is it OK to close AppleTalk ?*/
ATTransCancelClose = 4, /*Cancel the ClosePrep transition*/
afpByteRangeLock = 1, /*AFPCall command codes*/
afpVolClose = 2, /*AFPCall command codes*/
afpDirClose = 3, /*AFPCall command codes*/
afpForkClose = 4, /*AFPCall command codes*/
afpCopyFile = 5, /*AFPCall command codes*/
afpDirCreate = 6, /*AFPCall command codes*/
afpFileCreate = 7, /*AFPCall command codes*/
afpDelete = 8, /*AFPCall command codes*/
afpEnumerate = 9 /*AFPCall command codes*/
};
enum {
afpFlush = 10, /*AFPCall command codes*/
afpForkFlush = 11, /*AFPCall command codes*/
afpGetDirParms = 12, /*AFPCall command codes*/
afpGetFileParms = 13, /*AFPCall command codes*/
afpGetForkParms = 14, /*AFPCall command codes*/
afpGetSInfo = 15, /*AFPCall command codes*/
afpGetSParms = 16, /*AFPCall command codes*/
afpGetVolParms = 17, /*AFPCall command codes*/
afpLogin = 18, /*AFPCall command codes*/
afpContLogin = 19, /*AFPCall command codes*/
afpLogout = 20, /*AFPCall command codes*/
afpMapID = 21, /*AFPCall command codes*/
afpMapName = 22, /*AFPCall command codes*/
afpMove = 23, /*AFPCall command codes*/
afpOpenVol = 24, /*AFPCall command codes*/
afpOpenDir = 25, /*AFPCall command codes*/
afpOpenFork = 26, /*AFPCall command codes*/
afpRead = 27, /*AFPCall command codes*/
afpRename = 28, /*AFPCall command codes*/
afpSetDirParms = 29 /*AFPCall command codes*/
};
enum {
afpSetFileParms = 30, /*AFPCall command codes*/
afpSetForkParms = 31, /*AFPCall command codes*/
afpSetVolParms = 32, /*AFPCall command codes*/
afpWrite = 33, /*AFPCall command codes*/
afpGetFlDrParms = 34, /*AFPCall command codes*/
afpSetFlDrParms = 35, /*AFPCall command codes*/
afpDTOpen = 48, /*AFPCall command codes*/
afpDTClose = 49, /*AFPCall command codes*/
afpGetIcon = 51, /*AFPCall command codes*/
afpGtIcnInfo = 52, /*AFPCall command codes*/
afpAddAPPL = 53, /*AFPCall command codes*/
afpRmvAPPL = 54, /*AFPCall command codes*/
afpGetAPPL = 55, /*AFPCall command codes*/
afpAddCmt = 56, /*AFPCall command codes*/
afpRmvCmt = 57, /*AFPCall command codes*/
afpGetCmt = 58, /*AFPCall command codes*/
afpAddIcon = 192, /*Special code for ASP Write commands*/
xppLoadedBit = 5, /* XPP bit in PortBUse */
scbMemSize = 192, /* Size of memory for SCB */
xppFlagClr = 0 /* Cs for AFPCommandBlock */
};
enum {
xppFlagSet = 128, /* StartEndFlag & NewLineFlag fields. */
lapSize = 20,
ddpSize = 26,
nbpSize = 26,
atpSize = 56,
#define MPPioCompletion MPP.ioCompletion
#define MPPioResult MPP.ioResult
#define MPPioRefNum MPP.ioRefNum
#define MPPcsCode MPP.csCode
#define LAPprotType LAP.protType
#define LAPwdsPointer LAP.LAPptrs.wdsPointer
#define LAPhandler LAP.LAPptrs.handler
#define DDPsocket DDP.socket
#define DDPchecksumFlag DDP.checksumFlag
#define DDPwdsPointer DDP.DDPptrs.wdsPointer
#define DDPlistener DDP.DDPptrs.listener
#define NBPinterval NBP.interval
#define NBPcount NBP.count
#define NBPntQElPtr NBP.NBPPtrs.ntQElPtr
#define NBPentityPtr NBP.NBPPtrs.entityPtr
#define NBPverifyFlag NBP.parm.verifyFlag
#define NBPretBuffPtr NBP.parm.Lookup.retBuffPtr
#define NBPretBuffSize NBP.parm.Lookup.retBuffSize
#define NBPmaxToGet NBP.parm.Lookup.maxToGet
#define NBPnumGotten NBP.parm.Lookup.numGotten
#define NBPconfirmAddr NBP.parm.Confirm.confirmAddr
#define NBPnKillQEl NBPKILL.nKillQEl
#define NBPnewSocket NBP.parm.Confirm.newSocket
#define ATPioCompletion ATP.ioCompletion
#define ATPioResult ATP.ioResult
#define ATPuserData ATP.userData
#define ATPreqTID ATP.reqTID
#define ATPioRefNum ATP.ioRefNum
#define ATPcsCode ATP.csCode
#define ATPatpSocket ATP.atpSocket
#define ATPatpFlags ATP.atpFlags
#define ATPaddrBlock ATP.addrBlock
#define ATPreqLength ATP.reqLength
#define ATPreqPointer ATP.reqPointer
#define ATPbdsPointer ATP.bdsPointer
#define ATPtimeOutVal SREQ.timeOutVal
#define ATPnumOfResps SREQ.numOfResps
#define ATPretryCount SREQ.retryCount
#define ATPnumOfBuffs OTH1.u0.numOfBuffs
#define ATPbitMap OTH1.u0.bitMap
#define ATPrspNum OTH1.u0.rspNum
#define ATPbdsSize OTH2.bdsSize
#define ATPtransID OTH2.transID
#define ATPaKillQEl KILL.aKillQEl
atpXOvalue = 32, /*ATP exactly-once bit */
atpEOMvalue = 16, /*ATP End-Of-Message bit */
atpSTSvalue = 8, /*ATP Send-Transmission-Status bit */
atpTIDValidvalue = 2, /*ATP trans. ID valid bit */
atpSendChkvalue = 1, /*ATP send checksum bit */
zipGetLocalZones = 5,
zipGetZoneList = 6,
zipGetMyZone = 7,
LAPMgrPtr = 0xB18, /*Entry point for LAP Manager*/
LAPMgrCall = 2, /*Offset to LAP routines*/
LAddAEQ = 23, /*LAPAddATQ routine selector*/
LRmvAEQ = 24 /*LAPRmvATQ routine selector*/
};
enum {tLAPRead,tLAPWrite,tDDPRead,tDDPWrite,tNBPLookup,tNBPConfirm,tNBPRegister,
tATPSndRequest,tATPGetRequest,tATPSdRsp,tATPAddRsp,tATPRequest,tATPResponse};
typedef unsigned char ABCallType;
enum {lapProto,ddpProto,nbpProto,atpProto};
typedef unsigned char ABProtoType;
typedef Byte ABByte;
struct LAPAdrBlock {
unsigned char dstNodeID;
unsigned char srcNodeID;
ABByte lapProtType;
};
typedef struct LAPAdrBlock LAPAdrBlock;
struct ATQEntry {
struct ATQEntry *qLink; /*next queue entry*/
short qType; /*queue type*/
ProcPtr CallAddr; /*pointer to your routine*/
};
typedef struct ATQEntry ATQEntry;
typedef ATQEntry *ATQEntryPtr;
struct AddrBlock {
short aNet;
unsigned char aNode;
unsigned char aSocket;
};
typedef struct AddrBlock AddrBlock;
/* Real definition of EntityName is 3 PACKED strings of any length (32 is just an example). No
offests for Asm since each String address must be calculated by adding length byte to last string ptr.
In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte unless they are
only a byte long. So this will generate correct looking interfaces for Pascal and C, but they will not
be the same, which is OK since they are not used. */
struct EntityName {
Str32 objStr;
char pad1; /*Str32's aligned on even word boundries.*/
Str32 typeStr;
char pad2;
Str32 zoneStr;
char pad3;
};
typedef struct EntityName EntityName;
typedef EntityName *EntityPtr;
struct RetransType {
unsigned char retransInterval;
unsigned char retransCount;
};
typedef struct RetransType RetransType;
struct BDSElement {
short buffSize;
Ptr buffPtr;
short dataSize;
long userBytes;
};
typedef struct BDSElement BDSElement;
typedef BDSElement BDSType[8];
typedef BDSElement *BDSPtr;
typedef char BitMapType;
struct ATLAPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
LAPAdrBlock lapAddress;
short lapReqCount;
short lapActCount;
Ptr lapDataPtr;
};
typedef struct ATLAPRec ATLAPRec;
typedef ATLAPRec *ATLAPRecPtr, **ATLAPRecHandle;
struct ATDDPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
short ddpType;
short ddpSocket;
AddrBlock ddpAddress;
short ddpReqCount;
short ddpActCount;
Ptr ddpDataPtr;
short ddpNodeID;
};
typedef struct ATDDPRec ATDDPRec;
typedef ATDDPRec *ATDDPRecPtr, **ATDDPRecHandle;
struct ATNBPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
EntityPtr nbpEntityPtr;
Ptr nbpBufPtr;
short nbpBufSize;
short nbpDataField;
AddrBlock nbpAddress;
RetransType nbpRetransmitInfo;
};
typedef struct ATNBPRec ATNBPRec;
typedef ATNBPRec *ATNBPRecPtr, **ATNBPRecHandle;
struct ATATPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
short atpSocket;
AddrBlock atpAddress;
short atpReqCount;
Ptr atpDataPtr;
BDSPtr atpRspBDSPtr;
BitMapType atpBitMap;
short atpTransID;
short atpActCount;
long atpUserData;
Boolean atpXO;
Boolean atpEOM;
short atpTimeOut;
short atpRetries;
short atpNumBufs;
short atpNumRsp;
short atpBDSSize;
long atpRspUData;
Ptr atpRspBuf;
short atpRspSize;
};
typedef struct ATATPRec ATATPRec;
typedef ATATPRec *ATATPRecPtr, **ATATPRecHandle;
typedef struct {
char cmdByte;
char startEndFlag;
short forkRefNum;
long rwOffset;
long reqCount;
char newLineFlag;
char newLineChar;
}AFPCommandBlock;
#define XPPPBHeader \
QElem *qLink;\
short qType;\
short ioTrap;\
Ptr ioCmdAddr;\
ProcPtr ioCompletion;\
OSErr ioResult;\
long cmdResult;\
short ioVRefNum;\
short ioRefNum;\
short csCode;
typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum*/
char aspTimeout; /*Timeout for ATP*/
char aspRetry; /*Retry count for ATP*/
short cbSize; /*Command block size*/
Ptr cbPtr; /*Command block pointer*/
short rbSize; /*Reply buffer size*/
Ptr rbPtr; /*Reply buffer pointer*/
short wdSize; /*Write Data size*/
Ptr wdPtr; /*Write Data pointer*/
char ccbStart[296]; /*CCB memory allocated for driver afpWrite max size(CCB)=296 all other calls=150*/
}XPPPrmBlk;
typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum */
char aspTimeout; /*Timeout for ATP */
char aspRetry; /*Retry count for ATP */
short cbSize; /*Command block size */
Ptr cbPtr; /*Command block pointer */
short rbSize; /*Reply buffer size */
Ptr rbPtr; /*Reply buffer pointer */
AddrBlock afpAddrBlock; /*block in AFP login */
Ptr afpSCBPtr; /*SCB pointer in AFP login */
Ptr afpAttnRoutine; /*routine pointer in AFP login */
char ccbFill[144]; /*CCB memory allocated for driver Login needs only 150 bytes BUT CCB really starts in the middle of AFPSCBPtr and also clobbers AFPAttnRoutine. */
}AFPLoginPrm;
typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum */
char aspTimeout; /*Timeout for ATP */
char aspRetry; /*Retry count for ATP */
AddrBlock serverAddr; /*Server address block */
Ptr scbPointer; /*SCB pointer */
Ptr attnRoutine; /*Attention routine pointer*/
}ASPOpenPrm;
typedef ASPOpenPrm *ASPOpenPrmPtr;
typedef struct {
XPPPBHeader
Ptr abortSCBPtr; /*SCB pointer for AbortOS */
}ASPAbortPrm;
typedef struct {
XPPPBHeader
short aspMaxCmdSize; /*For SPGetParms*/
short aspQuantumSize;
short numSesss;
}ASPGetparmsBlk;
typedef struct {
XPPPBHeader
short xppSubCode;
char xppTimeout; /*retry interval (seconds)*/
char xppRetry; /*retry count*/
short filler1;
Ptr zipBuffPtr; /*pointer to buffer (must be 578 bytes)*/
short zipNumZones; /*no. of zone names in this response*/
char zipLastFlag; /*non-zero if no more zones*/
char filler2; /*filler*/
char zipInfoField[70]; /*on initial call, set first word to zero*/
}XCallParam;
typedef struct {
short entryLength;
Ptr entryPtr;
}WDSElement;
typedef struct {
AddrBlock nteAddress; /*network address of entity*/
char filler;
char entityData[99]; /*Object, Type & Zone*/
}NTElement;
typedef struct {
Ptr qNext; /*ptr to next NTE*/
NTElement nt;
}NamesTableEntry;
#define MPPATPHeader \
QElem *qLink; /*next queue entry*/\
short qType; /*queue type*/\
short ioTrap; /*routine trap*/\
Ptr ioCmdAddr; /*routine address*/\
ProcPtr ioCompletion; /*completion routine*/\
OSErr ioResult; /*result code*/\
long userData; /*Command result (ATP user bytes)*/\
short reqTID; /*request transaction ID*/\
short ioRefNum; /*driver reference number*/\
short csCode; /*Call command code*/
typedef struct {
MPPATPHeader
}MPPparms;
typedef struct {
MPPATPHeader
char protType; /*ALAP protocol Type */
char filler;
union {
Ptr wdsPointer; /*-> write data structure*/
Ptr handler; /*-> protocol handler routine*/
} LAPptrs;
}LAPparms;
typedef struct {
MPPATPHeader
char socket; /*socket number */
char checksumFlag; /*check sum flag */
union {
Ptr wdsPointer; /*-> write data structure*/
Ptr listener; /*->write data structure or -> Listener*/
} DDPptrs;
}DDPparms;
typedef struct {
MPPATPHeader
char interval; /*retry interval */
char count; /*retry count */
union {
Ptr ntQElPtr;
Ptr entityPtr;
} NBPPtrs;
union {
char verifyFlag;
struct {
Ptr retBuffPtr;
short retBuffSize;
short maxToGet;
short numGotten;
} Lookup;
struct {
AddrBlock confirmAddr;
char newSocket;
} Confirm;
} parm;
}NBPparms;
typedef struct {
MPPATPHeader
char newSelfFlag; /*self-send toggle flag */
char oldSelfFlag; /*previous self-send state */
}SetSelfparms;
typedef struct {
MPPATPHeader
Ptr nKillQEl; /*ptr to i/o queue element to cancel */
}NBPKillparms;
typedef struct {
MPPATPHeader /*max. concurrent NBP requests*/
short version; /*requested info version*/
Ptr varsPtr; /*pointer to well known MPP vars*/
Ptr DCEPtr; /*pointer to MPP DCE*/
short portID; /*port number [0..7]*/
long configuration; /*32-bit configuration word*/
short selfSend; /*non zero if SelfSend enabled*/
short netLo; /*low value of network range*/
short netHi; /*high value of network range*/
long ourAdd; /*our 24-bit AppleTalk address*/
long routerAddr; /*24-bit address of (last) router*/
short numOfPHs; /*max. number of protocol handlers*/
short numOfSkts; /*max. number of static sockets*/
short numNBPEs; /*max. concurrent NBP requests*/
Ptr nTQueue; /*pointer to registered name queue*/
short LAlength; /*length in bytes of data link addr*/
Ptr linkAddr; /*data link address returned*/
Ptr zoneName; /*zone name returned*/
}GetAppleTalkInfoParm;
typedef struct {
MPPATPHeader
Ptr appName; /*pointer to application name in buffer*/
}ATalkClosePrepParm;
typedef union {
MPPparms MPP; /*General MPP parms*/
LAPparms LAP; /*ALAP calls*/
DDPparms DDP; /*DDP calls*/
NBPparms NBP; /*NBP calls*/
SetSelfparms SETSELF ;
NBPKillparms NBPKILL ;
GetAppleTalkInfoParm GAIINFO;
ATalkClosePrepParm ATALKCLOSE;
}MPPParamBlock;
typedef MPPParamBlock *MPPPBPtr;
#define MOREATPHeader \
char atpSocket; /*currbitmap for requests or ATP socket number*/\
char atpFlags; /*control information*/\
AddrBlock addrBlock; /*source/dest. socket address*/\
short reqLength; /*request/response length*/\
Ptr reqPointer; /*->request/response Data*/\
Ptr bdsPointer; /*->response BDS */
typedef struct {
MPPATPHeader
MOREATPHeader
}ATPparms;
typedef struct {
MPPATPHeader
MOREATPHeader
char filler; /*numOfBuffs */
char timeOutVal; /*timeout interval */
char numOfResps; /*number of responses actually received */
char retryCount; /*number of retries */
short intBuff; /*used internally for NSendRequest */
char TRelTime; /*TRelease time for extended send request */
}SendReqparms;
typedef struct {
MPPATPHeader
MOREATPHeader
union {
char bitMap; /*bitmap received */
char numOfBuffs; /*number of responses being sent*/
char rspNum; /*sequence number*/
} u0;
}ATPmisc1;
typedef struct {
MPPATPHeader
MOREATPHeader
char filler;
char bdsSize; /*number of BDS elements */
short transID; /*transaction ID recd. */
}ATPmisc2;
typedef struct {
MPPATPHeader
MOREATPHeader
Ptr aKillQEl; /*ptr to i/o queue element to cancel*/
}Killparms;
union ATPParamBlock {
ATPparms ATP; /*General ATP parms*/
SendReqparms SREQ; /*sendrequest parms*/
ATPmisc1 OTH1; /*and a few others*/
ATPmisc2 OTH2; /*and a few others*/
Killparms KILL; /*and a few others*/
};
typedef union ATPParamBlock ATPParamBlock;
typedef ATPParamBlock *ATPPBPtr;
union XPPParamBlock {
XPPPrmBlk XPP;
ASPGetparmsBlk GETPARM;
ASPAbortPrm ABORT;
ASPOpenPrm OPEN;
AFPLoginPrm LOGIN;
XCallParam XCALL;
};
typedef union XPPParamBlock XPPParamBlock;
typedef XPPParamBlock *XPPParmBlkPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal OSErr OpenXPP(short *xppRefnum);
pascal OSErr ASPOpenSession(ASPOpenPrmPtr thePBptr,Boolean async);
pascal OSErr ASPCloseSession(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPAbortOS(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPGetParms(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPCloseAll(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPUserWrite(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPUserCommand(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr ASPGetStatus(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr AFPCommand(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr GetLocalZones(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr GetZoneList(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr GetMyZone(XPPParmBlkPtr thePBptr,Boolean async);
pascal OSErr PAttachPH(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PDetachPH(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PWriteLAP(MPPPBPtr thePBptr,Boolean async);
pascal OSErr POpenSkt(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PCloseSkt(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PWriteDDP(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PRegisterName(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PLookupName(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PConfirmName(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PRemoveName(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PSetSelfSend(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PKillNBP(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PGetAppleTalkInfo(MPPPBPtr thePBptr,Boolean async);
pascal OSErr PATalkClosePrep(MPPPBPtr thePBptr,Boolean async);
pascal OSErr POpenATPSkt(ATPPBPtr thePBptr,Boolean async);
pascal OSErr PCloseATPSkt(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PSendRequest(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PGetRequest(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PSendResponse(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PAddResponse(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PRelTCB(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PRelRspCB(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PNSendRequest(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PKillSendReq(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr PKillGetReq(ATPPBPtr thePBPtr,Boolean async);
pascal OSErr ATPKillAllGetReq(ATPPBPtr thePBPtr,Boolean async);
pascal void BuildLAPwds(Ptr wdsPtr,Ptr dataPtr,short destHost,short prototype,
short frameLen);
pascal void BuildDDPwds(Ptr wdsPtr,Ptr headerPtr,Ptr dataPtr,const AddrBlock netAddr,
short ddpType,short dataLen);
pascal void NBPSetEntity(Ptr buffer,Ptr nbpObject,Ptr nbpType,Ptr nbpZone);
pascal void NBPSetNTE(Ptr ntePtr,Ptr nbpObject,Ptr nbpType,Ptr nbpZone,
short socket);
pascal short GetBridgeAddress(void);
pascal short BuildBDS(Ptr buffPtr,Ptr bdsPtr,short buffSize);
pascal OSErr MPPOpen(void);
pascal OSErr MPPClose(void);
pascal OSErr LAPOpenProtocol(ABByte theLAPType,Ptr protoPtr);
pascal OSErr LAPCloseProtocol(ABByte theLAPType);
pascal OSErr LAPWrite(ATLAPRecHandle abRecord,Boolean async);
pascal OSErr LAPRead(ATLAPRecHandle abRecord,Boolean async);
pascal OSErr LAPRdCancel(ATLAPRecHandle abRecord);
pascal OSErr LAPAddATQ(ATQEntryPtr theATQEntry);
pascal OSErr LAPRmvATQ(ATQEntryPtr theATQEntry);
pascal OSErr DDPOpenSocket(short *theSocket,Ptr sktListener);
pascal OSErr DDPCloseSocket(short theSocket);
pascal OSErr DDPRead(ATDDPRecHandle abRecord,Boolean retCksumErrs,Boolean async);
pascal OSErr DDPWrite(ATDDPRecHandle abRecord,Boolean doChecksum,Boolean async);
pascal OSErr DDPRdCancel(ATDDPRecHandle abRecord);
pascal OSErr ATPLoad(void);
pascal OSErr ATPUnload(void);
pascal OSErr ATPOpenSocket(AddrBlock addrRcvd,short *atpSocket);
pascal OSErr ATPCloseSocket(short atpSocket);
pascal OSErr ATPSndRequest(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPRequest(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPReqCancel(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPGetRequest(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPSndRsp(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPAddRsp(ATATPRecHandle abRecord);
pascal OSErr ATPResponse(ATATPRecHandle abRecord,Boolean async);
pascal OSErr ATPRspCancel(ATATPRecHandle abRecord,Boolean async);
pascal OSErr NBPRegister(ATNBPRecHandle abRecord,Boolean async);
pascal OSErr NBPLookup(ATNBPRecHandle abRecord,Boolean async);
pascal OSErr NBPExtract(Ptr theBuffer,short numInBuf,short whichOne,EntityName *abEntity,
AddrBlock *address);
pascal OSErr NBPConfirm(ATNBPRecHandle abRecord,Boolean async);
pascal OSErr NBPRemove(EntityPtr abEntity);
pascal OSErr NBPLoad(void);
pascal OSErr NBPUnload(void);
pascal OSErr GetNodeAddress(short *myNode,short *myNet);
pascal Boolean IsMPPOpen(void);
pascal Boolean IsATPOpen(void);
pascal void ATEvent(long event,Ptr infoPtr);
pascal OSErr ATPreFlightEvent(long event,long cancel,Ptr infoPtr);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0140 0041 014F 0280 0004 0000 0000 0000" /* .@.A.O.......... */
$"0004 0009 0000 000C 5061 7363 616C 436F" /* ........PascalCo */
$"0B41 7070 6C65 5461 6C6B 2E68 0200 0000" /* .AppleTalk.h.... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0200" /* ...d............ */
$"000D 0202 001B 0280 4002 0000 0000 0000" /* ........@....... */
$"0003 0009 0000 000C 7465 6368 5265 6600" /* ........techRef. */
$"0000 0026 0081 0204 012E 0041 01B9 0280" /* ...&.......A.... */
$"0007 0000 0000 0000 0004 0009 0000 000C" /* ................ */
$"4343 6F64 6500 0000 004C 0082 0205 012B" /* CCode....L.....+ */
$"0000 013D 0041 0004 0000 0000 0000 0003" /* ...=.A.......... */
$"0009 0000 000C 4343 6F64 6574 6167 0000" /* ......CCodetag.. */
$"6F6E 206D 6F75 7365 5570 0D64 6F43 6F64" /* on mouseUp.doCod */
};
#endif
data 'vers' (1) {
$"0323 8000 0000 0533 2E32 2E33 2833 2E32" /* .#.....3.2.3(3.2 */
$"2E33 2C20 A920 4170 706C 6520 436F 6D70" /* .3, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4170 706C 6554 616C 6B2E 6800 0000 0014" /* AppleTalk.h..... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2A29 3B0D 0D2F 2A0D 202A 094E 6F6E 2D41" /* *);../*. *.Non-A */
$"4E53 4920 6578 7465 6E73 696F 6E73 0D20" /* NSI extensions. */
$"0841 7373 6572 742E 6800 0200 0000 5445" /* .Assert.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 6E73" /* ..............ns */
$"7420 6368 6172 202A 6D6F 6465 293B 0D76" /* t char *mode);.v */
$"6F69 6420 6673 6574 6669 6C65 696E 666F" /* oid fsetfileinfo */
$"2028 6368 6172 202A 6669 6C65 6E61 6D65" /* (char *filename */
$"2C20 756E 7369 676E 6564 206C 6F6E 6720" /* , unsigned long */
$"6E65 7763 7265 6174 6F72 2C20 756E 7369" /* newcreator, unsi */
$"676E 6564 206C 6F6E 6720 6E65 7774 7970" /* gned long newtyp */
$"6529 3B0D 696E 7420 6765 7477 2846 494C" /* e);.int getw(FIL */
$"4520 2A73 7472 6561 6D29 3B0D 696E 7420" /* E *stream);.int */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 004D 4978" /* ..Monaco.....MIx */
$"0072 6965 8200 0014 0005 FA0C 000A 0000" /* .rie............ */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,226 +0,0 @@
/************************************************************
Created: Sunday, January 27, 1991 at 8:21 PM
Balloons.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1990-1991
All rights reserved
************************************************************/
#ifndef __BALLOONS__
#define __BALLOONS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __QUICKDRAW__
#include <Quickdraw.h>
#endif
#ifndef __MENUS__
#include <Menus.h>
#endif
#ifndef __TRAPS__
#include <Traps.h>
#endif
enum {
hmBalloonHelpVersion = 0x0002, /* The real version of the Help Manager */
/*Help Mgr error range: -850 to -874*/
hmHelpDisabled = -850, /* Show Balloons mode was off, call to routine ignored */
hmBalloonAborted = -853, /* Returned if mouse was moving or mouse wasn't in window port rect */
hmSameAsLastBalloon = -854, /* Returned from HMShowMenuBalloon if menu & item is same as last time */
hmHelpManagerNotInited = -855, /* Returned from HMGetHelpMenuHandle if help menu not setup */
hmSkippedBalloon = -857, /* Returned from calls if helpmsg specified a skip balloon */
hmWrongVersion = -858, /* Returned if help mgr resource was the wrong version */
hmUnknownHelpType = -859, /* Returned if help msg record contained a bad type */
hmOperationUnsupported = -861, /* Returned from HMShowBalloon call if bad method passed to routine */
hmNoBalloonUp = -862, /* Returned from HMRemoveBalloon if no balloon was visible when call was made */
hmCloseViewActive = -863, /* Returned from HMRemoveBalloon if CloseView was active */
kHMHelpMenuID = -16490, /* Resource ID and menu ID of help menu */
kHMAboutHelpItem = 1, /* help menu item number of About Balloon Help… */
kHMShowBalloonsItem = 3, /* help menu item number of Show/Hide Balloons */
kHMHelpID = -5696, /* ID of various Help Mgr package resources (in Pack14 range) */
kBalloonWDEFID = 126, /* Resource ID of the WDEF proc used in standard balloons */
/* Dialog item template type constant */
helpItem = 1, /* key value in DITL template that corresponds to the help item */
/* Options for Help Manager resources in 'hmnu', 'hdlg', 'hrct', 'hovr', & 'hfdr' resources */
hmDefaultOptions = 0, /* default options for help manager resources */
hmUseSubID = 1, /* treat resID's in resources as subID's of driver base ID (for Desk Accessories) */
hmAbsoluteCoords = 2 /* ignore window port origin and treat rectangles as absolute coords (local to window) */
};
enum {
hmSaveBitsNoWindow = 4, /* don't create a window, just blast bits on screen. No update event is generated */
hmSaveBitsWindow = 8, /* create a window, but restore bits behind window when window goes away & generate update event */
hmMatchInTitle = 16, /* for hwin resources, match string anywhere in window title string */
/* Constants for Help Types in 'hmnu', 'hdlg', 'hrct', 'hovr', & 'hfdr' resources */
kHMStringItem = 1, /* pstring used in resource */
kHMPictItem = 2, /* 'PICT' ResID used in resource */
kHMStringResItem = 3, /* 'STR#' ResID & index used in resource */
kHMTEResItem = 6, /* Styled Text Edit ResID used in resource ('TEXT' & 'styl') */
kHMSTRResItem = 7, /* 'STR ' ResID used in resource */
kHMSkipItem = 256, /* don't display a balloon */
kHMCompareItem = 512, /* Compare pstring in menu item w/ PString in resource item ('hmnu' only) */
kHMNamedResourceItem = 1024, /* Use pstring in menu item to get 'STR#', 'PICT', or 'STR ' resource ('hmnu' only) */
kHMTrackCntlItem = 2048, /* Reserved */
/* Constants for hmmHelpType's when filling out HMMessageRecord */
khmmString = 1, /* help message contains a PString */
khmmPict = 2, /* help message contains a resource ID to a 'PICT' resource */
khmmStringRes = 3, /* help message contains a res ID & index to a 'STR#' resource */
khmmTEHandle = 4, /* help message contains a Text Edit handle */
khmmPictHandle = 5, /* help message contains a Picture handle */
khmmTERes = 6, /* help message contains a res ID to 'TEXT' & 'styl' resources */
khmmSTRRes = 7, /* help message contains a res ID to a 'STR ' resource */
/* ResTypes for Styled TE Handles in Resources */
#define kHMTETextResType 'TEXT' /* Resource Type of text data for styled TE record w/o style info */
#define kHMTEStyleResType 'styl' /* Resource Type of style information for styled TE record */
/* Generic defines for the state parameter used when extracting 'hmnu' & 'hdlg' messages */
kHMEnabledItem = 0 /* item is enabled, but not checked or control value = 0 */
};
enum {
kHMDisabledItem = 1, /* item is disabled, grayed in menus or disabled in dialogs */
kHMCheckedItem = 2, /* item is enabled, and checked or control value = 1 */
kHMOtherItem = 3, /* item is enabled, and control value > 1 */
/* Resource Types for whichType parameter used when extracting 'hmnu' & 'hdlg' messages */
#define kHMMenuResType 'hmnu' /* ResType of help resource for supporting menus */
#define kHMDialogResType 'hdlg' /* ResType of help resource for supporting dialogs */
#define kHMWindListResType 'hwin' /* ResType of help resource for supporting windows */
#define kHMRectListResType 'hrct' /* ResType of help resource for rectangles in windows */
#define kHMOverrideResType 'hovr' /* ResType of help resource for overriding system balloons */
#define kHMFinderApplResType 'hfdr' /* ResType of help resource for custom balloon in Finder */
/* Method parameters to pass to HMShowBalloon */
kHMRegularWindow = 0, /* Create a regular window floating above all windows */
kHMSaveBitsNoWindow = 1, /* Just save the bits and draw (for MDEF calls) */
kHMSaveBitsWindow = 2 /* Regular window, save bits behind, AND generate update event */
};
struct HMStringResType {
short hmmResID;
short hmmIndex;
};
typedef struct HMStringResType HMStringResType;
struct HMMessageRecord {
short hmmHelpType;
union {
char hmmString[256];
short hmmPict;
Handle hmmTEHandle;
HMStringResType hmmStringRes;
short hmmPictRes;
Handle hmmPictHandle;
short hmmTERes;
short hmmSTRRes;
} u;
};
typedef struct HMMessageRecord HMMessageRecord;
typedef HMMessageRecord *HMMessageRecPtr;
#ifdef __cplusplus
extern "C" {
#endif
/* Public Interfaces */
pascal OSErr HMGetHelpMenuHandle(MenuHandle *mh)
= {0x303C,0x0200,_Pack14};
pascal OSErr HMShowBalloon(const HMMessageRecord *aHelpMsg,
Point tip,
RectPtr alternateRect,
Ptr tipProc,
short theProc,
short variant,
short method)
= {0x303C,0x0B01,_Pack14};
pascal OSErr HMRemoveBalloon(void)
= {0x303C,0x0002,_Pack14};
pascal Boolean HMGetBalloons(void)
= {0x303C,0x0003,_Pack14};
pascal OSErr HMSetBalloons(Boolean flag)
= {0x303C,0x0104,_Pack14};
pascal OSErr HMShowMenuBalloon(short itemNum,
short itemMenuID,
long itemFlags,
long itemReserved,
Point tip,
RectPtr alternateRect,
Ptr tipProc,
short theProc,
short variant)
= {0x303C,0x0E05,_Pack14};
pascal OSErr HMGetIndHelpMsg(ResType whichType,
short whichResID,
short whichMsg,
short whichState,
long *options,
Point *tip,
Rect *altRect,
short *theProc,
short *variant,
HMMessageRecord *aHelpMsg,
short *count)
= {0x303C,0x1306,_Pack14};
pascal Boolean HMIsBalloon(void)
= {0x303C,0x0007,_Pack14};
pascal OSErr HMSetFont(short font)
= {0x303C,0x0108,_Pack14};
pascal OSErr HMSetFontSize(short fontSize)
= {0x303C,0x0109,_Pack14};
pascal OSErr HMGetFont(short *font)
= {0x303C,0x020A,_Pack14};
pascal OSErr HMGetFontSize(short *fontSize)
= {0x303C,0x020B,_Pack14};
pascal OSErr HMSetDialogResID(short resID)
= {0x303C,0x010C,_Pack14};
pascal OSErr HMSetMenuResID(short menuID,
short resID)
= {0x303C,0x020D,_Pack14};
pascal OSErr HMBalloonRect(const HMMessageRecord *aHelpMsg,
Rect *coolRect)
= {0x303C,0x040E,_Pack14};
pascal OSErr HMBalloonPict(const HMMessageRecord *aHelpMsg,
PicHandle *coolPict)
= {0x303C,0x040F,_Pack14};
pascal OSErr HMScanTemplateItems(short whichID,
short whichResFile,
ResType whichType)
= {0x303C,0x0410,_Pack14};
pascal OSErr HMExtractHelpMsg(ResType whichType,short whichResID,short whichMsg,
short whichState,HMMessageRecord *aHelpMsg)
= {0x303C,0x0711,_Pack14};
pascal OSErr HMGetDialogResID(short *resID)
= {0x303C,0x0213,_Pack14};
pascal OSErr HMGetMenuResID(short menuID,short *resID)
= {0x303C,0x0314,_Pack14};
pascal OSErr HMGetBalloonWindow(WindowPtr *window)
= {0x303C,0x0215,_Pack14};
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"494F 4E20 5043 6C6F 7365 536B 7428 7468" /* ION PCloseSkt(th */
$"6550 4270 7472 3A20 4D50 5050 4250 7472" /* ePBptr: MPPPBPtr */
$"0A42 616C 6C6F 6F6E 732E 6800 0200 0000" /* .Balloons.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 722C" /* ...d..........r, */
$"426F 6F6C 6561 6E20 6173 796E 6329 3B20" /* Boolean async); */
$"0082 0006 0063 6C65 616E 0078 0002 0031" /* .....clean.x...1 */
$"006C 0006 0066 616C 7365 007C 0014 0020" /* .l...false.|... */
$"5F49 4D50 4F52 5420 5043 6C6F 7365 536B" /* _IMPORT PCloseSk */
$"740D 006B 000C 0049 492D 3331 322C 5635" /* t..k...II-312,V5 */
$"3133 006D 0186 0043 6C6F 7365 536B 7420" /* 13.m...CloseSkt */
$"6675 6E63 7469 6F6E 0D0D 5061 7261 6D65" /* function..Parame */
$"7465 7220 626C 6F63 6B0D 0D20 2020 202D" /* ter block.. - */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 01AA 0049" /* ..Monaco.......I */
$"6C3C 004D 49AC 004D 480C 656C 0000 0014" /* l<.MI..MH.el.... */
$"0005 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,61 +0,0 @@
/************************************************************
Created: Wednesday, September 11, 1991 at 2:05 PM
CRMSerialDevices.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __CRMSERIALDEVICES__
#define __CRMSERIALDEVICES__
#ifndef __TYPES__
#include <Types.h>
#endif
enum {
/* for the crmDeviceType field of the CRMRec data structure */
crmSerialDevice = 1,
/* version of the CRMSerialRecord below */
curCRMSerRecVers = 1
};
/* Maintains compatibility w/ apps & tools that expect an old style icon */
struct CRMIconRecord {
long oldIcon[32]; /* ICN# */
long oldMask[32];
Handle theSuite; /* Handle to an IconSuite */
long reserved;
};
typedef struct CRMIconRecord CRMIconRecord;
typedef CRMIconRecord *CRMIconPtr, **CRMIconHandle;
struct CRMSerialRecord {
short version;
StringHandle inputDriverName;
StringHandle outputDriverName;
StringHandle name;
CRMIconHandle deviceIcon;
long ratedSpeed;
long maxSpeed;
long reserved;
};
typedef struct CRMSerialRecord CRMSerialRecord;
typedef CRMSerialRecord *CRMSerialPtr;
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"1243 524D 5365 7269 616C 4465 7669 6365" /* .CRMSerialDevice */
$"732E 6865 0200 0000 5445 5854 4D50 5320" /* s.he....TEXTMPS */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B FFFF" /* ...d............ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFC 000F FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FF80 0000" /* ................ */
$"3FFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ?............... */
$"FFFF FFFF FF00 0000 07FF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0022 0064 0000 F718" /* ..Monaco.".d.... */
$"004D 48BC 0000 0000 004D 49A0 006C 7564" /* .MH......MI..lud */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,141 +0,0 @@
/************************************************************
Created: Tuesday, September 10, 1991 at 10:29 AM
CTBUtilities.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __CTBUTILITIES__
#define __CTBUTILITIES__
#ifndef __MEMORY__
#include <Memory.h>
#endif
#ifndef __PACKAGES__
#include <Packages.h>
#endif
#ifndef __APPLETALK__
#include <AppleTalk.h>
#endif
enum {
/* version of Comm Toolbox Utilities */
curCTBUVersion = 2,
/* Error codes/types */
ctbuGenericError = -1,
ctbuNoErr = 0
};
typedef OSErr CTBUErr;
enum {chooseDisaster = -2,chooseFailed,chooseAborted,chooseOKMinor,chooseOKMajor,
chooseCancel};
typedef unsigned short ChooseReturnCode;
enum {nlOk,nlCancel,nlEject};
typedef unsigned short NuLookupReturnCode;
enum {nameInclude = 1,nameDisable,nameReject};
typedef unsigned short NameFilterReturnCode;
enum {zoneInclude = 1,zoneDisable,zoneReject};
typedef unsigned short ZoneFilterReturnCode;
enum {
/* Values for hookProc items */
hookOK = 1,
hookCancel = 2,
hookOutline = 3,
hookTitle = 4,
hookItemList = 5,
hookZoneTitle = 6,
hookZoneList = 7,
hookLine = 8,
hookVersion = 9,
hookReserved1 = 10,
hookReserved2 = 11,
hookReserved3 = 12,
hookReserved4 = 13,
/* "virtual" hookProc items */
hookNull = 100,
hookItemRefresh = 101,
hookZoneRefresh = 102,
hookEject = 103,
hookPreflight = 104,
hookPostflight = 105,
hookKeyBase = 1000
};
/* NuLookup structures/constants */
struct NLTypeEntry {
Handle hIcon;
Str32 typeStr;
};
typedef struct NLTypeEntry NLTypeEntry;
typedef NLTypeEntry NLType[4];
struct NBPReply {
EntityName theEntity;
AddrBlock theAddr;
};
typedef struct NBPReply NBPReply;
typedef pascal short (*NameFilterProcPtr)(EntityName theEntity);
typedef pascal short (*ZoneFilterProcPtr)(Str32 theZone);
typedef NameFilterProcPtr nameFilterProcPtr;
typedef ZoneFilterProcPtr zoneFilterProcPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal CTBUErr InitCTBUtilities(void);
pascal short CTBGetCTBVersion(void);
pascal short StandardNBP(Point where,ConstStr255Param prompt,short numTypes,
NLType typeList,NameFilterProcPtr nameFilter,ZoneFilterProcPtr zoneFilter,
DlgHookProcPtr hookProc,NBPReply *theReply);
pascal short CustomNBP(Point where,ConstStr255Param prompt,short numTypes,
NLType typeList,NameFilterProcPtr nameFilter,ZoneFilterProcPtr zoneFilter,
DlgHookProcPtr hookProc,long userData,short dialogID,ModalFilterProcPtr filterProc,
NBPReply *theReply);
/* Obsolete synonyms for above routines */
pascal short NuLookup(Point where,ConstStr255Param prompt,short numTypes,
NLType typeList,NameFilterProcPtr nameFilter,ZoneFilterProcPtr zoneFilter,
DlgHookProcPtr hookProc,NBPReply *theReply);
pascal short NuPLookup(Point where,ConstStr255Param prompt,short numTypes,
NLType typeList,NameFilterProcPtr nameFilter,ZoneFilterProcPtr zoneFilter,
DlgHookProcPtr hookProc,long userData,short dialogID,ModalFilterProcPtr filterProc,
NBPReply *theReply);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"7374 6163 6B20 3A3A 4173 6D53 7461 636B" /* stack ::AsmStack */
$"733A 4354 4255 7469 6C69 7469 6573 6368" /* s:CTBUtilitiesch */
$"0E43 5442 5574 696C 6974 6965 732E 6843" /* .CTBUtilities.hC */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 2020" /* ...d.......... */
$"7275 6500 002D 0006 0066 616C 7365 002E" /* rue..-...false.. */
$"0006 0066 616C 7365 002F 0006 0066 616C" /* ...false./...fal */
$"7365 0024 0006 0066 616C 7365 0058 0018" /* se.$...false.X.. */
$"0023 6465 6669 6E65 2063 686F 6F73 6546" /* .#define chooseF */
$"6169 6C65 6420 2D31 0059 0013 0063 686F" /* ailed -1.Y...cho */
$"6F73 6546 6169 6C65 6420 3D20 2D31 3B00" /* oseFailed = -1;. */
$"0005 0006 0024 4646 4646 6368 6F6F 7365" /* .....$FFFFchoose */
$"4661 696C 6564 0000 0D00 0000 8869 7075" /* Failed.......ipu */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 004D 4CF8" /* ..Monaco.....ML. */
$"000A 01D1 0000 0014 0005 FA70 000A 8001" /* ...........p.... */
$"8001 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A" /* **************** */
$"2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A" /* **************** */
$"0743 5479 7065 2E68 0200 0000 5445 5854" /* .CType.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 00F9" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 3835" /* ..............85 */
$"2D31 3939 312E 0D0D 0943 6F70 7972 6967" /* -1991....Copyrig */
$"6874 2041 6D65 7269 6361 6E20 5465 6C65" /* ht American Tele */
$"7068 6F6E 6520 2620 5465 6C65 6772 6170" /* phone & Telegrap */
$"680D 0955 7365 6420 7769 7468 2070 6572" /* h..Used with per */
$"6D69 7373 696F 6E2C 2041 7070 6C65 2043" /* mission, Apple C */
$"6F6D 7075 7465 7220 496E 632E 2028 3139" /* omputer Inc. (19 */
$"3835 290D 0941 6C6C 2052 6967 6874 7320" /* 85)..All Rights */
$"5265 7365 7276 6564 2E0D 0D2A 2A2A 2A2A" /* Reserved...***** */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4354 7970 652E 6800 0000 0034 0000 0030" /* CType.h....4...0 */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,108 +0,0 @@
/************************************************************
Created: Thursday, September 12, 1991 at 11:53 AM
CommResources.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __COMMRESOURCES__
#define __COMMRESOURCES__
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
enum {
/* version of the Comm Resource Manager */
curCRMVersion = 2,
/* tool classes (also the tool file types) */
#define classCM 'cbnd'
#define classFT 'fbnd'
#define classTM 'tbnd'
/* constants general to the use of the Communications Resource Manager */
crmType = 9, /* queue type */
crmRecVersion = 1, /* version of queue structure */
/* error codes */
crmGenericError = -1,
crmNoErr = 0
};
/* data structures general to the use of the Communications Resource Manager */
typedef OSErr CRMErr;
struct CRMRec {
QElemPtr qLink; /*reserved*/
short qType; /*queue type -- ORD(crmType) = 9*/
short crmVersion; /*version of queue element data structure*/
long crmPrivate; /*reserved*/
short crmReserved; /*reserved*/
long crmDeviceType; /*type of device, assigned by DTS*/
long crmDeviceID; /*device ID; assigned when CRMInstall is called*/
long crmAttributes; /*pointer to attribute block*/
long crmStatus; /*status variable - device specific*/
long crmRefCon; /*for device private use*/
};
typedef struct CRMRec CRMRec;
typedef CRMRec *CRMRecPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal CRMErr InitCRM(void);
pascal QHdrPtr CRMGetHeader(void);
pascal void CRMInstall(QElemPtr crmReqPtr);
pascal OSErr CRMRemove(QElemPtr crmReqPtr);
pascal QElemPtr CRMSearch(QElemPtr crmReqPtr);
pascal short CRMGetCRMVersion(void);
pascal Handle CRMGetResource(ResType theType,short theID);
pascal Handle CRMGet1Resource(ResType theType,short theID);
pascal Handle CRMGetIndResource(ResType theType,short index);
pascal Handle CRMGet1IndResource(ResType theType,short index);
pascal Handle CRMGetNamedResource(ResType theType,ConstStr255Param name);
pascal Handle CRMGet1NamedResource(ResType theType,ConstStr255Param name);
pascal void CRMReleaseResource(Handle theHandle);
pascal Handle CRMGetToolResource(short procID,ResType theType,short theID);
pascal Handle CRMGetToolNamedResource(short procID,ResType theType,ConstStr255Param name);
pascal void CRMReleaseToolResource(short procID,Handle theHandle);
pascal long CRMGetIndex(Handle theHandle);
pascal short CRMLocalToRealID(ResType bundleType,short toolID,ResType theType,
short localID);
pascal short CRMRealToLocalID(ResType bundleType,short toolID,ResType theType,
short realID);
pascal OSErr CRMGetIndToolName(OSType bundleType,short index,Str255 toolName);
pascal OSErr CRMFindCommunications(short *vRefNum,long *dirID);
pascal Boolean CRMIsDriverOpen(ConstStr255Param driverName);
pascal CRMErr CRMParseCAPSResource(Handle theHandle,ResType selector,unsigned long *value);
pascal OSErr CRMReserveRF(short refNum);
/* decrements useCount by one */
pascal OSErr CRMReleaseRF(short refNum);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6520 6C65 7474 6572 7320 2822 6161 6122" /* e letters ("aaa" */
$"2C20 2262 6161 222C 0D20 2A09 2E2E 2E20" /* , "baa",. *.... */
$"0F43 6F6D 6D52 6573 6F75 7263 6573 2E68" /* .CommResources.h */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 7175" /* ...d..........qu */
$"656E 6365 0D20 2A09 6F66 2064 6967 6974" /* ence. *.of digit */
$"732C 2061 6C6C 2064 6574 6572 6D69 6E65" /* s, all determine */
$"6420 6174 2072 756E 7469 6D65 2E0D 202A" /* d at runtime.. * */
$"0954 4D50 5F4D 4158 2069 7320 7468 6520" /* .TMP_MAX is the */
$"6E75 6D62 6572 206F 6620 6469 7374 696E" /* number of distin */
$"6374 2066 696C 6520 6E61 6D65 7320 7468" /* ct file names th */
$"6174 2074 6D70 6E61 6D28 2920 6361 6E20" /* at tmpnam() can */
$"6765 6E65 7261 7465 2E0D 202A 2F0D 0D23" /* generate.. *...# */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 000C 5265 706C" /* ..Monaco....Repl */
$"6163 6520 5361 6D65 0054 0000 0057 332E" /* ace Same.T...W3. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,239 +0,0 @@
/************************************************************
Created: Wednesday, October 21, 1992 at 2:55 PM
Components.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1991, 1992
All rights reserved
************************************************************/
#ifndef __COMPONENTS__
#define __COMPONENTS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __MEMORY__
#include <Memory.h>
#endif
#ifndef kSmallestArray
#define kSmallestArray 1
#endif
#define gestaltComponentMgr 'cpnt'
#define kAnyComponentType 0
#define kAnyComponentSubType 0
#define kAnyComponentManufacturer 0
#define kAnyComponentFlagsMask 0
#define cmpWantsRegisterMessage 1L<<31
typedef struct
{
OSType componentType; /* A unique 4-byte code indentifying the command set */
OSType componentSubType; /* Particular flavor of this instance */
OSType componentManufacturer; /* Vendor indentification */
unsigned long componentFlags; /* 8 each for Component,Type,SubType,Manuf/revision */
unsigned long componentFlagsMask; /* Mask for specifying which flags to consider in search, zero during registration */
} ComponentDescription;
typedef struct
{
OSType resType; /* 4-byte code */
short resID; /* */
} ResourceSpec;
struct ComponentResource {
ComponentDescription cd; /* Registration parameters */
ResourceSpec component; /* resource where Component code is found */
ResourceSpec componentName; /* name string resource */
ResourceSpec componentInfo; /* info string resource */
ResourceSpec componentIcon; /* icon resource */
};
typedef struct ComponentResource ComponentResource;
typedef ComponentResource *ComponentResourcePtr, **ComponentResourceHandle;
#ifndef _PrivateThingManager_
typedef struct privateComponentRecord *Component;
typedef struct privateComponentInstanceRecord *ComponentInstance;
#endif _PrivateThingManager_
/* Structure received by Component: */
typedef struct
{
unsigned char flags; /* call modifiers: sync/async, deferred, immed, etc */
unsigned char paramSize; /* size in bytes of actual parameters passed to this call */
short what; /* routine selector, negative for Component management calls */
long params[kSmallestArray]; /* actual parameters for the indicated routine */
} ComponentParameters;
typedef long ComponentResult;
typedef pascal ComponentResult (*ComponentRoutine)
(ComponentParameters *cp, Handle componentStorage );
typedef pascal ComponentResult (*ComponentFunction)();
#define ComponentCallNow(callNumber, paramSize) {0x2f3c,paramSize,callNumber,0x7000,0xA82A}
/********************************************************
* Required Component routines
********************************************************/
#define kComponentOpenSelect -1 /* ComponentInstance for this open */
#define kComponentCloseSelect -2 /* ComponentInstance for this close */
#define kComponentCanDoSelect -3 /* selector # being queried */
#define kComponentVersionSelect -4 /* no params */
#define kComponentRegisterSelect -5 /* no params */
#define kComponentTargetSelect -6 /* ComponentInstance for top of call chain */
enum { /* Set Default Component flags */
defaultComponentIdentical = 0,
defaultComponentAnyFlags = 1,
defaultComponentAnyManufacturer = 2,
defaultComponentAnySubType = 4
};
#define defaultComponentAnyFlagsAnyManufacturer defaultComponentAnyFlags+defaultComponentAnyManufacturer
#define defaultComponentAnyFlagsAnyManufacturerAnySubType defaultComponentAnyFlags+defaultComponentAnyManufacturer+defaultComponentAnySubType
enum { /* errors from component manager & components */
invalidComponentID = -3000,
validInstancesExist = -3001,
componentNotCaptured = -3002,
componentDontRegister = -3003
};
#define badComponentInstance 0x80008001
#define badComponentSelector 0x80008002
#ifdef __cplusplus
extern "C" {
#endif __cplusplus
/********************************************************
* *
* APPLICATION LEVEL CALLS *
* *
********************************************************/
/********************************************************
* Component Database Add, Delete, and Query Routines
********************************************************/
pascal Component RegisterComponent(ComponentDescription *cd, ComponentRoutine componentEntryPoint, short global, Handle componentName, Handle componentInfo, Handle componentIcon)
= {0x7001,0xA82A};
pascal Component RegisterComponentResource(ComponentResourceHandle cr, short global)
= {0x7012,0xA82A};
pascal OSErr UnregisterComponent(Component aComponent)
= {0x7002,0xA82A};
pascal Component FindNextComponent(Component aComponent, ComponentDescription *looking)
= {0x7004,0xA82A};
pascal long CountComponents(ComponentDescription *looking)
= {0x7003,0xA82A};
pascal OSErr GetComponentInfo(Component aComponent, ComponentDescription *cd, Handle componentName, Handle componentInfo, Handle componentIcon)
= {0x7005,0xA82A};
pascal long GetComponentListModSeed( void )
= {0x7006,0xA82A};
/********************************************************
* Component Instance Allocation and dispatch routines
********************************************************/
pascal ComponentInstance OpenComponent(Component aComponent)
= {0x7007,0xA82A};
pascal OSErr CloseComponent(ComponentInstance aComponentInstance)
= {0x7008,0xA82A};
pascal OSErr GetComponentInstanceError(ComponentInstance aComponentInstance)
= {0x700A,0xA82A};
/* direct calls to the Components */
pascal long ComponentFunctionImplemented(ComponentInstance ci, short ftnNumber) = {0x2F3C,0x2,0xFFFD,0x7000,0xA82A};
pascal long GetComponentVersion(ComponentInstance ci) = {0x2F3C,0,0xFFFC,0x7000,0xA82A};
pascal long ComponentSetTarget(ComponentInstance ci, ComponentInstance target) = {0x2F3C,0x4,0xFFFA,0x7000,0xA82A};
/********************************************************
* *
* CALLS MADE BY ComponentS *
* *
********************************************************/
/********************************************************
* Component Management routines
********************************************************/
pascal void SetComponentInstanceError(ComponentInstance aComponentInstance, OSErr theError)
= {0x700B,0xA82A};
pascal long GetComponentRefcon(Component aComponent)
= {0x7010,0xA82A};
pascal void SetComponentRefcon(Component aComponent, long theRefcon)
= {0x7011,0xA82A};
pascal short OpenComponentResFile(Component aComponent)
= {0x7015,0xA82A};
pascal OSErr CloseComponentResFile(short refnum)
= {0x7018,0xA82A};
/********************************************************
* Component Instance Management routines
********************************************************/
pascal Handle GetComponentInstanceStorage(ComponentInstance aComponentInstance)
= {0x700C,0xA82A};
pascal void SetComponentInstanceStorage(ComponentInstance aComponentInstance, Handle theStorage)
= {0x700D,0xA82A};
pascal long GetComponentInstanceA5(ComponentInstance aComponentInstance)
= {0x700E,0xA82A};
pascal void SetComponentInstanceA5(ComponentInstance aComponentInstance, long theA5)
= {0x700F,0xA82A};
pascal long CountComponentInstances(Component aComponent)
= {0x7013,0xA82A};
/* useful helper routines for convenient method dispatching */
pascal long CallComponentFunction(ComponentParameters *params, ComponentFunction func ) = {0x70FF,0xA82A};
pascal long CallComponentFunctionWithStorage(Handle storage, ComponentParameters *params, ComponentFunction func ) = {0x70FF,0xA82A};
pascal long DelegateComponentCall( ComponentParameters *originalParams, ComponentInstance ci ) = {0x7024,0xA82A};
pascal OSErr SetDefaultComponent( Component aComponent, short flags )
= {0x701E,0xA82A};
pascal ComponentInstance OpenDefaultComponent( OSType componentType, OSType componentSubType )
= {0x7021,0xA82A};
pascal Component CaptureComponent( Component capturedComponent, Component capturingComponent )
= {0x701C,0xA82A};
pascal OSErr UncaptureComponent( Component aComponent )
= {0x701D,0xA82A};
pascal long RegisterComponentResourceFile(short resRefNum, short global)
= {0x7014,0xA82A};
#ifdef __cplusplus
}
#endif __cplusplus
#endif __COMPONENTS__

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 0048 000A 436F 7572 6965 7200 203E" /* ...H..Courier. > */
$"2043 2E70 6970 652E 636D 6E64 0D43 6672" /* C.pipe.cmnd.Cfr */
$"0C43 6F6D 706F 6E65 6E74 732E 68E4 0200" /* .Components.h... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A70B 20D7 0000 0000 0000 01D6 0000" /* .... ........... */
$"0016 0302 8000 0000 0333 2E32 0B4D 5057" /* .........3.2.MPW */
$"2043 2B2B 2033 2E32 0000 0100 0000 2C98" /* C++ 3.2......,. */
$"0000 2B98 0000 0086 007B 58C0 0816 0000" /* ..+......{X..... */
$"001C 0086 0003 636D 646F 0000 0022 7665" /* ......cmdo..."ve */
$"7273 0001 002E 4D50 5354 0000 0046 4D50" /* rs....MPST...FMP */
$"5352 0001 0052 0080 FFFF 0000 0000 0000" /* SR...R.......... */
$"0000 0001 FFFF 0000 2ABA 0000 0000 0002" /* ........*....... */
$"FFFF 2000 2B7E 007B 57EC 0000 FFFF 0000" /* .. .+~.{W....... */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006E 7473 2E68 0022" /* ..Monaco.nts.h." */
$"003A 4349 6E63 6C75 6465 733A 436F 6D70" /* .:CIncludes:Comp */
$"6F6E 0006 0004 0031 000A 015D 01E0 0031" /* on.....1...]...1 */
$"000A 015D 01E0 A78C 88F1 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,128 +0,0 @@
/************************************************************
Created: Wednesday, September 11, 1991 at 1:47 PM
ConnectionTools.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __CONNECTIONTOOLS__
#define __CONNECTIONTOOLS__
#ifndef __DIALOGS__
#include <Dialogs.h>
#endif
#ifndef __CONNECTIONS__
#include <Connections.h>
#endif
enum {
/* messages for DefProc */
cmInitMsg = 0,
cmDisposeMsg = 1,
cmSuspendMsg = 2,
cmResumeMsg = 3,
cmMenuMsg = 4,
cmEventMsg = 5,
cmActivateMsg = 6,
cmDeactivateMsg = 7,
cmIdleMsg = 50,
cmResetMsg = 51,
cmAbortMsg = 52,
cmReadMsg = 100,
cmWriteMsg = 101,
cmStatusMsg = 102,
cmListenMsg = 103,
cmAcceptMsg = 104,
cmCloseMsg = 105,
cmOpenMsg = 106,
cmBreakMsg = 107,
cmIOKillMsg = 108
};
enum {
cmEnvironsMsg = 109,
/* new connection tool messages for ctb 1.1 */
cmNewIOPBMsg = 110,
cmDisposeIOPBMsg = 111,
cmGetErrorStringMsg = 112,
cmPBReadMsg = 113,
cmPBWriteMsg = 114,
cmPBIOKillMsg = 115,
/* messages for validate DefProc */
cmValidateMsg = 0,
cmDefaultMsg = 1,
/* messages for Setup DefProc */
cmSpreflightMsg = 0,
cmSsetupMsg = 1,
cmSitemMsg = 2,
cmSfilterMsg = 3,
cmScleanupMsg = 4,
/* messages for scripting defProc */
cmMgetMsg = 0,
cmMsetMsg = 1,
/* messages for localization defProc */
cmL2English = 0,
cmL2Intl = 1
/* private data constants */
#define cdefType 'cdef' /* main connection definition procedure */
#define cvalType 'cval' /* validation definition procedure */
#define csetType 'cset' /* connection setup definition procedure */
#define clocType 'cloc' /* connection configuration localization defProc */
#define cscrType 'cscr' /* connection scripting defProc interfaces */
#define cbndType 'cbnd' /* bundle type for connection */
#define cverType 'vers'
};
struct CMDataBuffer {
Ptr thePtr;
long count;
CMChannel channel;
CMFlags flags;
};
typedef struct CMDataBuffer CMDataBuffer;
typedef CMDataBuffer *CMDataBufferPtr;
struct CMCompletorRecord {
Boolean async;
ProcPtr completionRoutine;
};
typedef struct CMCompletorRecord CMCompletorRecord;
typedef CMCompletorRecord *CMCompletorPtr;
/* Private Data Structure */
struct CMSetupStruct {
DialogPtr theDialog;
short count;
Ptr theConfig;
short procID; /* procID of the tool */
};
typedef struct CMSetupStruct CMSetupStruct;
typedef CMSetupStruct *CMSetupPtr;
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"3249 6E74 6C2C 3135 3739 330D 6364 6566" /* 2Intl,15793.cdef */
$"5479 7065 2C31 3539 3439 0D63 7661 6C54" /* Type,15949.cvalT */
$"1143 6F6E 6E65 6374 696F 6E54 6F6F 6C73" /* .ConnectionTools */
$"2E68 0200 0000 5445 5854 4D50 5320 0000" /* .h....TEXTMPS .. */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 652C" /* ...d..........e, */
$"3137 3930 360D 434D 4461 7461 4275 6666" /* 17906.CMDataBuff */
$"6572 2C31 3836 3637 0D43 4D43 6F6D 706C" /* er,18667.CMCompl */
$"6574 6F72 5265 636F 7264 2C37 3331 330D" /* etorRecord,7313. */
$"434D 5365 7475 7053 7472 7563 742C 3138" /* CMSetupStruct,18 */
$"3332 310D 002D 0366 0043 6F6E 6E65 6374" /* 321..-.f.Connect */
$"696F 6E54 6F6F 6C73 2C34 3633 300D 636D" /* ionTools,4630.cm */
$"496E 6974 4D73 672C 3535 3236 0D63 6D44" /* InitMsg,5526.cmD */
$"6973 706F 7365 4D73 672C 3830 3130 0D63" /* isposeMsg,8010.c */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 015D 01E0 6163" /* ..Monaco...]..ac */
$"8200 0014 0005 FB80 000A 0000 0000 0000" /* ................ */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,284 +0,0 @@
/************************************************************
Created: Wednesday, September 11, 1991 at 11:31 AM
Connections.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __CONNECTIONS__
#define __CONNECTIONS__
#ifndef __DIALOGS__
#include <Dialogs.h>
#endif
#ifndef __CTBUTILITIES__
#include <CTBUtilities.h>
#endif
enum {
/* current Connection Manager version */
curCMVersion = 2,
/* current Connection Manager Environment Record version */
curConnEnvRecVers = 0,
/* CMErr */
cmGenericError = -1,
cmNoErr = 0,
cmRejected = 1,
cmFailed = 2,
cmTimeOut = 3,
cmNotOpen = 4,
cmNotClosed = 5,
cmNoRequestPending = 6,
cmNotSupported = 7,
cmNoTools = 8,
cmUserCancel = 9,
cmUnknownError = 11
};
typedef OSErr CMErr;
enum {
cmData = 1 << 0,
cmCntl = 1 << 1,
cmAttn = 1 << 2,
cmDataNoTimeout = 1 << 4,
cmCntlNoTimeout = 1 << 5,
cmAttnNoTimeout = 1 << 6,
cmDataClean = 1 << 8,
cmCntlClean = 1 << 9,
cmAttnClean = 1 << 10,
/* Only for CMRecFlags (not CMChannel) in the rest of this enum */
cmNoMenus = 1 << 16,
cmQuiet = 1 << 17,
cmConfigChanged = 1 << 18
};
/* CMRecFlags and CMChannel */
/* Low word of CMRecFlags is same as CMChannel */
typedef long CMRecFlags;
typedef short CMChannel;
enum {
cmStatusOpening = 1 << 0,
cmStatusOpen = 1 << 1,
cmStatusClosing = 1 << 2,
cmStatusDataAvail = 1 << 3,
cmStatusCntlAvail = 1 << 4,
cmStatusAttnAvail = 1 << 5,
cmStatusDRPend = 1 << 6, /* data read pending */
cmStatusDWPend = 1 << 7, /* data write pending */
cmStatusCRPend = 1 << 8, /* cntl read pending */
cmStatusCWPend = 1 << 9, /* cntl write pending */
cmStatusARPend = 1 << 10, /* attn read pending */
cmStatusAWPend = 1 << 11, /* attn write pending */
cmStatusBreakPend = 1 << 12,
cmStatusListenPend = 1 << 13,
cmStatusIncomingCallPresent = 1 << 14,
cmStatusReserved0 = 1 << 15
};
typedef unsigned long CMStatFlags;
enum {cmDataIn,cmDataOut,cmCntlIn,cmCntlOut,cmAttnIn,cmAttnOut,cmRsrvIn,
cmRsrvOut};
typedef unsigned short CMBufFields;
typedef Ptr CMBuffers[8];
typedef long CMBufferSizes[8];
typedef const long *ConstCMBufferSizesParam;
enum {cmSearchSevenBit = 1 << 0};
typedef unsigned short CMSearchFlags;
enum {cmFlagsEOM = 1 << 0};
typedef unsigned short CMFlags;
struct ConnEnvironRec {
short version;
long baudRate;
short dataBits;
CMChannel channels;
Boolean swFlowControl;
Boolean hwFlowControl;
CMFlags flags;
};
typedef struct ConnEnvironRec ConnEnvironRec;
typedef ConnEnvironRec *ConnEnvironRecPtr;
struct ConnRecord {
short procID;
CMRecFlags flags;
CMErr errCode;
long refCon;
long userData;
ProcPtr defProc;
Ptr config;
Ptr oldConfig;
long asyncEOM;
long reserved1;
long reserved2;
Ptr cmPrivate;
CMBuffers bufferArray;
CMBufferSizes bufSizes;
long mluField;
CMBufferSizes asyncCount;
};
typedef struct ConnRecord ConnRecord;
typedef ConnRecord *ConnPtr, **ConnHandle;
/* application routines type definitions */
typedef pascal void (*ConnectionSearchCallBackProcPtr) (ConnHandle hConn, Ptr matchPtr, long refNum);
typedef pascal void (*ConnectionCompletionProcPtr) (ConnHandle hConn);
typedef pascal void (*ConnectionChooseIdleProcPtr) (void);
enum {
/* CMIOPB constants and structure */
cmIOPBQType = 10,
cmIOPBversion = 0
};
struct CMIOPB {
QElemPtr qLink;
short qType; /* cmIOPBQType */
ConnHandle hConn;
Ptr theBuffer;
long count;
CMFlags flags;
ConnectionCompletionProcPtr userCompletion;
long timeout;
CMErr errCode;
CMChannel channel;
long asyncEOM;
long reserved1;
short reserved2;
short version; /* cmIOPBversion */
long refCon; /* for application */
long toolData1; /* for tool */
long toolData2; /* for tool */
};
typedef struct CMIOPB CMIOPB;
typedef CMIOPB *CMIOPBPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal CMErr InitCM(void);
pascal Handle CMGetVersion(ConnHandle hConn);
pascal short CMGetCMVersion(void);
pascal ConnHandle CMNew(short procID,CMRecFlags flags,ConstCMBufferSizesParam desiredSizes,
long refCon,long userData);
pascal void CMDispose(ConnHandle hConn);
pascal CMErr CMListen(ConnHandle hConn,Boolean async,ConnectionCompletionProcPtr completor,
long timeout);
pascal CMErr CMAccept(ConnHandle hConn,Boolean accept);
pascal CMErr CMOpen(ConnHandle hConn,Boolean async,ConnectionCompletionProcPtr completor,
long timeout);
pascal CMErr CMClose(ConnHandle hConn,Boolean async,ConnectionCompletionProcPtr completor,
long timeout,Boolean now);
pascal CMErr CMAbort(ConnHandle hConn);
pascal CMErr CMStatus(ConnHandle hConn,CMBufferSizes sizes,CMStatFlags *flags);
pascal void CMIdle(ConnHandle hConn);
pascal void CMReset(ConnHandle hConn);
pascal void CMBreak(ConnHandle hConn,long duration,Boolean async,ConnectionCompletionProcPtr completor);
pascal CMErr CMRead(ConnHandle hConn,void *theBuffer,long *toRead,CMChannel theChannel,
Boolean async,ConnectionCompletionProcPtr completor,long timeout,CMFlags *flags);
pascal CMErr CMWrite(ConnHandle hConn,const void *theBuffer,long *toWrite,
CMChannel theChannel,Boolean async,ConnectionCompletionProcPtr completor,
long timeout,CMFlags flags);
pascal CMErr CMIOKill(ConnHandle hConn,short which);
pascal void CMActivate(ConnHandle hConn,Boolean activate);
pascal void CMResume(ConnHandle hConn,Boolean resume);
pascal Boolean CMMenu(ConnHandle hConn,short menuID,short item);
pascal Boolean CMValidate(ConnHandle hConn);
pascal void CMDefault(Ptr *theConfig,short procID,Boolean allocate);
pascal Handle CMSetupPreflight(short procID,long *magicCookie);
pascal Boolean CMSetupFilter(short procID,const void *theConfig,short count,
DialogPtr theDialog,EventRecord *theEvent,short *theItem,long *magicCookie);
pascal void CMSetupSetup(short procID,const void *theConfig,short count,
DialogPtr theDialog,long *magicCookie);
pascal void CMSetupItem(short procID,const void *theConfig,short count,
DialogPtr theDialog,short *theItem,long *magicCookie);
pascal void CMSetupXCleanup(short procID,const void *theConfig,short count,
DialogPtr theDialog,Boolean OKed,long *magicCookie);
pascal void CMSetupPostflight(short procID);
pascal Ptr CMGetConfig(ConnHandle hConn);
pascal short CMSetConfig(ConnHandle hConn,const void *thePtr);
pascal OSErr CMIntlToEnglish(ConnHandle hConn,const void *inputPtr,Ptr *outputPtr,
short language);
pascal OSErr CMEnglishToIntl(ConnHandle hConn,const void *inputPtr,Ptr *outputPtr,
short language);
pascal long CMAddSearch(ConnHandle hConn,ConstStr255Param theString,CMSearchFlags flags,
ConnectionSearchCallBackProcPtr callBack);
pascal void CMRemoveSearch(ConnHandle hConn,long refnum);
pascal void CMClearSearch(ConnHandle hConn);
pascal CMErr CMGetConnEnvirons(ConnHandle hConn,ConnEnvironRec *theEnvirons);
pascal short CMChoose(ConnHandle *hConn,Point where,ConnectionChooseIdleProcPtr idleProc);
pascal void CMEvent(ConnHandle hConn,const EventRecord *theEvent);
pascal void CMGetToolName(short procID,Str255 name);
pascal short CMGetProcID(ConstStr255Param name);
pascal void CMSetRefCon(ConnHandle hConn,long refCon);
pascal long CMGetRefCon(ConnHandle hConn);
pascal long CMGetUserData(ConnHandle hConn);
pascal void CMSetUserData(ConnHandle hConn,long userData);
pascal void CMGetErrorString(ConnHandle hConn,short id,Str255 errMsg);
pascal CMErr CMNewIOPB(ConnHandle hConn,CMIOPBPtr *theIOPB);
pascal CMErr CMDisposeIOPB(ConnHandle hConn,CMIOPBPtr theIOPB);
pascal CMErr CMPBRead(ConnHandle hConn,CMIOPBPtr theIOPB,Boolean async);
pascal CMErr CMPBWrite(ConnHandle hConn,CMIOPBPtr theIOPB,Boolean async);
pascal CMErr CMPBIOKill(ConnHandle hConn,CMIOPBPtr theIOPB);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"4EBA ED68 486C FFE2 2F2E 0008 4EBA FC32" /* N..hHl../...N..2 */
$"285F 4E5E 205F 504F 4ED0 4E56 FF00 48E7" /* (_N^ _PON.NV..H. */
$"0D43 6F6E 6E65 6374 696F 6E73 2E68 0200" /* .Connections.h.. */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 2F2C" /* ...d........../, */
$"0008 206C FFE8 4868 0010 486E FF00 4EBA" /* .. l..Hh..Hn..N. */
$"0892 42A7 2F2C 0008 486E FF00 4EBA 0844" /* ..B./,..Hn..N..D */
$"2D5F 0010 6000 0090 4267 2F2C 0008 2F0B" /* -_..`...Bg/,../. */
$"487A 0098 4EBA 074C 101F 672E 2F2C 0008" /* Hz..N..L..g./,.. */
$"206C FFFC 2050 3028 0058 48C0 2F00 486E" /* l.. P0(.XH./.Hn */
$"FF00 4EBA 07DE 42A7 2F2C 0008 486E FF00" /* ..N...B./,..Hn.. */
$"4EBA 0800 2D5F 0010 604C 4267 2F2C 0008" /* N...-_..`LBg/,.. */
$"2F0B 487A 004E 4EBA 070A 101F 672E 2F2C" /* /.Hz.NN.....g./, */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0065 7456 6572 7369" /* ..Monaco.etVersi */
$"6F6E 2843 6F6E 6E48 616E 646C 6520 6843" /* on(ConnHandle hC */
$"6F6E 0006 0004 0031 000A 015D 01E0 0031" /* on.....1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 7C00 01FF FF00 0000 8C00 2B36" /* n.+6|.........+6 */
$"6420 2020 2020 2020 2020 2020 2020 2020" /* d */
$"0A43 6F6E 7472 6F6C 732E 6800 0200 0000" /* .Controls.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 6C06" /* ...1.@........l. */
$"7000 2D40 FF4A 2F2E FF5E 4EAD 04DA 222E" /* p.-@.J/..^N...". */
$"FF4A D280 202E FF4E D081 2E2E FF42 9E8B" /* .J.. ..N.....B.. */
$"D087 41EE FFDE D088 5C80 2800 98AE FF62" /* ..A.....\.(....b */
$"4A6E FF5C 584F 671A 4A6E FF56 6614 B8AE" /* Jn.\XOg.Jn.Vf... */
$"FF46 6C0E 202E FF46 9084 D1AE FF4A 282E" /* .Fl. ..F.....J(. */
$"FF46 B8AE FF46 6C06 202E FF46 6002 2004" /* .F...Fl. ..F`. . */
$"D1AE FF3E 4A6E FF56 6668 6024 5394 4A94" /* ...>Jn.Vfh`$S.J. */
$"6D12 206C 0004 52AC 0004 10BC 0020 7020" /* m. l..R...... p */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0064 6C65 2075 7064" /* ..Monaco.dle upd */
$"6174 6552 676E 290D 2020 2020 3D20 3078" /* ateRgn). = 0x */
$"4139 0006 0004 0031 000A 015D 01E0 0031" /* A9.....1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 7C00 01FF FF00 0000 8C00 2B36" /* n.+6|.........+6 */
$"6420 2020 2020 2020 2020 2020 2020 2020" /* d */
$"0B43 7572 736F 7243 746C 2E68 0200 0000" /* .CursorCtl.h.... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 2040" /* ...1.@........ @ */
$"4A90 670E 2005 E580 D0AD EDAA 2040 2050" /* J.g. ....... @ P */
$"6004 307C 0001 2C08 BCAC 0004 6F68 2006" /* `.0|..,.....oh . */
$"2F00 2F14 4EAD 00B2 2880 2006 E580 2F00" /* /./.N...(. .../. */
$"2F2C 0008 4EAD 00B2 2940 0008 2006 E580" /* /,..N...)@.. ... */
$"2F00 2F2C 000C 4EAD 00B2 2940 000C 2E2C" /* /./,..N...)@..., */
$"0004 4FEF 0018 6026 2007 D094 2040 4210" /* ..O...`& ... @B. */
$"2007 E580 D0AC 0008 2040 70FF 2080 2207" /* ....... @p. .". */
$"E581 D2AC 000C 2041 7200 2081 5287 BC87" /* ...... Ar. .R... */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00FF 01D4 02A4 02C4" /* ..Monaco........ */
$"7FFF 01D5 02C4 02C5 7FFF 01D6 02C5 0511" /* ................ */
$"7FFF 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,221 +0,0 @@
/************************************************************
Created: Tuesday, September 10, 1991 at 12:57 PM
DatabaseAccess.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1989-1991
All rights reserved
************************************************************/
#ifndef __DATABASEACCESS__
#define __DATABASEACCESS__
#ifndef __RESOURCES__
#include <Resources.h>
#endif
enum {
/* error and status codes */
rcDBNull = -800,
rcDBValue = -801,
rcDBError = -802,
rcDBBadType = -803,
rcDBBreak = -804,
rcDBExec = -805,
rcDBBadSessID = -806,
rcDBBadSessNum = -807, /* bad session number for DBGetConnInfo */
rcDBBadDDEV = -808, /* bad ddev specified on DBInit */
rcDBAsyncNotSupp = -809, /* ddev does not support async calls */
rcDBBadAsyncPB = -810, /* tried to kill a bad pb */
rcDBNoHandler = -811, /* no app handler for specified data type */
rcDBWrongVersion = -812, /* incompatible versions */
rcDBPackNotInited = -813, /* attempt to call other routine before InitDBPack */
/* messages for status functions for DBStartQuery */
kDBUpdateWind = 0,
kDBAboutToInit = 1,
kDBInitComplete = 2,
kDBSendComplete = 3,
kDBExecComplete = 4,
kDBStartQueryComplete = 5
};
enum {
/* messages for status functions for DBGetQueryResults */
kDBGetItemComplete = 6,
kDBGetQueryResultsComplete = 7,
/* data type codes */
#define typeNone 'none'
#define typeDate 'date'
#define typeTime 'time'
#define typeTimeStamp 'tims'
#define typeDecimal 'deci'
#define typeMoney 'mone'
#define typeVChar 'vcha'
#define typeVBin 'vbin'
#define typeLChar 'lcha'
#define typeLBin 'lbin'
#define typeDiscard 'disc'
/* "dummy" types for DBResultsToText */
#define typeUnknown 'unkn'
#define typeColBreak 'colb'
#define typeRowBreak 'rowb'
/* pass this in to DBGetItem for any data type */
#define typeAnyType (DBType)0
/* infinite timeout value for DBGetItem */
kDBWaitForever = -1,
/* flags for DBGetItem */
kDBLastColFlag = 0x0001,
kDBNullFlag = 0x0004
};
typedef OSType DBType;
/* structure for asynchronous parameter block */
struct DBAsyncParamBlockRec {
ProcPtr completionProc; /* pointer to completion routine */
OSErr result; /* result of call */
long userRef; /* for application's use */
long ddevRef; /* for ddev's use */
long reserved; /* for internal use */
};
typedef struct DBAsyncParamBlockRec DBAsyncParamBlockRec;
typedef DBAsyncParamBlockRec *DBAsyncParmBlkPtr;
/* structure for resource list in QueryRecord */
struct ResListElem {
ResType theType; /* resource type */
short id; /* resource id */
};
typedef struct ResListElem ResListElem;
typedef ResListElem *ResListPtr, **ResListHandle;
/* structure for query list in QueryRecord */
typedef Handle **QueryListHandle;
struct QueryRecord {
short version; /* version */
short id; /* id of 'qrsc' this came from */
Handle queryProc; /* handle to query def proc */
Str63 ddevName; /* ddev name */
Str255 host; /* host name */
Str255 user; /* user name */
Str255 password; /* password */
Str255 connStr; /* connection string */
short currQuery; /* index of current query */
short numQueries; /* number of queries in list */
QueryListHandle queryList; /* handle to array of handles to text */
short numRes; /* number of resources in list */
ResListHandle resList; /* handle to array of resource list elements */
Handle dataHandle; /* for use by query def proc */
long refCon; /* for use by application */
};
typedef struct QueryRecord QueryRecord;
typedef QueryRecord *QueryPtr, **QueryHandle;
/* structure of column types array in ResultsRecord */
typedef Handle ColTypesHandle;
/* structure for column info in ResultsRecord */
struct DBColInfoRecord {
short len;
short places;
short flags;
};
typedef struct DBColInfoRecord DBColInfoRecord;
typedef Handle ColInfoHandle;
/* structure of results returned by DBGetResults */
struct ResultsRecord {
short numRows; /* number of rows in result */
short numCols; /* number of columns per row */
ColTypesHandle colTypes; /* data type array */
Handle colData; /* actual results */
ColInfoHandle colInfo; /* DBColInfoRecord array */
};
typedef struct ResultsRecord ResultsRecord;
#ifdef __cplusplus
extern "C" {
#endif
pascal OSErr InitDBPack(void)
= {0x3F3C,0x0004,0x303C,0x0100,0xA82F};
pascal OSErr DBInit(long *sessID,ConstStr63Param ddevName,ConstStr255Param host,
ConstStr255Param user,ConstStr255Param passwd,ConstStr255Param connStr,
DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0E02,0xA82F};
pascal OSErr DBEnd(long sessID,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0403,0xA82F};
pascal OSErr DBGetConnInfo(long sessID,short sessNum,long *returnedID,long *version,
Str63 ddevName,Str255 host,Str255 user,Str255 network,Str255 connStr,long *start,
OSErr *state,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x1704,0xA82F};
pascal OSErr DBGetSessionNum(long sessID,short *sessNum,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0605,0xA82F};
pascal OSErr DBSend(long sessID,char *text,short len,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0706,0xA82F};
pascal OSErr DBSendItem(long sessID,DBType dataType,short len,short places,
short flags,void *buffer,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0B07,0xA82F};
pascal OSErr DBExec(long sessID,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0408,0xA82F};
pascal OSErr DBState(long sessID,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0409,0xA82F};
pascal OSErr DBGetErr(long sessID,long *err1,long *err2,Str255 item1,Str255 item2,
Str255 errorMsg,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0E0A,0xA82F};
pascal OSErr DBBreak(long sessID,Boolean abort,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x050B,0xA82F};
pascal OSErr DBGetItem(long sessID,long timeout,DBType *dataType,short *len,
short *places,short *flags,void *buffer,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x100C,0xA82F};
pascal OSErr DBUnGetItem(long sessID,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x040D,0xA82F};
pascal OSErr DBKill(DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x020E,0xA82F};
pascal OSErr DBGetNewQuery(short queryID,QueryHandle *query)
= {0x303C,0x030F,0xA82F};
pascal OSErr DBDisposeQuery(QueryHandle query)
= {0x303C,0x0210,0xA82F};
pascal OSErr DBStartQuery(long *sessID,QueryHandle query,ProcPtr statusProc,
DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0811,0xA82F};
pascal OSErr DBGetQueryResults(long sessID,ResultsRecord *results,long timeout,
ProcPtr statusProc,DBAsyncParmBlkPtr asyncPB)
= {0x303C,0x0A12,0xA82F};
pascal OSErr DBResultsToText(ResultsRecord *results,Handle *theText)
= {0x303C,0x0413,0xA82F};
pascal OSErr DBInstallResultHandler(DBType dataType,ProcPtr theHandler,
Boolean isSysHandler)
= {0x303C,0x0514,0xA82F};
pascal OSErr DBRemoveResultHandler(DBType dataType)
= {0x303C,0x0215,0xA82F};
pascal OSErr DBGetResultHandler(DBType dataType,ProcPtr *theHandler,Boolean getSysHandler)
= {0x303C,0x0516,0xA82F};
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0074 7275 6500 0024 0005 0074 7275 6500" /* .true..$...true. */
$"002D 0006 0066 616C 7365 002E 0006 0066" /* .-...false.....f */
$"1044 6174 6162 6173 6541 6363 6573 732E" /* .DatabaseAccess. */
$"6874 0200 0000 5445 5854 4D50 5320 0000" /* ht....TEXTMPS .. */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 6C00" /* ...d..........l. */
$"0025 0002 0031 0026 0002 0031 0058 0013" /* .%...1.&...1.X.. */
$"0009 6E6F 436F 6E73 7472 6169 6E74 203D" /* ..noConstraint = */
$"2030 2C00 0052 0006 0063 6C65 616E 0059" /* 0,..R...clean.Y */
$"0012 006E 6F43 6F6E 7374 7261 696E 7420" /* ...noConstraint */
$"3D20 303B 0053 0006 0063 6C65 616E 005A" /* = 0;.S...clean.Z */
$"0014 006E 6F43 6F6E 7374 7261 696E 7420" /* ...noConstraint */
$"4551 5520 3020 0055 0006 0063 6C65 616E" /* EQU 0 .U...clean */
$"0027 0002 0031 0066 002B 0063 6172 6420" /* .'...1.f.+.card */
};
#endif
data 'vers' (1) {
$"0322 8000 0000 0533 2E32 2E32 2833 2E32" /* .".....3.2.2(3.2 */
$"2E32 2C20 A920 4170 706C 6520 436F 6D70" /* .2, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 002A 2A2A 2A2A 2A2A" /* ..Monaco.******* */
$"2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A" /* **************** */
$"2A2A 0006 0004 0031 000A 015D 01E0 0031" /* **.....1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 1000 01FF FF00 0000 8C00 2B36" /* n.+6..........+6 */
$"1420 2020 2020 2020 2020 2020 2020 2020" /* . */
$"0644 6573 6B2E 68DA 0200 0000 5445 5854" /* .Desk.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 00FC" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 584F" /* ...1.@........XO */
$"6000 064A 202E FFDE 90AE FFE2 2F00 7009" /* `..J ......./.p. */
$"2F00 4EAD 0292 504F 6000 0632 2F2E 0018" /* /.N...PO`..2/... */
$"486E FFDE 2F0B 206E 000C 2F28 0008 2F0C" /* Hn../. n../(../. */
$"4EBA 0638 4A80 4FEF 0014 6706 70FF 6000" /* N..8J.O...g.p.`. */
$"060E 486E FFE2 7001 2F00 2F2E 000C 4EBA" /* ..Hn..p././...N. */
$"F856 70FF B0AE FFE2 4FEF 000C 6606 2D6E" /* .Vp.....O...f.-n */
$"FFDE FFE2 0CAE 0000 00FF FFE2 6F08 2D7C" /* ............o.-| */
$"0000 00FF FFE2 202E FFE2 5280 E780 206E" /* ...... ...R... n */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4465 736B 2E68 0063 6573 3A43 0000 0010" /* Desk.h.ces:C.... */
$"7564 0006 0004 0031 000A 015D 01E0 0031" /* ud.....1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 0467 0B53 7973 7465 6D45 7665 6E74" /* ...g.SystemEvent */
$"0000 0468 0000 049E 0A53 7973 7465 6D4D" /* ...h.....SystemM */
$"0944 6573 6B42 7573 2E68 0200 0000 5445" /* .DeskBus.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 0000" /* ...1.@.......... */
$"0100 0000 027E 0000 017E 0000 0046 002B" /* .....~...~...F.+ */
$"3680 0874 0000 001C 0046 0001 4D50 5352" /* 6..t.....F..MPSR */
$"0000 0012 7665 7273 0000 001E 03EF FFFF" /* ....vers........ */
$"0000 0000 002B 3744 0001 FFFF 0000 0147" /* .....+7D.......G */
$"002B 3610 6F72 2074 6865 2073 6869 6674" /* .+6.or the shift */
$"2072 6567 6973 7465 7220 746F 2074 7572" /* register to tur */
$"6E20 6172 6F75 6E64 2E0D 3B20 2020 5468" /* n around..; Th */
$"6973 2069 7320 7265 7175 6972 6564 2074" /* is is required t */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 000A 0000 0000 0000" /* ..Monaco........ */
$"0000 6C75 8000 0018 0006 015C 0000 0000" /* ..lu.......\.... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FE1F FFFF FFFF FFFF" /* ................ */
$"0944 6576 6963 6573 2E68 0200 0000 5445" /* .Devices.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 FFFF" /* ...1.@.......... */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF 7FFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFF8 7FFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0009 2045 0000 0014" /* ..Monaco.. E.... */
$"0005 FAA8 000A 8001 8001 7FFF 7FFF 001E" /* ................ */
$"8200 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"FF80 00FF FFE3 FFFF FFE0 0FFF FFFF FFFF" /* ................ */
$"FCFF FFFE 4E7F FFFF C7C1 DF8F FFFF FFFF" /* ....N........... */
$"0944 6961 6C6F 6773 2E68 0200 0000 5445" /* .Dialogs.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 07FF" /* ...d............ */
$"1006 00FF 8F7C 0000 0003 2BFF FFFF FFFF" /* .....|....+..... */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF" /* ................ */
$"FFFF FFFC 0E80 1E00 7C7D BFFC 5FFF C01F" /* ........|}.._... */
$"B0FF 833F FFE7 0DFF FFFF FFFF FC00 0004" /* ...?............ */
$"6200 0000 07FF FFE6 0000 0000 0000 0000" /* b............... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 03FF FFE0 000F 0000" /* ................ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00C5 0511 7FFF 7FFF" /* ..Monaco........ */
$"0000 0014 0005 FB40 000A 8001 8001 7FFF" /* .......@........ */
$"7FFF 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6574 4441 466F 6E74 0000 13EE 0000 1433" /* etDAFont.......3 */
$"0970 6172 616D 7465 7874 0000 1434 0000" /* .paramtext...4.. */
$"0E44 6973 4173 6D4C 6F6F 6B75 702E 6844" /* .DisAsmLookup.hD */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 6D70" /* ...1.@........mp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3930 2E00 0001 0000 0006 9500 0005" /* 1990............ */
$"9500 0000 5E00 2B36 8008 7400 0000 1C00" /* ....^.+6..t..... */
$"5E00 014D 5053 5200 0200 1276 6572 7300" /* ^..MPSR....vers. */
$"0000 3603 EDFF FF00 0000 0000 2B37 4403" /* ..6.........+7D. */
$"F0FF FF00 0000 4C00 2B36 7C03 EFFF FF00" /* ......L.+6|..... */
$"0000 6E00 2B36 1400 01FF FF00 0005 5E00" /* ..n.+6........^. */
$"2B36 6453 0957 6169 7446 6F72 4B65 7944" /* +6dS.WaitForKeyD */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0001 0000 004D" /* ..Monaco.......M */
$"5328 0000 0000 0000 0000 0000 0000 0000" /* S(.............. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0029 0003 0198 0220 0000 0000 0000 0000" /* .)..... ........ */
$"0000 0000 0000 0000 0033 0320 6000 0000" /* .........3. `... */
$"0A44 6973 6B49 6E69 742E 6800 0200 0000" /* .DiskInit.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 5200" /* ...1.@........R. */
$"0200 1276 6572 7300 0000 3603 EDFF FF00" /* ...vers...6..... */
$"0000 0000 2B36 1403 EFFF FF00 0000 4C00" /* ....+6........L. */
$"2B36 7C03 F0FF FF00 0001 0400 2B37 4400" /* +6|.........+7D. */
$"01FF FF00 0001 2600 2B36 1065 664E 756D" /* ......&.+6.efNum */
$"2841 3529 0D09 094A 5352 0953 6574 4D4D" /* (A5)...JSR.SetMM */
$"5542 6974 4D6F 6465 546F 5379 735A 6F6E" /* UBitModeToSysZon */
$"654D 6F64 650D 0D09 0941 4E44 2E57 0923" /* eMode....AND.W.# */
$"2446 3846 462C 2053 5209 0909 3B20 496E" /* $F8FF, SR...; In */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 0014" /* ..Monaco........ */
$"0005 FA5C 000A 014E 01D1 015D 01E0 0000" /* ...\...N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,77 +0,0 @@
/************************************************************
Created: Friday, September 13, 1991 at 12:26 PM
Disks.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1985-1991
All rights reserved
************************************************************/
#ifndef __DISKS__
#define __DISKS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
struct DrvSts {
short track; /*current track*/
char writeProt; /*bit 7 = 1 if volume is locked*/
char diskInPlace; /*disk in drive*/
char installed; /*drive installed*/
char sides; /*-1 for 2-sided, 0 for 1-sided*/
QElemPtr qLink; /*next queue entry*/
short qType; /*1 for HD20*/
short dQDrive; /*drive number*/
short dQRefNum; /*driver reference number*/
short dQFSID; /*file system ID*/
char twoSideFmt; /*after 1st rd/wrt: 0=1 side, -1=2 side*/
char needsFlush; /*-1 for MacPlus drive*/
short diskErrs; /*soft error count*/
};
typedef struct DrvSts DrvSts;
struct DrvSts2 {
short track;
char writeProt;
char diskInPlace;
char installed;
char sides;
QElemPtr qLink;
short qType;
short dQDrive;
short dQRefNum;
short dQFSID;
short driveSize;
short driveS1;
short driveType;
short driveManf;
short driveChar;
char driveMisc;
};
typedef struct DrvSts2 DrvSts2;
#ifdef __cplusplus
extern "C" {
#endif
pascal OSErr DiskEject(short drvNum);
pascal OSErr SetTagBuffer(void *buffPtr);
pascal OSErr DriveStatus(short drvNum,DrvSts *status);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"005B 0002 0031 005C 0002 0031 007A 0005" /* .[...1.\...1.z.. */
$"0074 7275 6500 0078 0002 0031 0088 0002" /* .true..x...1.... */
$"0744 6973 6B73 2E68 0200 0000 5445 5854" /* .Disks.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0102" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 6C6F" /* ...d..........lo */
$"6750 7472 3B69 7465 6D4E 6F3A 2049 4E54" /* gPtr;itemNo: INT */
$"4547 4552 3B69 7465 6D54 7970 653A 2049" /* EGER;itemType: I */
$"4E54 4547 4552 3B0D 0969 7465 6D3A 2048" /* NTEGER;..item: H */
$"616E 646C 653B 626F 783A 2052 6563 7429" /* andle;box: Rect) */
$"3B0D 0949 4E4C 494E 4520 2441 3938 453B" /* ;..INLINE $A98E; */
$"0083 0006 0063 6C65 616E 0080 0003 0033" /* .....clean.....3 */
$"3400 007B 042B 0020 0D53 6574 4449 7465" /* 4..{.+. .SetDIte */
$"6D20 7365 7473 2074 6865 2069 7465 6D20" /* m sets the item */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FA5C 000A 014E 01D1 015D 01E0 000A" /* ...\...N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,101 +0,0 @@
/************************************************************
Created: Thursday, September 12, 1991 at 2:56 PM
ENET.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1990-1991
All rights reserved
************************************************************/
#ifndef __ENET__
#define __ENET__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __OSUTILS__
#include <OSUtils.h>
#endif
enum {
ENetSetGeneral = 253, /*Set "general" mode*/
ENetGetInfo = 252, /*Get info*/
ENetRdCancel = 251, /*Cancel read*/
ENetRead = 250, /*Read*/
ENetWrite = 249, /*Write*/
ENetDetachPH = 248, /*Detach protocol handler*/
ENetAttachPH = 247, /*Attach protocol handler*/
ENetAddMulti = 246, /*Add a multicast address*/
ENetDelMulti = 245, /*Delete a multicast address*/
eLenErr = -92, /*Length error ddpLenErr*/
eMultiErr = -91 /*Multicast address error ddpSktErr*/
#define EAddrRType 'eadr' /*Alternate address resource type*/
};
#define EParamHeader \
QElem *qLink; /*General EParams*/\
short qType; /*queue type*/\
short ioTrap; /*routine trap*/\
Ptr ioCmdAddr; /*routine address*/\
ProcPtr ioCompletion; /*completion routine*/\
OSErr ioResult; /*result code*/\
StringPtr ioNamePtr; /*->filename*/\
short ioVRefNum; /*volume reference or drive number*/\
short ioRefNum; /*driver reference number*/\
short csCode; /*Call command code*/
struct EParamMisc1 {
EParamHeader /*General EParams*/
short eProtType; /*Ethernet protocol type*/
Ptr ePointer;
short eBuffSize; /*buffer size*/
short eDataSize; /*number of bytes read*/
};
typedef struct EParamMisc1 EParamMisc1;
struct EParamMisc2 {
EParamMisc1 EParms1;
char eMultiAddr[6]; /*Multicast Address*/
};
typedef struct EParamMisc2 EParamMisc2;
union EParamBlock {
EParamMisc1 EParms1;
EParamMisc2 EParms2;
};
typedef union EParamBlock EParamBlock;
typedef EParamBlock *EParamBlkPtr;
#ifdef __cplusplus
extern "C" {
#endif
pascal OSErr EWrite(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr EAttachPH(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr EDetachPH(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr ERead(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr ERdCancel(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr EGetInfo(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr ESetGeneral(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr EAddMulti(EParamBlkPtr thePBptr,Boolean async);
pascal OSErr EDelMulti(EParamBlkPtr thePBptr,Boolean async);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0016 0000 0152 0002 000D 0043 5442 5574" /* .....R.....CTBUt */
$"696C 6974 6965 7300 0003 0009 0068 6F6F" /* ilities......hoo */
$"0645 4E45 542E 68DA 0200 0000 5445 5854" /* .ENET.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0104" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 6C65" /* ...d..........le */
$"616E 0009 000F 0032 2F31 2F39 3120 343A" /* an.....2/1/91 4: */
$"3439 2050 4D00 000C 000B 006D 7955 7365" /* 49 PM......myUse */
$"724E 616D 6500 0025 0002 0031 0022 0005" /* rName..%...1.".. */
$"0074 7275 6500 0026 0002 0031 0023 0005" /* .true..&...1.#.. */
$"0074 7275 6500 002D 0006 0066 616C 7365" /* .true..-...false */
$"002E 0006 0066 616C 7365 002F 0006 0066" /* .....false./...f */
$"616C 7365 0024 0005 0074 7275 6500 0058" /* alse.$...true..X */
$"0011 0009 686F 6F6B 4E75 6C6C 203D 2031" /* ....hookNull = 1 */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 0000" /* ..Monaco........ */
$"0000 0000 0000 0000 0000 0014 0005 FD38" /* ...............8 */
$"000A 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 1400 01FF FF00 0000 8C00 2B36" /* n.+6..........+6 */
$"6420 2020 2020 2020 2020 2020 2020 2020" /* d */
$"0645 5050 432E 68DA 0200 0000 5445 5854" /* .EPPC.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0105" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 2049" /* ...1.@........ I */
$"4E54 4547 4552 3B0D 2020 2020 666F 6E74" /* NTEGER;. font */
$"4173 6365 6E74 3A20 494E 5445 4745 523B" /* Ascent: INTEGER; */
$"0D20 2020 2073 656C 506F 696E 743A 2050" /* . selPoint: P */
$"6F69 6E74 3B0D 2020 2020 7365 6C53 7461" /* oint;. selSta */
$"7274 3A20 494E 5445 4745 523B 0D20 2020" /* rt: INTEGER;. */
$"2073 656C 456E 643A 2049 4E54 4547 4552" /* selEnd: INTEGER */
$"3B0D 2020 2020 6163 7469 7665 3A20 494E" /* ;. active: IN */
$"5445 4745 523B 0D20 2020 2077 6F72 6442" /* TEGER;. wordB */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FA10 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6B73 2077 6865 7468 6572 2074 6865 2064" /* ks whether the d */
$"7269 7665 2063 6F6E 7461 696E 7320 616E" /* rive contains an */
$"0A45 6469 7469 6F6E 732E 6800 0200 0000" /* .Editions.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 2061" /* ...d.......... a */
$"7320 6974 7320 7265 7375 6C74 2E20 5468" /* s its result. Th */
$"6973 2077 696C 6C20 6861 7070 656E 2072" /* is will happen r */
$"6172 656C 7920 616E 6420 6D61 7920 7265" /* arely and may re */
$"666C 6563 740D 2020 2020 2020 2061 6E20" /* flect. an */
$"6572 726F 7220 696E 2079 6F75 7220 7072" /* error in your pr */
$"6F67 7261 6D20 2866 6F72 2065 7861 6D70" /* ogram (for examp */
$"6C65 2C20 796F 7520 666F 7267 6F74 2074" /* le, you forgot t */
$"6F20 6361 6C6C 0D20 2020 2020 2020 4449" /* o call. DI */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0010 000C 0000 0000" /* ..Monaco........ */
$"0000 0000 FF00 4082 40B4 0005 0574 0000" /* ......@.@....t.. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6C45 7665 6E74 0000 0033 0320 6000 0000" /* lEvent...3. `... */
$"0433 2E30 3227 332E 3032 2C20 A920 4170" /* .3.02'3.02, . Ap */
$"0845 7272 4D67 722E 6800 0200 0000 5445" /* .ErrMgr.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 FF00" /* ...1.@.......... */
$"0000 0000 2B36 1400 01FF FF00 0003 1600" /* ....+6.......... */
$"2B36 104C 656E 6774 6820 2D20 636D 644C" /* +6.Length - cmdL */
$"696E 6550 6F73 202B 2031 293B 0D09 0909" /* inePos + 1);.... */
$"0909 0909 0909 0909 0909 454E 440D 0909" /* ..........END... */
$"0909 0909 0909 0909 0909 454C 5345 2049" /* ..........ELSE I */
$"4620 6465 6C74 614C 656E 6774 6820 3E20" /* F deltaLength > */
$"300D 0909 0909 0909 0909 0909 0909 0954" /* 0..............T */
$"4845 4E0D 0909 0909 0909 0909 0909 0909" /* HEN............. */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0092 0003 01A2 020B" /* ..Monaco........ */
$"0000 FFF6 FFF6 21EC 0000 F718 004D 4A50" /* ......!......MJP */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0500 0000 5E00 2392 C806 FC00 0000 1C00" /* ....^.#......... */
$"5E00 014D 5053 5200 0200 1276 6572 7300" /* ^..MPSR....vers. */
$"0845 7272 6F72 732E 6800 0200 0000 5445" /* .Errors.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 021B 6374" /* ...1.@........ct */
$"6976 6520 6F6E 206D 6163 726F 3A20 5E00" /* ive on macro: ^. */
$"4D61 6372 6F20 7661 7269 6162 6C65 2075" /* Macro variable u */
$"6E64 6566 696E 6564 3A20 5E00 222A 2220" /* ndefined: ^."*" */
$"6469 6D65 6E73 696F 6E20 7573 6564 2066" /* dimension used f */
$"6F72 2075 6E64 6566 696E 6564 2064 696D" /* or undefined dim */
$"656E 7369 6F6E 0044 696D 656E 7369 6F6E" /* ension.Dimension */
$"2065 7863 6565 6473 206D 6178 2061 7272" /* exceeds max arr */
$"6179 2064 696D 656E 7369 6F6E 0041 7272" /* ay dimension.Arr */
};
#endif
data 'vers' (1) {
$"0321 6000 0000 0533 2E32 2E31 2833 2E32" /* .!`....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3931 2E" /* 1991. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 005E 000A 015F 000A" /* ..Monaco.^..._.. */
$"015F 01E2 0000 0000 0000 0000 0000 0000" /* ._.............. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,135 +0,0 @@
/************************************************************
Created: Friday, September 13, 1991 at 12:35 PM
Events.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1985-1991
All rights reserved
************************************************************/
#ifndef __EVENTS__
#define __EVENTS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __QUICKDRAW__
#include <Quickdraw.h>
#endif
enum {
nullEvent = 0,
mouseDown = 1,
mouseUp = 2,
keyDown = 3,
keyUp = 4,
autoKey = 5,
updateEvt = 6,
diskEvt = 7,
activateEvt = 8,
osEvt = 15,
/* event mask equates */
mDownMask = 2,
mUpMask = 4,
keyDownMask = 8,
keyUpMask = 16,
autoKeyMask = 32,
updateMask = 64,
diskMask = 128,
activMask = 256,
highLevelEventMask = 1024,
osMask = -32768
};
enum {
everyEvent = -1,
/* event message equates */
charCodeMask = 0x000000FF,
keyCodeMask = 0x0000FF00,
adbAddrMask = 0x00FF0000,
osEvtMessageMask = 0xFF000000,
/* OS event messages. Event (sub)code is in the high byte of the message field. */
mouseMovedMessage = 0xFA,
suspendResumeMessage = 0x01,
resumeFlag = 1, /* Bit 0 of message indicates resume vs suspend */
convertClipboardFlag = 2, /* Bit 1 in resume message indicates clipboard change */
/* modifiers */
activeFlag = 1, /* Bit 0 of modifiers for activateEvt and mouseDown events */
btnState = 128, /* Bit 7 of low byte is mouse button state */
cmdKey = 256, /* Bit 0 */
shiftKey = 512, /* Bit 1 */
alphaLock = 1024, /* Bit 2 */
optionKey = 2048, /* Bit 3 of high byte */
controlKey = 4096,
/* obsolete equates */
networkEvt = 10,
driverEvt = 11,
app1Evt = 12,
app2Evt = 13
};
enum {
app3Evt = 14,
app4Evt = 15,
networkMask = 1024,
driverMask = 2048,
app1Mask = 4096,
app2Mask = 8192,
app3Mask = 16384,
app4Mask = -32768
};
struct EventRecord {
short what;
long message;
long when;
Point where;
short modifiers;
};
typedef struct EventRecord EventRecord;
typedef long KeyMap[4];
#ifdef __cplusplus
extern "C" {
#endif
pascal Boolean GetNextEvent(short eventMask,EventRecord *theEvent)
= 0xA970;
pascal Boolean WaitNextEvent(short eventMask,EventRecord *theEvent,unsigned long sleep,
RgnHandle mouseRgn)
= 0xA860;
pascal Boolean EventAvail(short eventMask,EventRecord *theEvent)
= 0xA971;
pascal void GetMouse(Point *mouseLoc)
= 0xA972;
pascal Boolean Button(void)
= 0xA974;
pascal Boolean StillDown(void)
= 0xA973;
pascal Boolean WaitMouseUp(void)
= 0xA977;
pascal void GetKeys(KeyMap theKeys)
= 0xA976;
pascal unsigned long TickCount(void)
= 0xA975;
#define GetDblTime() (* (unsigned long*) 0x02F0)
#define GetCaretTime() (* (unsigned long*) 0x02F4)
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6F72 206D 6173 6B73 000C 000C 0052 6F6E" /* or masks.....Ron */
$"204D 6574 7A6B 6572 0016 0009 0063 6F6E" /* Metzker.....con */
$"0845 7665 6E74 732E 6800 0200 0000 5445" /* .Events.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0011" /* ...d............ */
$"0031 322F 3131 2F38 3720 353A 3038 2041" /* .12/11/87 5:08 A */
$"4D00 0058 0030 0009 6672 616D 696E 6745" /* M..X.0..framingE */
$"7272 203D 2036 342C 202F 2A73 6572 6961" /* rr = 64, /*seria */
$"6C20 6472 6976 6572 2065 7272 6F72 206D" /* l driver error m */
$"6173 6B73 2A2F 0052 0006 0063 6C65 616E" /* asks*..R...clean */
$"0059 002D 0066 7261 6D69 6E67 4572 7220" /* .Y.-.framingErr */
$"3D20 3634 3B20 7B73 6572 6961 6C20 6472" /* = 64; {serial dr */
$"6976 6572 2065 7272 6F72 206D 6173 6B73" /* iver error masks */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0001 7FFF 7FFF 0245" /* ..Monaco.......E */
$"8200 0014 0005 FB34 000A 0031 000A 015D" /* .......4...1...] */
$"01E0 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6573 0D20 2A09 6F6E 6520 6F66 205F 494F" /* es. *.one of _IO */
$"4642 462C 205F 494F 4C42 462C 206F 7220" /* FBF, _IOLBF, or */
$"0746 436E 746C 2E68 0200 0000 5445 5854" /* .FCntl.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 010A" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 2062" /* .............. b */
$"7566 6665 7269 6E67 2073 7479 6C65 202A" /* uffering style * */
$"2F0D 2364 6566 696E 6520 5F49 4F52 4541" /* /.#define _IOREA */
$"4420 0928 313C 3C30 2909 092F 2A20 4375" /* D .(1<<0)../* Cu */
$"7272 656E 7420 6D6F 6465 2069 7320 666F" /* rrent mode is fo */
$"7220 7265 6164 696E 6720 2A2F 0D23 6465" /* r reading *..#de */
$"6669 6E65 205F 494F 5752 5409 0928 313C" /* fine _IOWRT..(1< */
$"3C31 2909 092F 2A20 4375 7272 656E 7420" /* <1)../* Current */
$"6D6F 6465 2069 7320 666F 7220 7772 6974" /* mode is for writ */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00E4 0510 7FFF 000F" /* ..Monaco........ */
$"0510 0511 7FFF 001E 0009 01E1 7FFF 001F" /* ................ */
$"01E1 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,93 +0,0 @@
/************************************************************
Created: Thursday, September 12, 1991 at 9:51 AM
FileTransferTools.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __FILETRANSFERTOOLS__
#define __FILETRANSFERTOOLS__
#ifndef __DIALOGS__
#include <Dialogs.h>
#endif
#ifndef __FILETRANSFERS__
#include <FileTransfers.h>
#endif
enum {
/* Control */
ftInitMsg = 0,
ftDisposeMsg = 1,
ftSuspendMsg = 2,
ftResumeMsg = 3,
ftMenuMsg = 4,
ftEventMsg = 5,
ftActivateMsg = 6,
ftDeactivateMsg = 7,
ftGetErrorStringMsg = 8,
ftAbortMsg = 52,
ftStartMsg = 100,
ftExecMsg = 102,
ftSendMsg = 103,
ftReceiveMsg = 104,
/*Setup */
ftSpreflightMsg = 0,
ftSsetupMsg = 1,
ftSitemMsg = 2,
ftSfilterMsg = 3,
ftScleanupMsg = 4,
/* validate */
ftValidateMsg = 0
};
enum {
ftDefaultMsg = 1,
/* scripting */
ftMgetMsg = 0,
ftMsetMsg = 1,
/* localization */
ftL2English = 0,
ftL2Intl = 1
/* DEFs */
#define fdefType 'fdef'
#define fsetType 'fset'
#define fvalType 'fval'
#define flocType 'floc'
#define fscrType 'fscr'
#define fbndType 'fbnd'
#define fverType 'vers'
};
struct FTSetupStruct {
DialogPtr theDialog; /* the dialog form the application */
short count; /* first appended item */
Ptr theConfig; /* the config record to setup */
short procID; /* procID of the tool */
};
typedef struct FTSetupStruct FTSetupStruct;
typedef FTSetupStruct *FTSetupPtr;
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 C8FE 0D4D 616B 6545 7272 6F72 4669" /* .....MakeErrorFi */
$"6C65 0200 0000 4D50 5354 4D50 5320 0100" /* le....MPSTMPS .. */
$"1346 696C 6554 7261 6E73 6665 7254 6F6F" /* .FileTransferToo */
$"6C73 2E68 0200 0000 5445 5854 4D50 5320" /* ls.h....TEXTMPS */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0000" /* ...d............ */
$"0000 0000 0000 0000 0E00 0000 C8FE 084D" /* ...............M */
$"616B 6546 696C 6500 0200 0000 5445 5854" /* akeFile.....TEXT */
$"4D50 5320 0100 FFFF FFFF 0000 0000 C9F3" /* MPS ............ */
$"0000 0000 0A00 0000 0C00 0000 0000 01D6" /* ................ */
$"0000 0400 A4BD 6132 A4BD 6132 0000 0000" /* ......a2..a2.... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 6481 0003 0000 0000 0000 0000 6484" /* ..d...........d. */
$"0001 0000 0000 0000 0000 0000 0000 1000" /* ................ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 2200 6465 733A" /* ..Monaco..".des: */
$"4669 6C65 5472 616E 7366 6572 546F 6F6C" /* FileTransferTool */
$"732E 0006 0004 0031 000A 015D 01E0 0031" /* s......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,208 +0,0 @@
/************************************************************
Created: Wednesday, September 11, 1991 at 6:06 PM
FileTransfers.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __FILETRANSFERS__
#define __FILETRANSFERS__
#ifndef __PACKAGES__
#include <Packages.h>
#endif
#ifndef __CTBUTILITIES__
#include <CTBUtilities.h>
#endif
#ifndef __CONNECTIONS__
#include <Connections.h>
#endif
#ifndef __FILES__
#include <Files.h>
#endif
enum {
/* current file transfer manager version */
curFTVersion = 2,
/* FTErr */
ftGenericError = -1,
ftNoErr = 0,
ftRejected = 1,
ftFailed = 2,
ftTimeOut = 3,
ftTooManyRetry = 4,
ftNotEnoughDSpace = 5,
ftRemoteCancel = 6,
ftWrongFormat = 7,
ftNoTools = 8,
ftUserCancel = 9,
ftNotSupported = 10
};
typedef OSErr FTErr;
enum {ftIsFTMode = 1 << 0,ftNoMenus = 1 << 1,ftQuiet = 1 << 2,ftConfigChanged = 1 << 4,
ftSucc = 1 << 7};
typedef unsigned long FTFlags;
enum {ftSameCircuit = 1 << 0,ftSendDisable = 1 << 1,ftReceiveDisable = 1 << 2,
ftTextOnly = 1 << 3,ftNoStdFile = 1 << 4,ftMultipleFileSend = 1 << 5};
typedef unsigned short FTAttributes;
enum {ftReceiving,ftTransmitting};
typedef unsigned short FTDirection;
struct FTRecord {
short procID;
FTFlags flags;
FTErr errCode;
long refCon;
long userData;
ProcPtr defProc;
Ptr config;
Ptr oldConfig;
ProcPtr environsProc;
long reserved1;
long reserved2;
Ptr ftPrivate;
ProcPtr sendProc;
ProcPtr recvProc;
ProcPtr writeProc;
ProcPtr readProc;
WindowPtr owner;
FTDirection direction;
SFReply theReply;
long writePtr;
long readPtr;
char *theBuf;
long bufSize;
Str255 autoRec;
FTAttributes attributes;
};
typedef struct FTRecord FTRecord;
typedef FTRecord *FTPtr, **FTHandle;
enum {
/* FTReadProc messages */
ftReadOpenFile = 0, /* count = forkFlags, buffer = pblock from PBGetFInfo */
ftReadDataFork = 1,
ftReadRsrcFork = 2,
ftReadAbort = 3,
ftReadComplete = 4,
ftReadSetFPos = 6, /* count = forkFlags, buffer = pBlock same as PBSetFPos */
ftReadGetFPos = 7, /* count = forkFlags, buffer = pBlock same as PBGetFPos */
/* FTWriteProc messages */
ftWriteOpenFile = 0, /* count = forkFlags, buffer = pblock from PBGetFInfo */
ftWriteDataFork = 1,
ftWriteRsrcFork = 2,
ftWriteAbort = 3,
ftWriteComplete = 4,
ftWriteFileInfo = 5,
ftWriteSetFPos = 6, /* count = forkFlags, buffer = pBlock same as PBSetFPos */
ftWriteGetFPos = 7, /* count = forkFlags, buffer = pBlock same as PBGetFPos */
/* fork flags */
ftOpenDataFork = 1,
ftOpenRsrcFork = 2
};
/* application routines type definitions */
typedef pascal OSErr (*FileTransferReadProcPtr) (unsigned long *count, Ptr pData, long refCon, short fileMsg);
typedef pascal OSErr (*FileTransferWriteProcPtr) (unsigned long *count, Ptr pData, long refCon, short fileMsg);
typedef pascal Size (*FileTransferSendProcPtr) (Ptr thePtr, long theSize, long refCon, CMChannel channel, CMFlags flag);
typedef pascal Size (*FileTransferReceiveProcPtr) (Ptr thePtr, long theSize, long refCon, CMChannel channel, CMFlags *flag);
typedef pascal OSErr (*FileTransferEnvironsProcPtr) (long refCon, ConnEnvironRec *theEnvirons);
typedef pascal void (*FileTransferNotificationProcPtr) (FTHandle hFT, FSSpecPtr pFSSpec);
typedef pascal void (*FileTransferChooseIdleProcPtr) (void);
#ifdef __cplusplus
extern "C" {
#endif
pascal FTErr InitFT(void);
pascal Handle FTGetVersion(FTHandle hFT);
pascal short FTGetFTVersion(void);
pascal FTHandle FTNew(short procID,FTFlags flags,FileTransferSendProcPtr sendProc,
FileTransferReceiveProcPtr recvProc,FileTransferReadProcPtr readProc,FileTransferWriteProcPtr writeProc,
FileTransferEnvironsProcPtr environsProc,WindowPtr owner,long refCon,long userData);
pascal void FTDispose(FTHandle hFT);
pascal FTErr FTStart(FTHandle hFT,FTDirection direction,const SFReply *fileInfo);
pascal FTErr FTAbort(FTHandle hFT);
pascal FTErr FTSend(FTHandle hFT,short numFiles,FSSpecArrayPtr pFSSpec,
FileTransferNotificationProcPtr notifyProc);
pascal FTErr FTReceive(FTHandle hFT,FSSpecPtr pFSSpec,FileTransferNotificationProcPtr notifyProc);
pascal void FTExec(FTHandle hFT);
pascal void FTActivate(FTHandle hFT,Boolean activate);
pascal void FTResume(FTHandle hFT,Boolean resume);
pascal Boolean FTMenu(FTHandle hFT,short menuID,short item);
pascal short FTChoose(FTHandle *hFT,Point where,FileTransferChooseIdleProcPtr idleProc);
pascal void FTEvent(FTHandle hFT,const EventRecord *theEvent);
pascal Boolean FTValidate(FTHandle hFT);
pascal void FTDefault(Ptr *theConfig,short procID,Boolean allocate);
pascal Handle FTSetupPreflight(short procID,long *magicCookie);
pascal void FTSetupSetup(short procID,const void *theConfig,short count,
DialogPtr theDialog,long *magicCookie);
pascal Boolean FTSetupFilter(short procID,const void *theConfig,short count,
DialogPtr theDialog,EventRecord *theEvent,short *theItem,long *magicCookie);
pascal void FTSetupItem(short procID,const void *theConfig,short count,
DialogPtr theDialog,short *theItem,long *magicCookie);
pascal void FTSetupXCleanup(short procID,const void *theConfig,short count,
DialogPtr theDialog,Boolean OKed,long *magicCookie);
pascal void FTSetupPostflight(short procID);
pascal Ptr FTGetConfig(FTHandle hFT);
pascal short FTSetConfig(FTHandle hFT,const void *thePtr);
pascal OSErr FTIntlToEnglish(FTHandle hFT,const void *inputPtr,Ptr *outputPtr,
short language);
pascal OSErr FTEnglishToIntl(FTHandle hFT,const void *inputPtr,Ptr *outputPtr,
short language);
pascal void FTGetToolName(short procID,Str255 name);
pascal short FTGetProcID(ConstStr255Param name);
pascal void FTSetRefCon(FTHandle hFT,long refCon);
pascal long FTGetRefCon(FTHandle hFT);
pascal void FTSetUserData(FTHandle hFT,long userData);
pascal long FTGetUserData(FTHandle hFT);
pascal void FTGetErrorString(FTHandle hFT,short id,Str255 errMsg);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0F46 696C 6554 7261 6E73 6665 7273 2E68" /* .FileTransfers.h */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0000" /* ...d............ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 8000 0000 0800 0000" /* ................ */
$"8800 2200 8800 2200 8888 2222 8888 2222" /* .."..."..."".."" */
$"88AA 22AA 88AA 22AA CCAA 33AA CCAA 33AA" /* .."..."...3...3. */
$"EEAA BBAA EEAA BBAA EEBB BBEE EEBB BBEE" /* ................ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4669 6C65 5472 616E 7366 6572 732E 6800" /* FileTransfers.h. */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2020 3C2D 2D20 2020 2033 3620 2020 2069" /* <-- 36 i */
$"6F41 434F 776E 6572 4944 2020 206C 6F6E" /* oACOwnerID lon */
$"0746 696C 6573 2E68 0200 0000 5445 5854" /* .Files.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 010B" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 4341" /* ...d..........CA */
$"6363 6573 7320 2020 206C 6F6E 6720 2020" /* ccess long */
$"2061 6363 6573 7320 7269 6768 7473 0D20" /* access rights. */
$"202D 2D3E 2020 2020 3438 2020 2020 696F" /* --> 48 io */
$"4469 7249 4420 2020 2020 2020 6C6F 6E67" /* DirID long */
$"2020 2020 6469 7265 6374 6F72 7920 4944" /* directory ID */
$"0D0D 5042 4847 6574 4469 7241 6363 6573" /* ..PBHGetDirAcces */
$"7320 7265 7475 726E 7320 6163 6365 7373" /* s returns access */
$"2063 6F6E 7472 6F6C 2069 6E66 6F72 6D61" /* control informa */
};
#endif
data 'vers' (1) {
$"0322 8000 0000 0533 2E32 2E32 2833 2E32" /* .".....3.2.2(3.2 */
$"2E32 2C20 A920 4170 706C 6520 436F 6D70" /* .2, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4669 6C65 732E 6800 0000 0014 0000 0010" /* Files.h......... */
$"000A 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,74 +0,0 @@
/************************************************************
Created: Wednesday, November 27, 1991 at 11:28 AM
Finder.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1990-1991
All rights reserved
************************************************************/
#ifndef __FINDER__
#define __FINDER__
/* make only the following consts avaiable to resource files that include this file */
#define kCustomIconResource -16455 /* Custom icon family resource ID */
#define kContainerFolderAliasType 'fdrp' /* type for folder aliases */
#define kContainerTrashAliasType 'trsh' /* type for trash folder aliases */
#define kContainerHardDiskAliasType 'hdsk' /* type for hard disk aliases */
#define kContainerFloppyAliasType 'flpy' /* type for floppy aliases */
#define kContainerServerAliasType 'srvr' /* type for server aliases */
#define kApplicationAliasType 'adrp' /* type for application aliases */
#define kContainerAliasType 'drop' /* type for all other containers */
/* type for Special folder aliases */
#define kSystemFolderAliasType 'fasy'
#define kAppleMenuFolderAliasType 'faam'
#define kStartupFolderAliasType 'fast'
#define kPrintMonitorDocsFolderAliasType 'fapn'
#define kPreferencesFolderAliasType 'fapf'
#define kControlPanelFolderAliasType 'fact'
#define kExtensionFolderAliasType 'faex'
/* type for AppleShare folder aliases */
#define kExportedFolderAliasType 'faet'
#define kDropFolderAliasType 'fadr'
#define kSharedFolderAliasType 'fash'
#define kMountedFolderAliasType 'famn'
/*Finder Flags*/
#define kIsOnDesk 0x1
#define kColor 0xE
/*kColorReserved = $10
kRequiresSwitchLaunch = $20*/
#define kIsShared 0x40
/*kHasNoINITs = $80*/
#define kHasBeenInited 0x100
/*kReserved = $200*/
#define kHasCustomIcon 0x400
#define kIsStationary 0x800
#define kNameLocked 0x1000
#define kHasBundle 0x2000
#define kIsInvisible 0x4000
#define kIsAlias 0x8000
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0005 0074 7275 6500 005A 0005 0074 7275" /* ...true..Z...tru */
$"6500 0063 0007 0033 3631 3431 3400 0067" /* e..c...361414..g */
$"0846 696E 6465 722E 6800 0200 0000 5445" /* .Finder.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 630D" /* ...d..........c. */
$"2020 2020 4D4F 5645 5120 2020 2023 2436" /* MOVEQ #$6 */
$"302C 4430 2020 2020 0D20 2020 205F 4653" /* 0,D0 . _FS */
$"4469 7370 6174 6368 2020 2020 2C49 6D6D" /* Dispatch ,Imm */
$"6564 2020 2020 3B20 4132 3630 0D20 2020" /* ed ; A260. */
$"2045 4E44 4D0D 0D00 007D 0061 0046 554E" /* ENDM....}.a.FUN */
$"4354 494F 4E20 5042 4765 7446 6F72 6569" /* CTION PBGetForei */
$"676E 5072 6976 7353 796E 6328 7061 7261" /* gnPrivsSync(para */
$"6D42 6C6F 636B 3A20 4850 6172 6D42 6C6B" /* mBlock: HParmBlk */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 F718 004D 4978" /* ..Monaco.....MIx */
$"0000 0000 004D 47C8 0042 6967 8200 0014" /* .....MG..Big.... */
$"0005 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 1400 01FF FF00 0000 8C00 2B36" /* n.+6..........+6 */
$"1020 2020 2020 2020 2020 2020 2020 2020" /* . */
$"0946 6978 4D61 7468 2E68 0200 0000 5445" /* .FixMath.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 2036" /* ...d.......... 6 */
$"4637 3520 3732 3633 2036 3537 3322 2020" /* F75 7263 6573" */
$"2020 2020 2020 2020 2020 2F2A 206B 6261" /* /* kba */
$"723A 4D50 573A 536F 7572 6365 7320 2A2F" /* r:MPW:Sources *. */
$"0D09 2422 3341 3439 2030 3030 3620 3030" /* ..$"3A49 0006 00 */
$"3034 2030 3032 3920 3030 3230 2030 3335" /* 04 0029 0020 035 */
$"4220 3032 3442 2030 3032 3922 2020 2020" /* B 024B 0029" */
$"2020 2020 2020 2020 2F2A 203A 492E 2E2E" /* /* :I... */
$"2E2E 292E 202E 5B2E 4B2E 2920 2A2F 0D09" /* ..). .[.K.) *... */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0005 FD38 0000 0040" /* ..Monaco...8...@ */
$"0000 0064 636C 6F73 6500 4D50 5720 4465" /* ...dclose.MPW De */
$"7620 0006 0004 0031 000A 015D 01E0 0031" /* v .....1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2F0D 2364 6566 696E 6520 5F49 4F53 594E" /* /.#define _IOSYN */
$"4309 0928 313C 3C38 2909 092F 2A20 496E" /* C..(1<<8)../* In */
$"0746 6C6F 6174 2E68 0200 0000 5445 5854" /* .Float.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0110" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 7265" /* ..............re */
$"616D 202A 2F0D 0D0D 2F2A 0D20 2A09 4465" /* am *..../*. *.De */
$"6661 756C 7420 6669 6C65 2062 7566 6665" /* fault file buffe */
$"7220 7369 7A65 7320 7573 6564 2062 7920" /* r sizes used by */
$"7365 7462 7566 2829 2061 6E64 2073 6574" /* setbuf() and set */
$"7662 7566 2829 2E0D 202A 2F0D 0D23 6465" /* vbuf().. *...#de */
$"6669 6E65 2042 5546 5349 5A09 3130 3234" /* fine BUFSIZ.1024 */
$"0909 092F 2A20 6465 6661 756C 7420 6669" /* .../* default fi */
$"6C65 2062 7566 6665 7220 7369 7A65 202A" /* le buffer size * */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 0014" /* ..Monaco........ */
$"0005 FA70 000A 014E 01D1 015D 01E0 0000" /* ...p...N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 1400 01FF FF00 0000 8C00 2B36" /* n.+6..........+6 */
$"1020 2020 2020 2020 2020 2020 2020 2020" /* . */
$"0946 6F6C 6465 7273 2E68 0200 0000 5445" /* .Folders.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 6374" /* ...1.@........ct */
$"7572 657D 0D45 4E44 3B0D 0D0D 466F 6E74" /* ure}.END;...Font */
$"5370 6563 4861 6E64 6C65 203D 205E 466F" /* SpecHandle = ^Fo */
$"6E74 5370 6563 5074 723B 0D46 6F6E 7453" /* ntSpecPtr;.FontS */
$"7065 6350 7472 203D 205E 466F 6E74 5370" /* pecPtr = ^FontSp */
$"6563 3B0D 466F 6E74 5370 6563 203D 2052" /* ec;.FontSpec = R */
$"4543 4F52 440D 0970 6963 7446 6F6E 7449" /* ECORD..pictFontI */
$"443A 0909 0949 4E54 4547 4552 3B09 0909" /* D:...INTEGER;... */
$"0909 7B49 4420 6F66 2074 6865 2066 6F6E" /* ..{ID of the fon */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"466F 6C64 6572 732E 6800 3A43 496E 636C" /* Folders.h.:CIncl */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"7546 6F6C 6465 7254 7970 6500 0004 FB00" /* uFolderType..... */
$"0005 5917 6B43 6F6E 7472 6F6C 5061 6E65" /* ..Y.kControlPane */
$"0746 6F6E 7473 2E68 0200 0000 5445 5854" /* .Fonts.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0112" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 7B14" /* ...1.@........{. */
$"6B54 656D 706F 7261 7279 466F 6C64 6572" /* kTemporaryFolder */
$"5479 7065 0000 06A7 0000 07D3 0A46 696E" /* Type.........Fin */
$"6446 6F6C 6465 7200 0000 3303 2060 0000" /* dFolder...3. `.. */
$"0004 332E 3031 2733 2E30 312C 20A9 2041" /* ..3.01'3.01, . A */
$"7070 6C65 2043 6F6D 7075 7465 722C 2049" /* pple Computer, I */
$"6E63 2E20 3139 3835 2D31 3939 302E 0000" /* nc. 1985-1990... */
$"0100 0000 02DE 0000 01DE 0000 0046 002B" /* .............F.+ */
$"3680 0874 0000 001C 0046 0001 4D50 5352" /* 6..t.....F..MPSR */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FE10 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,356 +0,0 @@
/************************************************************
Created: Wednesday, December 4, 1991 at 12:25 PM
GestaltEqu.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1988-1991
All rights reserved
************************************************************/
#ifndef __GESTALTEQU__
#define __GESTALTEQU__
#ifndef __TYPES__
#include <Types.h>
#endif
enum {
/************************
* Gestalt error codes
************************/
gestaltUnknownErr = -5550, /* value returned if Gestalt doesn't know the answer */
gestaltUndefSelectorErr = -5551, /* undefined selector was passed to Gestalt */
gestaltDupSelectorErr = -5552, /* tried to add an entry that already existed */
gestaltLocationErr = -5553, /* gestalt function ptr wasn't in sysheap */
/**************************
* Environment Selectors
**************************/
#define gestaltVersion 'vers' /* gestalt version */
#define gestaltAddressingModeAttr 'addr' /* addressing mode attributes */
gestalt32BitAddressing = 0, /* using 32-bit addressing mode */
gestalt32BitSysZone = 1, /* 32-bit compatible system zone */
gestalt32BitCapable = 2, /* Machine is 32-bit capable */
#define gestaltAliasMgrAttr 'alis' /* Alias Mgr Attributes */
gestaltAliasMgrPresent = 0, /* True if the Alias Mgr is present */
gestaltAliasMgrSupportsRemoteAppletalk = 1, /* True if the Alias Mgr knows about Remote Appletalk */
#define gestaltAppleTalkVersion 'atlk' /* appletalk version */
#define gestaltAUXVersion 'a/ux' /*a/ux version, if present */
#define gestaltConnMgrAttr 'conn' /* connection mgr attributes */
gestaltConnMgrPresent = 0,
gestaltConnMgrCMSearchFix = 1, /* Fix to CMAddSearch? */
gestaltConnMgrErrorString = 2, /* has CMGetErrorString() */
gestaltConnMgrMultiAsyncIO = 3, /* CMNewIOPB, CMDisposeIOPB, CMPBRead, CMPBWrite, CMPBIOKill */
#define gestaltCRMAttr 'crm ' /* comm resource mgr attributes */
gestaltCRMPresent = 0,
gestaltCRMPersistentFix = 1, /* fix for persistent tools */
gestaltCRMToolRsrcCalls = 2, /* has CRMGetToolResource/ReleaseToolResource */
#define gestaltCTBVersion 'ctbv' /* CommToolbox version */
#define gestaltDBAccessMgrAttr 'dbac' /* Database Access Mgr attributes */
gestaltDBAccessMgrPresent = 0, /* True if Database Access Mgr present */
#define gestaltDITLExtAttr 'ditl' /* AppenDITL, etc. calls from CTB */
gestaltDITLExtPresent = 0, /* True if calls are present */
#define gestaltEasyAccessAttr 'easy' /* Easy Access attributes */
gestaltEasyAccessOff = 0, /* if Easy Access present, but off (no icon) */
gestaltEasyAccessOn = 1 /* if Easy Access "On" */
};
enum {
gestaltEasyAccessSticky = 2, /* if Easy Access "Sticky" */
gestaltEasyAccessLocked = 3, /* if Easy Access "Locked" */
#define gestaltEditionMgrAttr 'edtn' /* Edition Mgr attributes */
gestaltEditionMgrPresent = 0, /* True if Edition Mgr present */
#define gestaltAppleEventsAttr 'evnt' /* Apple Events attributes */
gestaltAppleEventsPresent = 0, /* True if Apple Events present */
#define gestaltFindFolderAttr 'fold' /* Folder Mgr attributes */
gestaltFindFolderPresent = 0, /* True if Folder Mgr present */
#define gestaltFontMgrAttr 'font' /* Font Mgr attributes */
gestaltOutlineFonts = 0, /* True if Outline Fonts supported */
#define gestaltFPUType 'fpu ' /* fpu type */
gestaltNoFPU = 0, /* no FPU */
gestalt68881 = 1, /* 68881 FPU */
gestalt68882 = 2, /* 68882 FPU */
gestalt68040FPU = 3, /* 68040 built-in FPU */
#define gestaltFSAttr 'fs ' /* file system attributes */
gestaltFullExtFSDispatching = 0, /* has really cool new HFSDispatch dispatcher */
gestaltHasFSSpecCalls = 1, /* has FSSpec calls */
gestaltHasFileSystemManager = 2, /* has a file system manager */
#define gestaltFXfrMgrAttr 'fxfr' /* file transfer manager attributes */
gestaltFXfrMgrPresent = 0,
gestaltFXfrMgrMultiFile = 1, /* supports FTSend and FTReceive */
gestaltFXfrMgrErrorString = 2, /* supports FTGetErrorString */
#define gestaltHardwareAttr 'hdwr' /* hardware attributes */
gestaltHasVIA1 = 0, /* VIA1 exists */
gestaltHasVIA2 = 1, /* VIA2 exists */
gestaltHasASC = 3, /* Apple Sound Chip exists */
gestaltHasSCC = 4 /* SCC exists */
};
enum {
gestaltHasSCSI = 7, /* SCSI exists */
gestaltHasSoftPowerOff = 19, /* Capable of software power off */
gestaltHasSCSI961 = 21, /* 53C96 SCSI controller on internal bus */
gestaltHasSCSI962 = 22, /* 53C96 SCSI controller on external bus */
gestaltHasUniversalROM = 24, /* Do we have a Universal ROM?*/
#define gestaltHelpMgrAttr 'help' /* Help Mgr Attributes */
gestaltHelpMgrPresent = 0, /* true if help mgr is present */
#define gestaltKeyboardType 'kbd ' /* keyboard type */
gestaltMacKbd = 1,
gestaltMacAndPad = 2,
gestaltMacPlusKbd = 3,
gestaltExtADBKbd = 4,
gestaltStdADBKbd = 5,
gestaltPrtblADBKbd = 6,
gestaltPrtblISOKbd = 7,
gestaltStdISOADBKbd = 8,
gestaltExtISOADBKbd = 9,
gestaltADBKbdII = 10,
gestaltADBISOKbdII = 11,
gestaltPwrBookADBKbd = 12,
gestaltPwrBookISOADBKbd = 13,
#define gestaltLowMemorySize 'lmem' /* size of low memory area */
#define gestaltLogicalRAMSize 'lram' /* logical ram size */
#define gestaltMiscAttr 'misc' /* miscellaneous attributes */
gestaltScrollingThrottle = 0 /* true if scrolling throttle on */
};
enum {
gestaltSquareMenuBar = 2, /* true if menu bar is square */
#define gestaltMMUType 'mmu ' /* mmu type */
gestaltNoMMU = 0, /* no MMU */
gestaltAMU = 1, /* address management unit */
gestalt68851 = 2, /* 68851 PMMU */
gestalt68030MMU = 3, /* 68030 built-in MMU */
gestalt68040MMU = 4, /* 68040 built-in MMU */
#define gestaltStdNBPAttr 'nlup' /* standard nbp attributes */
gestaltStdNBPPresent = 0,
#define gestaltNotificationMgrAttr 'nmgr' /* notification manager attributes */
gestaltNotificationPresent = 0, /* notification manager exists */
#define gestaltNuBusConnectors 'sltc' /* bitmap of NuBus connectors*/
#define gestaltOSAttr 'os ' /* o/s attributes */
gestaltSysZoneGrowable = 0, /* system heap is growable */
gestaltLaunchCanReturn = 1, /* can return from launch */
gestaltLaunchFullFileSpec = 2, /* can launch from full file spec */
gestaltLaunchControl = 3, /* launch control support available */
gestaltTempMemSupport = 4, /* temp memory support */
gestaltRealTempMemory = 5, /* temp memory handles are real */
gestaltTempMemTracked = 6, /* temporary memory handles are tracked */
gestaltIPCSupport = 7, /* IPC support is present */
gestaltSysDebuggerSupport = 8, /* system debugger support is present */
#define gestaltOSTable 'ostt' /* OS trap table base */
#define gestaltToolboxTable 'tbtt' /* OS trap table base */
#define gestaltExtToolboxTable 'xttt' /* Extended Toolbox trap table base */
#define gestaltLogicalPageSize 'pgsz' /* logical page size */
#define gestaltPowerMgrAttr 'powr' /* power manager attributes */
gestaltPMgrExists = 0,
gestaltPMgrCPUIdle = 1,
gestaltPMgrSCC = 2
};
enum {
gestaltPMgrSound = 3,
#define gestaltPPCToolboxAttr 'ppc ' /* PPC toolbox attributes */
/*
* PPC will return the combination of following bit fields.
* e.g. gestaltPPCSupportsRealTime +gestaltPPCSupportsIncoming + gestaltPPCSupportsOutGoing
* indicates PPC is cuurently is only supports real time delivery
* and both incoming and outgoing network sessions are allowed.
* By default local real time delivery is supported as long as PPCInit has been called.*/
gestaltPPCToolboxPresent = 0x0000, /* PPC Toolbox is present Requires PPCInit to be called */
gestaltPPCSupportsRealTime = 0x1000, /* PPC Supports real-time delivery */
gestaltPPCSupportsIncoming = 0x0001, /* PPC will deny incoming network requests */
gestaltPPCSupportsOutGoing = 0x0002, /* PPC will deny outgoing network requests */
#define gestaltProcessorType 'proc' /* processor type */
gestalt68000 = 1,
gestalt68010 = 2,
gestalt68020 = 3,
gestalt68030 = 4,
gestalt68040 = 5,
#define gestaltParityAttr 'prty' /* parity attributes */
gestaltHasParityCapability = 0, /* has ability to check parity */
gestaltParityEnabled = 1, /* parity checking enabled */
#define gestaltQuickdrawVersion 'qd ' /* quickdraw version */
gestaltOriginalQD = 0x000, /* original 1-bit QD */
gestalt8BitQD = 0x100, /* 8-bit color QD */
gestalt32BitQD = 0x200, /* 32-bit color QD */
gestalt32BitQD11 = 0x210, /* 32-bit color QDv1.1 */
gestalt32BitQD12 = 0x220, /* 32-bit color QDv1.2 */
gestalt32BitQD13 = 0x230, /* 32-bit color QDv1.3 */
#define gestaltQuickdrawFeatures 'qdrw' /* quickdraw features */
gestaltHasColor = 0, /* color quickdraw present */
gestaltHasDeepGWorlds = 1 /* GWorlds can be deeper than 1-bit */
};
enum {
gestaltHasDirectPixMaps = 2, /* PixMaps can be direct (16 or 32 bit) */
gestaltHasGrayishTextOr = 3, /* supports text mode grayishTextOr */
#define gestaltPhysicalRAMSize 'ram ' /* physical RAM size */
#define gestaltPopupAttr 'pop!' /* popup cdef attributes */
gestaltPopupPresent = 0,
#define gestaltResourceMgrAttr 'rsrc' /* Resource Mgr attributes */
gestaltPartialRsrcs = 0, /* True if partial resources exist */
#define gestaltScriptMgrVersion 'scri' /* Script Manager version number <08/05/89 pke> */
#define gestaltScriptCount 'scr#' /* number of active script systems <08/05/89 pke> */
#define gestaltSerialAttr 'ser ' /* Serial attributes */
gestaltHasGPIaToDCDa = 0, /* GPIa connected to DCDa*/
gestaltHasGPIaToRTxCa = 1, /* GPIa connected to RTxCa clock input*/
gestaltHasGPIbToDCDb = 2, /* GPIb connected to DCDb */
#define gestaltSoundAttr 'snd ' /* sound attributes */
gestaltStereoCapability = 0, /* sound hardware has stereo capability */
gestaltStereoMixing = 1, /* stereo mixing on external speaker */
gestaltSoundIOMgrPresent = 3, /* The Sound I/O Manager is present */
gestaltBuiltInSoundInput = 4, /* built-in Sound Input hardware is present */
gestaltHasSoundInputDevice = 5, /* Sound Input device available */
#define gestaltStandardFileAttr 'stdf' /* Standard File attributes */
gestaltStandardFile58 = 0, /* True if selectors 5-8 (StandardPutFile-CustomGetFile) are supported */
#define gestaltTextEditVersion 'te ' /* TextEdit version number <08/05/89 pke> */
gestaltTE1 = 1, /* TextEdit in MacIIci ROM <8Aug89smb> */
gestaltTE2 = 2, /* TextEdit with 6.0.4 Script Systems on MacIIci (Script bug fixes for MacIIci) <8Aug89smb> */
gestaltTE3 = 3, /* TextEdit with 6.0.4 Script Systems all but MacIIci <8Aug89smb> */
gestaltTE4 = 4, /* TextEdit in System 7.0 */
gestaltTE5 = 5, /* TextWidthHook available in TextEdit */
#define gestaltTermMgrAttr 'term' /* terminal mgr attributes */
gestaltTermMgrPresent = 0,
gestaltTermMgrErrorString = 2
};
enum {
#define gestaltTimeMgrVersion 'tmgr' /* time mgr version */
gestaltStandardTimeMgr = 1, /* standard time mgr is present */
gestaltRevisedTimeMgr = 2, /* revised time mgr is present */
gestaltExtendedTimeMgr = 3, /* extended time mgr is present */
#define gestaltVMAttr 'vm ' /* virtual memory attributes */
gestaltVMPresent = 0, /* true if virtual memory is present */
/*************************
* Info-only selectors
************************/
#define gestaltMachineType 'mach' /* machine type */
kMachineNameStrID = -16395,
gestaltClassic = 1,
gestaltMacXL = 2,
gestaltMac512KE = 3,
gestaltMacPlus = 4,
gestaltMacSE = 5,
gestaltMacII = 6,
gestaltMacIIx = 7,
gestaltMacIIcx = 8,
gestaltMacSE030 = 9,
gestaltPortable = 10,
gestaltMacIIci = 11,
gestaltMacIIfx = 13,
gestaltMacClassic = 17,
gestaltMacIIsi = 18,
gestaltMacLC = 19
};
enum {
gestaltQuadra900 = 20,
gestaltPowerBook170 = 21,
gestaltQuadra700 = 22,
gestaltClassicII = 23,
gestaltPowerBook100 = 24,
gestaltPowerBook140 = 25
#define gestaltMachineIcon 'micn' /* machine icon */
#define gestaltROMSize 'rom ' /* rom size */
#define gestaltROMVersion 'romv' /* rom version */
#define gestaltSystemVersion 'sysv' /* system version*/
};
#ifdef __cplusplus
extern "C" {
#endif
#if SystemSevenOrLater
#pragma parameter __D0 Gestalt(__D0,__A1)
pascal OSErr Gestalt(OSType selector,long *response)
= {0xA1AD,0x2288};
#else
pascal OSErr Gestalt(OSType selector,long *response);
#endif
pascal OSErr NewGestalt(OSType selector,ProcPtr gestaltFunction);
pascal OSErr ReplaceGestalt(OSType selector,ProcPtr gestaltFunction,ProcPtr *oldGestaltFunction);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"206B 5379 7374 656D 466F 6C64 6572 5479" /* kSystemFolderTy */
$"7065 2027 6D61 6373 2709 0909 092F 2A74" /* pe 'macs'..../*t */
$"0C47 6573 7461 6C74 4571 752E 68E4 0200" /* .GestaltEqu.h... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 6F62" /* ...d..........ob */
$"6A65 6374 7320 696E 2074 6869 7320 666F" /* jects in this fo */
$"6C64 6572 2073 686F 7720 6F6E 2074 6865" /* lder show on the */
$"2064 6573 6B20 746F 702E 2A2F 0D23 6465" /* desk top.*..#de */
$"6669 6E65 206B 5472 6173 6846 6F6C 6465" /* fine kTrashFolde */
$"7254 7970 6520 2774 7273 6827 0909 0909" /* rType 'trsh'.... */
$"092F 2A74 6865 2074 7261 7368 2066 6F6C" /* ./*the trash fol */
$"6465 723B 206F 626A 6563 7473 2069 6E20" /* der; objects in */
$"7468 6973 2066 6F6C 6465 7220 7368 6F77" /* this folder show */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00F6 2239 0017 0000" /* ..Monaco.."9.... */
$"0000 0000 018F 0049 6C3C 004D 4850 004D" /* .......Il<.MHP.M */
$"4768 0006 0004 0031 000A 015D 01E0 0031" /* Gh.....1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6349 4963 692E 2E2E 31A3 2E2E 202A 2F0D" /* cIIci...1... *.. */
$"0924 2233 3142 4520 3131 3637 2036 3537" /* .$"31BE 1167 657 */
$"0847 7261 6633 442E 6800 0200 0000 5445" /* .Graf3D.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 3020" /* ...1.@........0 */
$"3331 4246 2030 3030 3020 3331 4437 2030" /* 31BF 0000 31D7 0 */
$"4636 3720 3635 3733 2220 2020 2020 2020" /* F67 6573" */
$"2020 2020 202F 2A20 7373 6963 2E2E 31BF" /* /* ssic..1. */
$"2E2E 31D7 2E67 6573 202A 2F0D 0924 2237" /* ..1..ges *...$"7 */
$"3436 3120 3643 3734 2034 4436 3120 3633" /* 461 6C74 4D61 63 */
$"3439 2034 3937 3320 3639 3030 2030 3030" /* 49 4973 6900 000 */
$"3020 3331 4546 2220 2020 2020 2020 2020" /* 0 31EF" */
$"2020 202F 2A20 7461 6C74 4D61 6349 4973" /* /* taltMacIIs */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 0014" /* ..Monaco........ */
$"0005 FAA8 000A 014E 01D1 015D 01E0 0000" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,255 +0,0 @@
/*
HyperXCmd.h
Definition file for HyperCard XCMDs and XFCNs in C.
Copyright Claris Corp. 1992
All rights reserved
*/
#ifndef __HYPERXCMD__
#define __HYPERXCMD__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __EVENTS__
#include <Events.h>
#endif
#ifndef __TEXTEDIT__
#include <TextEdit.h>
#endif
#ifndef __MENUS__
#include <Menus.h>
#endif
#ifndef __STANDARDFILE__
#include <StandardFile.h>
#endif
/* result codes */
#define xresSucc 0
#define xresFail 1
#define xresNotImp 2
/* XCMDBlock constants for event.what... */
#define xOpenEvt 1000 /* the first event after you are created */
#define xCloseEvt 1001 /* your window is being forced close (Quit?) */
#define xGiveUpEditEvt 1002 /* you are losing Edit... */
#define xGiveUpSoundEvt 1003 /* you are losing the sound channel... */
#define xHidePalettesEvt 1004 /* someone called HideHCPalettes */
#define xShowPalettesEvt 1005 /* someone called ShowHCPalettes */
#define xEditUndo 1100 /* Edit——Undo */
#define xEditCut 1102 /* Edit——Cut */
#define xEditCopy 1103 /* Edit——Copy */
#define xEditPaste 1104 /* Edit——Paste */
#define xEditClear 1105 /* Edit——Clear */
#define xSendEvt 1200 /* script has sent you a message (text) */
#define xSetPropEvt 1201 /* set a window property */
#define xGetPropEvt 1202 /* get a window property */
#define xCursorWithin 1300 /* cursor is within the window */
#define xMenuEvt 1400 /* user has selected an item in your menu */
#define xMBarClickedEvt 1401 /* a menu is about to be shown--update if needed */
#define xShowWatchInfoEvt 1501 /* for variable and message watchers */
#define xScriptErrorEvt 1502 /* place the insertion point */
#define xDebugErrorEvt 1503 /* user clicked "Debug" at a complaint */
#define xDebugStepEvt 1504 /* hilite the line */
#define xDebugTraceEvt 1505 /* same as step but tracing */
#define xDebugFinishedEvt 1506 /* script ended */
#define paletteProc 2048 /* Windoid with grow box */
#define palNoGrowProc 2052 /* standard Windoid defproc */
#define palZoomProc 2056 /* Windoid with zoom and grow */
#define palZoomNoGrow 2060 /* Windoid with zoom and no grow */
#define hasZoom 8
#define hasTallTBar 2
#define toggleHilite 1
#define maxCachedChecks 16 /* maximum number of checkpoints in a script */
/* paramCount is set to these constants when first calling special XThings */
#define xMessageWatcherID -2
#define xVariableWatcherID -3
#define xScriptEditorID -4
#define xDebuggerID -5
/* XTalkObjectPtr->objectKind values */
#define stackObj 1
#define bkgndObj 2
#define cardObj 3
#define fieldObj 4
#define buttonObj 5
/* selectors for ShowHCAlert's dialogs (shown as buttonID:buttonText) */
#define errorDlgID 1 /* 1:OK (default) */
#define confirmDlgID 2 /* 1:OK (default) and 2:Cancel */
#define confirmDelDlgID 3 /* 1:Cancel (default) and 2:Delete */
#define yesNoCancelDlgID 4 /* 1:Yes (default), 2:Cancel, and 3:No */
typedef struct XCmdBlock *XCmdPtr;
struct XCmdBlock {
short paramCount; /* If = -1 then new use for XWindoids */
Handle params[16];
Handle returnValue;
Boolean passFlag;
Ptr entryPoint; /* to call back to HyperCard */
short request;
short result;
long inArgs[8];
long outArgs[4];
};
typedef struct XWEventInfo *XWEventInfoPtr;
struct XWEventInfo {
EventRecord event;
WindowPtr eventWindow;
long eventParams[9];
Handle eventResult;
};
typedef struct XTalkObject *XTalkObjectPtr;
struct XTalkObject {
short objectKind; /* stack, bkgnd, card, field, or button */
long stackNum; /* reference number of the source stack */
long bkgndID;
long cardID;
long buttonID;
long fieldID;
};
typedef struct CheckPts *CheckPtPtr;
typedef CheckPtPtr *CheckPtHandle;
struct CheckPts {
short checks[maxCachedChecks];
};
#ifdef __cplusplus
extern "C" {
#endif
/**** HyperTalk Utilities ****/
pascal Handle EvalExpr(XCmdPtr paramPtr, StringPtr expr);
pascal void SendCardMessage(XCmdPtr paramPtr, StringPtr msg);
pascal void SendHCMessage(XCmdPtr paramPtr, StringPtr msg);
pascal void RunHandler(XCmdPtr paramPtr, Handle handler);
/**** Memory Utilities ****/
pascal Handle GetGlobal(XCmdPtr paramPtr, StringPtr globName);
pascal void SetGlobal(XCmdPtr paramPtr, StringPtr globName, Handle globValue);
pascal void ZeroBytes(XCmdPtr paramPtr, Ptr dstPtr, long longCount);
/**** String Utilities ****/
pascal void ScanToReturn(XCmdPtr paramPtr, Ptr *scanPtr);
pascal void ScanToZero(XCmdPtr paramPtr, Ptr *scanPtr);
pascal Boolean StringEqual(XCmdPtr paramPtr, StringPtr str1, StringPtr str2);
pascal long StringLength(XCmdPtr paramPtr, Ptr strPtr);
pascal Ptr StringMatch(XCmdPtr paramPtr, StringPtr pattern, Ptr target);
pascal void ZeroTermHandle(XCmdPtr paramPtr, Handle hndl);
/**** String Conversions ****/
pascal void BoolToStr(XCmdPtr paramPtr, Boolean bool, StringPtr str);
pascal void ExtToStr(XCmdPtr paramPtr, extended80 num, StringPtr str);
pascal void LongToStr(XCmdPtr paramPtr, long posNum, StringPtr str);
pascal void NumToHex(XCmdPtr paramPtr, long num, short nDigits, StringPtr str);
pascal void NumToStr(XCmdPtr paramPtr, long num, StringPtr str);
pascal Handle PasToZero(XCmdPtr paramPtr, StringPtr str);
pascal void PointToStr(XCmdPtr paramPtr, Point pt, StringPtr str);
pascal void RectToStr(XCmdPtr paramPtr, Rect *rct, StringPtr str);
pascal void ReturnToPas(XCmdPtr paramPtr, Ptr zeroStr, StringPtr pasStr);
pascal Boolean StrToBool(XCmdPtr paramPtr, StringPtr str);
pascal extended80 StrToExt(XCmdPtr paramPtr, StringPtr str);
pascal long StrToLong(XCmdPtr paramPtr, StringPtr str);
pascal long StrToNum(XCmdPtr paramPtr, StringPtr str);
pascal void StrToPoint(XCmdPtr paramPtr, StringPtr str, Point *pt);
pascal void StrToRect(XCmdPtr paramPtr, StringPtr str, Rect *rct);
pascal void ZeroToPas(XCmdPtr paramPtr, Ptr zeroStr, StringPtr pasStr);
/**** Field Utilities ****/
pascal Handle GetFieldByID(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldID);
pascal Handle GetFieldByName(XCmdPtr paramPtr, Boolean cardFieldFlag, StringPtr fieldName);
pascal Handle GetFieldByNum(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldNum);
pascal void SetFieldByID(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldID,
Handle fieldVal);
pascal void SetFieldByName(XCmdPtr paramPtr, Boolean cardFieldFlag,
StringPtr fieldName, Handle fieldVal);
pascal void SetFieldByNum(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldNum,
Handle fieldVal);
pascal TEHandle GetFieldTE(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldID,
short fieldNum, StringPtr fieldNamePtr);
pascal void SetFieldTE(XCmdPtr paramPtr, Boolean cardFieldFlag, short fieldID,
short fieldNum, StringPtr fieldNamePtr, TEHandle fieldTE);
/**** Miscellaneous Utilities ****/
pascal void BeginXSound(XCmdPtr paramPtr, WindowPtr window);
pascal void EndXSound(XCmdPtr paramPtr);
pascal Boolean GetFilePath(XCmdPtr paramPtr, StringPtr fileName, short numTypes, SFTypeList typeList,
Boolean askUser, OSType *fileType, StringPtr fullName);
pascal void GetXResInfo(XCmdPtr paramPtr, short *resFile, short *resID, ResType *rType, StringPtr name);
pascal void Notify(XCmdPtr paramPtr);
pascal void SendHCEvent(XCmdPtr paramPtr, EventRecord *event);
pascal void SendWindowMessage(XCmdPtr paramPtr, WindowPtr windPtr,
StringPtr windowName, Handle msg);
pascal WindowPtr FrontDocWindow(XCmdPtr paramPtr);
pascal long StackNameToNum(XCmdPtr paramPtr, StringPtr stackName);
pascal short ShowHCAlert(XCmdPtr paramPtr, short dlgID, StringPtr promptStr);
/**** Creating and Disposing XWindoids ****/
pascal WindowPtr NewXWindow(XCmdPtr paramPtr, Rect *boundsRect, StringPtr title,
Boolean visible, short procID, Boolean color, Boolean floating);
pascal WindowPtr GetNewXWindow(XCmdPtr paramPtr, ResType templateType, short
templateID, Boolean color, Boolean floating);
pascal void CloseXWindow(XCmdPtr paramPtr, WindowPtr window);
/**** XWindoid Utilities ****/
pascal void HideHCPalettes(XCmdPtr paramPtr);
pascal void ShowHCPalettes(XCmdPtr paramPtr);
pascal void RegisterXWMenu(XCmdPtr paramPtr, WindowPtr window, MenuHandle menu, Boolean registering);
pascal void SetXWIdleTime(XCmdPtr paramPtr, WindowPtr window, long interval);
pascal void XWHasInterruptCode(XCmdPtr paramPtr, WindowPtr window, Boolean haveCode);
pascal void XWAlwaysMoveHigh(XCmdPtr paramPtr, WindowPtr window, Boolean moveHigh);
pascal void XWAllowReEntrancy(XCmdPtr paramPtr, WindowPtr window, Boolean allowSysEvts, Boolean allowHCEvts);
/**** Text Editing Utilities ****/
pascal void BeginXWEdit(XCmdPtr paramPtr, WindowPtr window);
pascal void EndXWEdit(XCmdPtr paramPtr, WindowPtr window);
pascal Ptr HCWordBreakProc(XCmdPtr paramPtr);
pascal void PrintTEHandle(XCmdPtr paramPtr, TEHandle hTE, StringPtr header);
/**** Script Editor support ****/
pascal CheckPtHandle GetCheckPoints(XCmdPtr paramPtr);
pascal void SetCheckPoints(XCmdPtr paramPtr, CheckPtHandle checkLines);
pascal void FormatScript(XCmdPtr paramPtr, Handle scriptHndl, long *insertionPoint, Boolean quickFormat);
pascal void SaveXWScript(XCmdPtr paramPtr, Handle scriptHndl);
pascal void GetObjectName(XCmdPtr paramPtr, XTalkObjectPtr object, StringPtr objName);
pascal void GetObjectScript(XCmdPtr paramPtr, XTalkObjectPtr object, Handle *scriptHndl);
pascal void SetObjectScript(XCmdPtr paramPtr, XTalkObjectPtr object, Handle scriptHndl);
/**** Debugging Tools support ****/
pascal void AbortScript(XCmdPtr paramPtr);
pascal void GoScript(XCmdPtr paramPtr);
pascal void StepScript(XCmdPtr paramPtr, Boolean stepInto);
pascal void CountHandlers(XCmdPtr paramPtr, short *handlerCount);
pascal void GetHandlerInfo(XCmdPtr paramPtr, short handlerNum, StringPtr handlerName,
StringPtr objectName, short *varCount);
pascal void GetVarInfo(XCmdPtr paramPtr, short handlerNum, short varNum, StringPtr varName,
Boolean *isGlobal, StringPtr varValue, Handle varHndl);
pascal void SetVarValue(XCmdPtr paramPtr, short handlerNum, short varNum, Handle varHndl);
pascal Handle GetStackCrawl(XCmdPtr paramPtr);
pascal void TraceScript(XCmdPtr paramPtr, Boolean traceInto);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0006 2600 0006 4B08 5669 6577 506F 7274" /* ..&...K.ViewPort */
$"0000 064C 0000 068F 064C 6F6F 6B41 7400" /* ...L.....LookAt. */
$"0B48 7970 6572 5843 6D64 2E68 0200 0000" /* .HyperXCmd.h.... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A6E4 BB40 0000 0000 0000 01D6 6368" /* .....@........ch */
$"0000 0767 0000 0786 0359 6177 0000 0787" /* ...g.....Yaw.... */
$"0000 07A7 0452 6F6C 6C00 0007 A800 0007" /* .....Roll....... */
$"C804 536B 6577 0000 07C9 0000 500D 0954" /* ..Skew......P..T */
$"7261 6E73 666F 726D 0000 0802 0000 53A5" /* ransform......S. */
$"0643 6C69 7033 4400 0008 5E00 0056 0607" /* .Clip3D...^..V.. */
$"5365 7450 7433 4400 0008 9B00 0058 1907" /* SetPt3D......X.. */
$"5365 7450 7432 4400 0008 D000 0008 FF08" /* SetPt2D......... */
$"4C69 6E65 546F 3344 0000 0033 0320 6000" /* LineTo3D...3. `. */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006D 642E 6800 2200" /* ..Monaco.md.h.". */
$"01D7 0000 FFF6 2239 0017 0000 0000 0000" /* ......"9........ */
$"012A 0006 0004 0031 000A 015D 01E0 0031" /* .*.....1...]...1 */
$"000A 015D 01E0 A6E4 BB40 0000 0000 0000" /* ...].....@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,77 +0,0 @@
/************************************************************
Created: Tuesday, September 10, 1991 at 1:54 PM
Icons.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1990-1991
All rights reserved
************************************************************/
#ifndef __ICONS__
#define __ICONS__
enum {
/* The following are icons for which there are both icon suites and SICNs. */
genericDocumentIconResource = -4000,
genericStationeryIconResource = -3985,
genericEditionFileIconResource = -3989,
genericApplicationIconResource = -3996,
genericDeskAccessoryIconResource = -3991,
genericFolderIconResource = -3999,
privateFolderIconResource = -3994,
floppyIconResource = -3998,
trashIconResource = -3993,
/* The following are icons for which there are SICNs only. */
desktopIconResource = -3992,
openFolderIconResource = -3997,
genericHardDiskIconResource = -3995,
genericFileServerIconResource = -3972,
genericSuitcaseIconResource = -3970,
genericMoverObjectIconResource = -3969,
/* The following are icons for which there are icon suites only. */
genericPreferencesIconResource = -3971,
genericQueryDocumentIconResource = -16506,
genericExtensionIconResource = -16415,
systemFolderIconResource = -3983,
appleMenuFolderIconResource = -3982
};
enum {
startupFolderIconResource = -3981,
ownedFolderIconResource = -3980,
dropFolderIconResource = -3979,
sharedFolderIconResource = -3978,
mountedFolderIconResource = -3977,
controlPanelFolderIconResource = -3976,
printMonitorFolderIconResource = -3975,
preferencesFolderIconResource = -3974,
extensionsFolderIconResource = -3973,
fullTrashIconResource = -3984
#define large1BitMask 'ICN#'
#define large4BitData 'icl4'
#define large8BitData 'icl8'
#define small1BitMask 'ics#'
#define small4BitData 'ics4'
#define small8BitData 'ics8'
#define mini1BitMask 'icm#'
#define mini4BitData 'icm4'
#define mini8BitData 'icm8'
};
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0000 000A 0000 6000 0000 4800 0000 0000" /* ......`...H..... */
$"0000 0000 0000 0001 0000 0A12 0000 0001" /* ................ */
$"0749 636F 6E73 2E68 0200 0000 5445 5854" /* .Icons.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0118" /* MPS ............ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 0340" /* ...d...........@ */
$"0000 0000 0366 0480 0000 0000 0000 0000" /* .....f.......... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 4D61" /* ..Monaco......Ma */
$"8200 0014 0005 FA5C 000A 8001 8001 7FFF" /* .......\........ */
$"7FFF 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,221 +0,0 @@
/************************************************************
Created: Wednesday, October 21, 1992 at 2:55 PM
ImageCodec.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1991, 1992
All rights reserved
************************************************************/
#ifndef __IMAGECODEC__
#define __IMAGECODEC__
#ifndef __QUICKDRAW__
#include <QuickDraw.h>
#endif
#ifndef __QDOFFSCREEN__
#include <QDOffscreen.h>
#endif
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __COMPONENTS__
#include <Components.h>
#endif
#ifndef __IMAGECOMPRESSION__
#include <ImageCompression.h>
#endif
/* codec component selectors */
#define codecGetCodecInfo 0x00
#define codecGetCompressionTime 0x01
#define codecGetMaxCompressionSize 0x02
#define codecPreCompress 0x03
#define codecBandCompress 0x04
#define codecPreDecompress 0x05
#define codecBandDecompress 0x06
#define codecCDSequenceBusy 0x07
#define codecGetCompressedImageSize 0x08
#define codecGetSimilarity 0x09
#define codecTrimImage 0x0a
/* codec selectors 0-127 are reserved by Apple */
/* codec selectors 128-191 are subtype specific */
/* codec selectors 192-255 are vendor specific */
/* codec selectors 256-32767 are available for general use */
/* negative selectors are reserved by the Component Manager */
/* codec capabilities flags */
#define codecCanScale (1L<<0)
#define codecCanMask (1L<<1)
#define codecCanMatte (1L<<2)
#define codecCanTransform (1L<<3)
#define codecCanTransferMode (1L<<4)
#define codecCanCopyPrev (1L<<5)
#define codecCanSpool (1L<<6)
#define codecCanClipVertical (1L<<7)
#define codecCanClipRectangular (1L<<8)
#define codecCanRemapColor (1L<<9)
#define codecCanFastDither (1L<<10)
#define codecCanSrcExtract (1L<<11)
#define codecCanCopyPrevComp (1L<<12)
#define codecCanAsync (1L<<13)
#define codecCanMakeMask (1L<<14)
#define codecCanShift (1L<<15)
typedef struct {
long flags;
short wantedPixelSize;
short extendWidth;
short extendHeight;
short bandMin;
short bandInc;
short pad;
unsigned long time;
} CodecCapabilities;
/* codec condition flags */
#define codecConditionFirstBand (1L<<0)
#define codecConditionLastBand (1L<<1)
#define codecConditionFirstFrame (1L<<2)
#define codecConditionNewDepth (1L<<3)
#define codecConditionNewTransform (1L<<4)
#define codecConditionNewSrcRect (1L<<5)
#define codecConditionNewMask (1L<<6)
#define codecConditionNewMatte (1L<<7)
#define codecConditionNewTransferMode (1L<<8)
#define codecConditionNewClut (1L<<9)
#define codecConditionNewAccuracy (1L<<10)
#define codecConditionNewDestination (1L<<11)
#define codecConditionCodecChangedMask (1L<<31)
#define codecInfoResourceType 'cdci' /* codec info resource type */
#define codecInterfaceVersion 1 /* high word returned in component GetVersion */
typedef struct {
ImageSequence sequenceID; /* precompress,bandcompress */
ImageDescriptionHandle imageDescription; /* precompress,bandcompress */
Ptr data;
long bufferSize;
long frameNumber;
long startLine;
long stopLine;
long conditionFlags;
CodecFlags callerFlags;
CodecCapabilities *capabilities; /* precompress,bandcompress */
ProgressProcRecord progressProcRecord;
CompletionProcRecord completionProcRecord;
FlushProcRecord flushProcRecord;
PixMap srcPixMap; /* precompress,bandcompress */
PixMap prevPixMap;
CodecQ spatialQuality;
CodecQ temporalQuality;
Fixed similarity;
DataRateParamsPtr dataRateParams;
long reserved;
} CodecCompressParams;
typedef struct {
ImageSequence sequenceID; /* predecompress,banddecompress */
ImageDescriptionHandle imageDescription; /* predecompress,banddecompress */
Ptr data;
long bufferSize;
long frameNumber;
long startLine;
long stopLine;
long conditionFlags;
CodecFlags callerFlags;
CodecCapabilities *capabilities; /* predecompress,banddecompress */
ProgressProcRecord progressProcRecord;
CompletionProcRecord completionProcRecord;
DataProcRecord dataProcRecord;
CGrafPtr port; /* predecompress,banddecompress */
PixMap dstPixMap; /* predecompress,banddecompress */
BitMapPtr maskBits;
PixMapPtr mattePixMap;
Rect srcRect; /* predecompress,banddecompress */
MatrixRecord *matrix; /* predecompress,banddecompress */
CodecQ accuracy; /* predecompress,banddecompress */
short transferMode; /* predecompress,banddecompress */
long reserved[2];
} CodecDecompressParams;
#define PREAMBLE Handle storage
pascal ComponentResult
CDGetCodecInfo(PREAMBLE,CodecInfo *info)
;
pascal ComponentResult
CDGetCompressionTime(PREAMBLE,PixMapHandle src,Rect *srcRect, short depth,CodecQ *spatialQuality,
CodecQ *temporalQuality,unsigned long *time)
;
pascal ComponentResult
CDGetMaxCompressionSize(PREAMBLE,PixMapHandle src,Rect *srcRect, short depth,CodecQ quality,long *size)
;
pascal ComponentResult
CDPreCompress(PREAMBLE,CodecCompressParams *params)
;
pascal ComponentResult
CDBandCompress(PREAMBLE,CodecCompressParams *params)
;
pascal ComponentResult
CDPreDecompress(PREAMBLE,CodecDecompressParams *params)
;
pascal ComponentResult
CDBandDecompress(PREAMBLE,CodecDecompressParams *params)
;
pascal ComponentResult
CDCodecBusy(PREAMBLE,ImageSequence seq)
;
pascal ComponentResult
CDGetCompressedImageSize(PREAMBLE,ImageDescriptionHandle desc,Ptr data,long bufferSize,
DataProcRecordPtr dataProc,long *dataSize)
;
pascal ComponentResult
CDGetSimilarity(PREAMBLE,PixMapHandle src,Rect *srcRect,ImageDescriptionHandle desc,Ptr data,Fixed *similarity)
;
pascal ComponentResult
CDTrimImage(PREAMBLE,ImageDescriptionHandle Desc,Ptr inData,long inBufferSize, DataProcRecordPtr dataProc,
Ptr outData,long outBufferSize,FlushProcRecordPtr flushProc,Rect *trimRect,ProgressProcRecordPtr progressProc)
;
#endif __IMAGECODEC__

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"670D 092D 6609 0909 0909 0923 2050 6173" /* g..-f......# Pas */
$"4D61 7420 666F 726D 6174 2063 6F6D 7061" /* Mat format compa */
$"0C49 6D61 6765 436F 6465 632E 68E4 0200" /* .ImageCodec.h... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A70B 20D9 0000 0000 0000 01D6 6C20" /* .... .........l */
$"6E09 0909 0909 2320 7072 6F63 6573 7320" /* n.....# process */
$"6F6E 6C79 2074 6F20 6D61 7820 6E65 7374" /* only to max nest */
$"696E 6720 6C65 7665 6C20 6E0D 092D 6D20" /* ing level n..-m */
$"0909 0909 0909 2320 6765 6E65 7261 7465" /* ......# generate */
$"204D 5057 204D 6172 6B20 636F 6D6D 616E" /* MPW Mark comman */
$"6473 2066 6F72 2070 726F 6365 6475 7265" /* ds for procedure */
$"2061 6E64 2066 756E 6374 696F 6E20 6465" /* and function de */
$"636C 6172 6174 696F 6E73 0D09 2D6D 6336" /* clarations..-mc6 */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0064 6563 2E68 0022" /* ..Monaco.dec.h." */
$"0006 0340 0000 436F 0000 0014 0005 FA70" /* ...@..Co.......p */
$"000A 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A78C 88F3 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,748 +0,0 @@
/************************************************************
Created: Wednesday, October 21, 1992 at 2:54 PM
ImageCompression.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1991, 1992
All rights reserved
************************************************************/
#ifndef __IMAGECOMPRESSION__
#define __IMAGECOMPRESSION__
#ifndef __QUICKDRAW__
#include <QuickDraw.h>
#endif
#ifndef __QDOFFSCREEN__
#include <QDOffscreen.h>
#endif
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __COMPONENTS__
#include <Components.h>
#endif
#ifndef __STANDARDFILE__
#include <StandardFile.h>
#endif
#define gestaltCompressionMgr 'icmp'
struct MatrixRecord {
Fixed matrix[3][3];
};
typedef struct MatrixRecord MatrixRecord;
typedef MatrixRecord *MatrixRecordPtr;
typedef struct FixedPoint {
Fixed x;
Fixed y;
} FixedPoint;
typedef struct FixedRect {
Fixed left;
Fixed top;
Fixed right;
Fixed bottom;
} FixedRect;
#define codecInfoDoes1 (1L<<0)
#define codecInfoDoes2 (1L<<1)
#define codecInfoDoes4 (1L<<2)
#define codecInfoDoes8 (1L<<3)
#define codecInfoDoes16 (1L<<4)
#define codecInfoDoes32 (1L<<5)
#define codecInfoDoesDither (1L<<6)
#define codecInfoDoesStretch (1L<<7)
#define codecInfoDoesShrink (1L<<8)
#define codecInfoDoesMask (1L<<9)
#define codecInfoDoesTemporal (1L<<10)
#define codecInfoDoesDouble (1L<<11)
#define codecInfoDoesQuad (1L<<12)
#define codecInfoDoesHalf (1L<<13)
#define codecInfoDoesQuarter (1L<<14)
#define codecInfoDoesRotate (1L<<15)
#define codecInfoDoesHorizFlip (1L<<16)
#define codecInfoDoesVertFlip (1L<<17)
#define codecInfoDoesSkew (1L<<18)
#define codecInfoDoesBlend (1L<<19)
#define codecInfoDoesWarp (1L<<20)
#define codecInfoDoesRecompress (1L<<21)
#define codecInfoDoesSpool (1L<<22)
#define codecInfoDoesRateConstrain (1L<<23)
#define codecInfoDepth1 (1L<<0)
#define codecInfoDepth2 (1L<<1)
#define codecInfoDepth4 (1L<<2)
#define codecInfoDepth8 (1L<<3)
#define codecInfoDepth16 (1L<<4)
#define codecInfoDepth32 (1L<<5)
#define codecInfoDepth24 (1L<<6)
#define codecInfoDepth33 (1L<<7)
#define codecInfoDepth34 (1L<<8)
#define codecInfoDepth36 (1L<<9)
#define codecInfoDepth40 (1L<<10)
#define codecInfoStoresClut (1L<<11)
#define codecInfoDoesLossless (1L<<12)
#define codecInfoSequenceSensitive (1L<<13)
#define codecFlagUseImageBuffer (1L<<0)
#define codecFlagUseScreenBuffer (1L<<1)
#define codecFlagUpdatePrevious (1L<<2)
#define codecFlagNoScreenUpdate (1L<<3)
#define codecFlagWasCompressed (1L<<4)
#define codecFlagDontOffscreen (1L<<5)
#define codecFlagUpdatePreviousComp (1L<<6)
#define codecFlagForceKeyFrame (1L<<7)
#define codecFlagOnlyScreenUpdate (1L<<8)
#define codecFlagLiveGrab (1L<<9)
#define codecFlagDontUseNewImageBuffer (1L<<10)
#define codecFlagInterlaceUpdate (1L<<11)
#define codecFlagUsedNewImageBuffer (1L<<14)
#define codecFlagUsedImageBuffer (1L<<15)
#define codecErr -8960
#define noCodecErr -8961
#define codecUnimpErr -8962
#define codecSizeErr -8963
#define codecScreenBufErr -8964
#define codecImageBufErr -8965
#define codecSpoolErr -8966
#define codecAbortErr -8967
#define codecWouldOffscreenErr -8968
#define codecBadDataErr -8969
#define codecDataVersErr -8970
#define codecExtensionNotFoundErr -8971
#define codecConditionErr -8972
#define codecOpenErr -8973
#define codecMinimumDataSize 32768
#define compressorComponentType 'imco'
#define decompressorComponentType 'imdc'
typedef Component CompressorComponent;
typedef Component DecompressorComponent;
typedef Component CodecComponent;
#define anyCodec ((CodecComponent)0)
#define bestSpeedCodec ((CodecComponent)-1)
#define bestFidelityCodec ((CodecComponent)-2)
#define bestCompressionCodec ((CodecComponent)-3)
typedef long CodecType;
typedef unsigned short CodecFlags;
typedef unsigned long CodecQ;
#define codecLosslessQuality 0x400L
#define codecMaxQuality 0x3ffL
#define codecMinQuality 0x000L
#define codecLowQuality 0x100L
#define codecNormalQuality 0x200L
#define codecHighQuality 0x300L
typedef pascal OSErr (*DataProcPtr)(Ptr *dataP,long bytesNeeded,long refcon);
typedef pascal OSErr (*FlushProcPtr)(Ptr data,long bytesAdded,long refcon);
typedef pascal void (*CompletionProcPtr)(OSErr result,short flags,long refcon);
#define codecCompletionSource (1<<0)
#define codecCompletionDest (1<<1)
typedef pascal OSErr (*ProgressProcPtr)(short message,Fixed completeness,long refcon);
#define codecProgressOpen 0
#define codecProgressUpdatePercent 1
#define codecProgressClose 2
typedef pascal void (*StdPixProcPtr)(PixMap *src,Rect *srcRect,MatrixRecord *matrix,short mode,
RgnHandle mask,PixMap *matte,Rect *matteRect,short flags);
typedef long ImageSequence;
typedef struct {
ProgressProcPtr progressProc;
long progressRefCon;
} ProgressProcRecord;
typedef ProgressProcRecord *ProgressProcRecordPtr;
typedef struct {
CompletionProcPtr completionProc;
long completionRefCon;
} CompletionProcRecord;
typedef CompletionProcRecord *CompletionProcRecordPtr;
typedef struct {
DataProcPtr dataProc;
long dataRefCon;
} DataProcRecord;
typedef DataProcRecord *DataProcRecordPtr;
typedef struct {
FlushProcPtr flushProc;
long flushRefCon;
} FlushProcRecord;
typedef FlushProcRecord *FlushProcRecordPtr;
typedef pascal void (*AlignmentProcPtr)(Rect *rp, long refcon);
typedef struct {
AlignmentProcPtr alignmentProc;
long alignmentRefCon;
} AlignmentProcRecord;
typedef AlignmentProcRecord *AlignmentProcRecordPtr;
typedef struct {
long dataRate;
long dataOverrun;
long frameDuration;
long keyFrameRate;
CodecQ minSpatialQuality;
CodecQ minTemporalQuality;
} DataRateParams;
typedef DataRateParams *DataRateParamsPtr;
typedef struct ImageDescription {
long idSize;
CodecType cType;
long resvd1;
short resvd2;
short dataRefIndex;
short version;
short revisionLevel;
long vendor;
CodecQ temporalQuality;
CodecQ spatialQuality;
short width;
short height;
Fixed hRes;
Fixed vRes;
long dataSize;
short frameCount;
Str31 name;
short depth;
short clutID;
} ImageDescription;
typedef ImageDescription *ImageDescriptionPtr;
typedef ImageDescription **ImageDescriptionHandle;
typedef struct CodecInfo {
Str31 typeName;
short version;
short revisionLevel;
long vendor;
long decompressFlags;
long compressFlags;
long formatFlags;
unsigned char compressionAccuracy;
unsigned char decompressionAccuracy;
unsigned short compressionSpeed;
unsigned short decompressionSpeed;
unsigned char compressionLevel;
char resvd;
short minimumHeight;
short minimumWidth;
short decompressPipelineLatency;
short compressPipelineLatency;
long privateData;
} CodecInfo;
typedef struct {
CodecComponent codec;
CodecType cType;
Str31 typeName;
Handle name;
} CodecNameSpec;
typedef struct {
short count;
CodecNameSpec list[1];
}CodecNameSpecList;
typedef CodecNameSpecList *CodecNameSpecListPtr;
#define defaultDither 0
#define forceDither 1
#define suppressDither 2
#ifdef __cplusplus
extern "C" {
#endif __cplusplus
pascal OSErr
CodecManagerVersion(long *version)
= {0x7000,0xAAA3};
pascal OSErr
GetCodecNameList(CodecNameSpecListPtr *list,short showAll)
= {0x7001,0xAAA3};
pascal OSErr
DisposeCodecNameList(CodecNameSpecListPtr list)
= {0x700F,0xAAA3};
pascal OSErr
GetCodecInfo(CodecInfo *info,CodecType cType,CodecComponent codec)
= {0x7003,0xAAA3};
pascal OSErr
GetMaxCompressionSize(PixMapHandle src,const Rect *srcRect, short colorDepth,CodecQ quality,
CodecType cType,CompressorComponent codec,long *size)
= {0x7004,0xAAA3};
pascal OSErr
GetCompressionTime(PixMapHandle src,const Rect *srcRect, short colorDepth,
CodecType cType,CompressorComponent codec,
CodecQ *spatialQuality,CodecQ *temporalQuality,unsigned long *compressTime)
= {0x7005,0xAAA3};
pascal OSErr
CompressImage(PixMapHandle src,const Rect *srcRect,CodecQ quality,CodecType cType,
ImageDescriptionHandle desc,Ptr data)
= {0x7006,0xAAA3};
pascal OSErr
FCompressImage(PixMapHandle src,const Rect *srcRect, short colorDepth,
CodecQ quality,CodecType cType,CompressorComponent codec,CTabHandle clut,
CodecFlags flags,long bufferSize,
FlushProcRecordPtr flushProc,ProgressProcRecordPtr progressProc, ImageDescriptionHandle desc,Ptr data)
= {0x7007,0xAAA3};
pascal OSErr
DecompressImage(Ptr data,ImageDescriptionHandle desc,PixMapHandle dst,
const Rect *srcRect,const Rect *dstRect,short mode,RgnHandle mask)
= {0x7008,0xAAA3};
pascal OSErr
FDecompressImage(Ptr data,ImageDescriptionHandle desc,PixMapHandle dst,const Rect *srcRect,
MatrixRecordPtr matrix,short mode,RgnHandle mask,
PixMapHandle matte,const Rect *matteRect,
CodecQ accuracy,DecompressorComponent codec,
long bufferSize,DataProcRecordPtr dataProc,ProgressProcRecordPtr progressProc)
= {0x7009,0xAAA3};
pascal OSErr
CompressSequenceBegin(ImageSequence *seqID,PixMapHandle src,PixMapHandle prev,
const Rect *srcRect,const Rect *prevRect,short colorDepth,CodecType cType,CompressorComponent codec,
CodecQ spatialQuality,CodecQ temporalQuality,long keyFrameRate,
CTabHandle clut,CodecFlags flags,ImageDescriptionHandle desc)
= {0x700A,0xAAA3};
pascal OSErr
CompressSequenceFrame(ImageSequence seqID,PixMapHandle src,const Rect *srcRect,
CodecFlags flags,Ptr data,long *dataSize,
unsigned char *similarity,CompletionProcRecordPtr asyncCompletionProc)
= {0x700B,0xAAA3};
pascal OSErr
DecompressSequenceBegin(ImageSequence *seqID,ImageDescriptionHandle desc,
CGrafPtr port,GDHandle gdh,const Rect *srcRect,MatrixRecordPtr matrix,
short mode,RgnHandle mask,CodecFlags flags,CodecQ accuracy,DecompressorComponent codec)
= {0x700D,0xAAA3};
pascal OSErr
DecompressSequenceFrame(ImageSequence seqID,Ptr data,
CodecFlags inFlags,CodecFlags *outFlags,CompletionProcRecordPtr asyncCompletionProc)
= {0x700E,0xAAA3};
pascal OSErr
DecompressSequenceFrameS(ImageSequence seqID,Ptr data,long dataSize,
CodecFlags inFlags,CodecFlags *outFlags,CompletionProcRecordPtr asyncCompletionProc)
= {0x203C,0x16,0x47,0xAAA3};
pascal OSErr
SetDSequenceMatrix(ImageSequence seqID,MatrixRecordPtr matrix)
= {0x7010,0xAAA3};
pascal OSErr
SetDSequenceMatte(ImageSequence seqID,PixMapHandle matte,const Rect *matteRect)
= {0x7011,0xAAA3};
pascal OSErr
SetDSequenceMask(ImageSequence seqID,RgnHandle mask)
= {0x7012,0xAAA3};
pascal OSErr
SetDSequenceTransferMode(ImageSequence seqID,short mode,const RGBColor *opColor)
= {0x7013,0xAAA3};
pascal OSErr
SetDSequenceDataProc(ImageSequence seqID,DataProcRecordPtr dataProc,long bufferSize)
= {0x7014,0xAAA3};
pascal OSErr
SetDSequenceAccuracy(ImageSequence seqID,CodecQ accuracy)
= {0x7034,0xAAA3};
pascal OSErr
SetDSequenceSrcRect(ImageSequence seqID,const Rect *srcRect)
= {0x7035,0xAAA3};
pascal OSErr
GetDSequenceImageBuffer(ImageSequence seqID,GWorldPtr *gworld)
= {0x7015,0xAAA3};
pascal OSErr
GetDSequenceScreenBuffer(ImageSequence seqID,GWorldPtr *gworld)
= {0x7016,0xAAA3};
pascal OSErr
SetCSequenceQuality(ImageSequence seqID,CodecQ spatialQuality,CodecQ temporalQuality)
= {0x7017,0xAAA3};
pascal OSErr
SetCSequencePrev(ImageSequence seqID,PixMapHandle prev,const Rect *prevRect)
= {0x7018,0xAAA3};
pascal OSErr
SetCSequenceFlushProc(ImageSequence seqID,FlushProcRecordPtr flushProc,long bufferSize)
= {0x7033,0xAAA3};
pascal OSErr
SetCSequenceKeyFrameRate(ImageSequence seqID,long keyframerate)
= {0x7036,0xAAA3};
pascal OSErr
GetCSequenceKeyFrameRate(ImageSequence seqID,long *keyframerate)
= {0x203C,0x8,0x4B,0xAAA3};
pascal OSErr
GetCSequencePrevBuffer(ImageSequence seqID,GWorldPtr *gworld)
= {0x7019,0xAAA3};
pascal OSErr
CDSequenceBusy(ImageSequence seqID)
= {0x701A,0xAAA3};
pascal OSErr
CDSequenceEnd(ImageSequence seqID)
= {0x701B,0xAAA3};
pascal OSErr
GetCompressedImageSize(ImageDescriptionHandle desc,Ptr data,long bufferSize,
DataProcRecordPtr dataProc,long *dataSize)
= {0x701C,0xAAA3};
pascal OSErr
GetSimilarity(PixMapHandle src,const Rect *srcRect,ImageDescriptionHandle desc,Ptr data,Fixed *similarity)
= {0x701D,0xAAA3};
pascal OSErr
GetImageDescriptionCTable(ImageDescriptionHandle desc,CTabHandle *ctable)
= {0x701E,0xAAA3};
pascal OSErr
SetImageDescriptionCTable(ImageDescriptionHandle desc,CTabHandle ctable)
= {0x701F,0xAAA3};
pascal OSErr
GetImageDescriptionExtension(ImageDescriptionHandle desc,Handle *extension,long type,long index)
= {0x7020,0xAAA3};
pascal OSErr
SetImageDescriptionExtension(ImageDescriptionHandle desc,Handle extension, long type)
= {0x7021,0xAAA3};
pascal OSErr
RemoveImageDescriptionExtension(ImageDescription **desc, long type, long index)
= {0x203C,0xC,0x3A,0xAAA3};
pascal OSErr
CountImageDescriptionExtensionType(ImageDescription **desc, long type, long *count)
= {0x203C,0xC,0x3B,0xAAA3};
pascal OSErr
GetNextImageDescriptionExtensionType(ImageDescription **desc, long *type)
= {0x203C,0x8,0x3C,0xAAA3};
pascal OSErr
FindCodec(CodecType cType,CodecComponent specCodec,
CompressorComponent *compressor,DecompressorComponent *decompressor)
= {0x7023,0xAAA3};
pascal OSErr
CompressPicture(PicHandle srcPicture, PicHandle dstPicture,CodecQ quality,CodecType cType)
= {0x7024,0xAAA3};
pascal OSErr
FCompressPicture(PicHandle srcPicture, PicHandle dstPicture,
short colorDepth, CTabHandle clut,CodecQ quality,
short doDither,short compressAgain,ProgressProcRecordPtr progressProc,
CodecType cType,CompressorComponent codec)
= {0x7025,0xAAA3};
pascal OSErr
CompressPictureFile(short srcRefNum, short dstRefNum,CodecQ quality,CodecType cType)
= {0x7026,0xAAA3};
pascal OSErr
FCompressPictureFile(short srcRefNum, short dstRefNum,short colorDepth, CTabHandle clut,
CodecQ quality, short doDither,short compressAgain,ProgressProcRecordPtr progressProc,
CodecType cType,CompressorComponent codec)
= {0x7027,0xAAA3};
pascal OSErr
GetPictureFileHeader(short refNum,Rect *frame,OpenCPicParams *header)
= {0x7028,0xAAA3};
pascal OSErr
DrawPictureFile(short refNum,const Rect *frame,ProgressProcRecordPtr progressProc)
= {0x7029,0xAAA3};
pascal OSErr
DrawTrimmedPicture(PicHandle srcPicture,const Rect *frame,RgnHandle trimMask,short doDither,
ProgressProcRecordPtr progressProc)
= {0x702E,0xAAA3};
pascal OSErr
DrawTrimmedPictureFile(short srcRefnum,const Rect *frame,RgnHandle trimMask,short doDither,
ProgressProcRecordPtr progressProc)
= {0x702F,0xAAA3};
pascal OSErr
MakeThumbnailFromPicture(PicHandle picture,short colorDepth,PicHandle thumbnail,
ProgressProcRecordPtr progressProc)
= {0x702A,0xAAA3};
pascal OSErr
MakeThumbnailFromPictureFile(short refNum,short colorDepth,PicHandle thumbnail,
ProgressProcRecordPtr progressProc)
= {0x702B,0xAAA3};
pascal OSErr
MakeThumbnailFromPixMap(PixMapHandle src,const Rect *srcRect,short colorDepth,PicHandle thumbnail,
ProgressProcRecordPtr progressProc)
= {0x702C,0xAAA3};
pascal OSErr
TrimImage(ImageDescriptionHandle desc,Ptr inData,long inBufferSize,DataProcRecordPtr dataProc,
Ptr outData,long outBufferSize,FlushProcRecordPtr flushProc,Rect *trimRect,
ProgressProcRecordPtr progressProc)
= {0x702D,0xAAA3};
pascal OSErr
ConvertImage(ImageDescriptionHandle srcDD,Ptr srcData,short colorDepth,CTabHandle clut,
CodecQ accuracy,CodecQ quality,CodecType cType,CodecComponent codec,
ImageDescriptionHandle dstDD,Ptr dstData)
= {0x7030,0xAAA3};
pascal OSErr
GetCompressedPixMapInfo(PixMapPtr pix,ImageDescriptionHandle *desc,Ptr *data,long *bufferSize,
DataProcRecord *dataProc,ProgressProcRecord *progressProc)
= {0x7037,0xAAA3};
pascal OSErr
SetCompressedPixMapInfo(PixMapPtr pix,ImageDescriptionHandle desc,Ptr data,long bufferSize,
DataProcRecordPtr dataProc,ProgressProcRecordPtr progressProc)
= {0x7038,0xAAA3};
pascal void
StdPix(PixMapPtr src,const Rect *srcRect,MatrixRecordPtr matrix,short mode,
RgnHandle mask,PixMapPtr matte,const Rect *matteRect,short flags)
= {0x700C,0xAAA3};
pascal OSErr
TransformRgn(MatrixRecordPtr matrix, RgnHandle rgn)
= {0x7039,0xAAA3};
/***********
preview stuff
***********/
pascal void SFGetFilePreview(Point where,
ConstStr255Param prompt,
FileFilterProcPtr fileFilter,
short numTypes,
SFTypeList typeList,
DlgHookProcPtr dlgHook,
SFReply *reply)
= {0x303C,0x41,0xAAA3};
pascal void SFPGetFilePreview(Point where,
ConstStr255Param prompt,
FileFilterProcPtr fileFilter,
short numTypes,
SFTypeList typeList,
DlgHookProcPtr dlgHook,
SFReply *reply,
short dlgID,
ModalFilterProcPtr filterProc)
= {0x303C,0x42,0xAAA3};
pascal void StandardGetFilePreview(FileFilterProcPtr fileFilter,
short numTypes,
SFTypeList typeList,
StandardFileReply *reply)
= {0x303C,0x43,0xAAA3};
pascal void CustomGetFilePreview(FileFilterYDProcPtr fileFilter,
short numTypes,
SFTypeList typeList,
StandardFileReply *reply,
short dlgID,
Point where,
DlgHookYDProcPtr dlgHook,
ModalFilterYDProcPtr filterProc,
short *activeList,
ActivateYDProcPtr activateProc,
void *yourDataPtr)
= {0x303C,0x44,0xAAA3};
pascal OSErr MakeFilePreview(short resRefNum, ProgressProcRecordPtr progress)
= {0x303C,0x45,0xAAA3};
pascal OSErr AddFilePreview(short resRefNum, OSType previewType, Handle previewData)
= {0x303C,0x46,0xAAA3};
#ifdef __cplusplus
}
#endif __cplusplus
enum {
sfpItemPreviewAreaUser = 11,
sfpItemPreviewStaticText = 12,
sfpItemPreviewDividerUser = 13,
sfpItemCreatePreviewButton = 14,
sfpItemShowPreviewButton = 15
};
typedef struct {
unsigned long modDate;
short version;
OSType resType;
short resID;
} PreviewResourceRecord;
typedef PreviewResourceRecord *PreviewResourcePtr, **PreviewResource;
#ifdef __cplusplus
extern "C" {
#endif __cplusplus
pascal void
AlignScreenRect(Rect *rp, AlignmentProcRecordPtr alignmentProc)
= {0x203C,0x8,0x4C,0xAAA3};
pascal void
AlignWindow(WindowPtr wp, Boolean front, const Rect *alignmentRect, AlignmentProcRecordPtr alignmentProc)
= {0x203C,0xE,0x4D,0xAAA3};
pascal void
DragAlignedWindow(WindowPtr wp, Point startPt, Rect *boundsRect, Rect *alignmentRect, AlignmentProcRecordPtr alignmentProc)
= {0x203C,0x14,0x4E,0xAAA3};
pascal long
DragAlignedGrayRgn(RgnHandle theRgn, Point startPt, Rect *boundsRect,
Rect *slopRect, short axis, ProcPtr actionProc, Rect *alignmentRect, AlignmentProcRecordPtr alignmentProc)
= {0x203C,0x1E,0x4F,0xAAA3};
pascal OSErr
SetCSequenceDataRateParams(ImageSequence seqID,DataRateParamsPtr params)
= {0x203C,0x8,0x50,0xAAA3};
pascal OSErr
SetCSequenceFrameNumber(ImageSequence seqID, long frameNumber)
= {0x203C,0x8,0x51,0xAAA3};
pascal QDErr
NewImageGWorld(GWorldPtr *gworld,ImageDescription **idh,GWorldFlags flags)
= {0x203C,0xC,0x52,0xAAA3};
pascal OSErr
GetCSequenceDataRateParams(ImageSequence seqID,DataRateParamsPtr params)
= {0x203C,0x8,0x53,0xAAA3};
pascal OSErr
GetCSequenceFrameNumber(ImageSequence seqID,long *frameNumber)
= {0x203C,0x8,0x54,0xAAA3};
pascal OSErr
GetBestDeviceRect(GDHandle *gdh, Rect *rp)
= {0x203C,0x8,0x55,0xAAA3};
#ifdef __cplusplus
}
#endif __cplusplus
enum {
identityMatrixType = 0x00, /* result if matrix is identity */
translateMatrixType = 0x01, /* result if matrix translates */
scaleMatrixType = 0x02, /* result if matrix scales */
scaleTranslateMatrixType = 0x03, /* result if matrix scales and translates */
linearMatrixType = 0x04, /* result if matrix is general 2 x 2 */
linearTranslateMatrixType = 0x05, /* result if matrix is general 2 x 2 and translates */
perspectiveMatrixType = 0x06 /* result if matrix is general 3 x 3 */
};
typedef unsigned short MatrixFlags;
#ifdef __cplusplus
extern "C" {
#endif __cplusplus
pascal short GetMatrixType(MatrixRecord *m)
= {0x7014,0xABC2};
pascal void CopyMatrix(MatrixRecord *m1, MatrixRecord *m2)
= {0x7020,0xABC2};
pascal Boolean EqualMatrix(const MatrixRecord *m1, const MatrixRecord *m2)
= {0x7021,0xABC2};
pascal void SetIdentityMatrix( MatrixRecord *matrix )
= {0x7015,0xABC2};
pascal void TranslateMatrix( MatrixRecord *m, Fixed deltaH, Fixed deltaV )
= {0x7019,0xABC2};
pascal void RotateMatrix( MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY )
= {0x7016,0xABC2};
pascal void ScaleMatrix( MatrixRecord *m, Fixed scaleX, Fixed scaleY, Fixed aboutX, Fixed aboutY )
= {0x7017,0xABC2};
pascal void SkewMatrix(MatrixRecord *m, Fixed skewX, Fixed skewY, Fixed aboutX, Fixed aboutY)
= {0x7018,0xABC2};
pascal OSErr TransformFixedPoints(MatrixRecord *m, FixedPoint *fpt, long count)
= {0x7022,0xABC2};
pascal OSErr TransformPoints( MatrixRecord *mp, Point *pt1, long count )
= {0x7023,0xABC2};
pascal Boolean TransformFixedRect(MatrixRecord *m, FixedRect *fr, FixedPoint *fpp)
= {0x7024,0xABC2};
pascal Boolean TransformRect(MatrixRecord *m, Rect *r, FixedPoint *fpp)
= {0x7025,0xABC2};
pascal Boolean InverseMatrix(MatrixRecord *m, MatrixRecord *im)
= {0x701C,0xABC2};
pascal void ConcatMatrix(MatrixRecord *a, MatrixRecord *b)
= {0x701B,0xABC2};
pascal void RectMatrix(MatrixRecord *matrix,Rect *srcRect,Rect *dstRect)
= {0x701E,0xABC2};
pascal void MapMatrix(MatrixRecord *matrix,Rect *fromRect,Rect *toRect)
= {0x701D,0xABC2};
#ifdef __cplusplus
}
#endif __cplusplus
#endif __IMAGECOMPRESSION__

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2073 7065 6369 6669 6564 2077 696E 646F" /* specified windo */
$"7773 0D53 6176 6520 5B2D 6120 7C20 7769" /* ws.Save [-a | wi */
$"1249 6D61 6765 436F 6D70 7265 7373 696F" /* .ImageCompressio */
$"6E2E 6865 0200 0000 5445 5854 4D50 5320" /* n.he....TEXTMPS */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A70B 20D5 0000 0000 0000 01D6 6265" /* .... .........be */
$"6861 7669 6F72 2077 6865 6E20 636C 6F73" /* havior when clos */
$"696E 6720 7769 6E64 6F77 730D 5361 7665" /* ing windows.Save */
$"4F6E 436C 6F73 6520 5B2D 6120 7C20 2D64" /* OnClose [-a | -d */
$"207C 202D 6E5D 205B 7769 6E64 6F77 C95D" /* | -n] [window.] */
$"0D09 2D61 0909 0909 0909 2320 616C 7761" /* ..-a......# alwa */
$"7973 2073 6176 6520 7570 6F6E 2063 6C6F" /* ys save upon clo */
$"7365 2028 2243 6C6F 7365 202D 7922 290D" /* se ("Close -y"). */
$"092D 6409 0909 0909 0923 2064 6566 6175" /* .-d......# defau */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006D 7072 6573 7369" /* ..Monaco.mpressi */
$"6F6E 2E68 0022 0063 6F64 6563 496E 666F" /* on.h.".codecInfo */
$"4465 0006 0004 0031 000A 015D 01E0 0031" /* De.....1...]...1 */
$"000A 015D 01E0 A78C 88F8 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,153 +0,0 @@
/************************************************************
Created: Tuesday, September 17, 1991 at 1:29 PM
Language.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1986-1991
All rights reserved
************************************************************/
#ifndef __LANGUAGE__
#define __LANGUAGE__
enum {
/* Language Codes */
langEnglish = 0, /* smRoman script */
langFrench = 1, /* smRoman script */
langGerman = 2, /* smRoman script */
langItalian = 3, /* smRoman script */
langDutch = 4, /* smRoman script */
langSwedish = 5, /* smRoman script */
langSpanish = 6, /* smRoman script */
langDanish = 7, /* smRoman script */
langPortuguese = 8, /* smRoman script */
langNorwegian = 9, /* smRoman script */
langHebrew = 10, /* smHebrew script */
langJapanese = 11, /* smJapanese script */
langArabic = 12, /* smArabic script */
langFinnish = 13, /* smRoman script */
langGreek = 14, /* smGreek script */
langIcelandic = 15, /* extended Roman script */
langMaltese = 16, /* extended Roman script */
langTurkish = 17, /* extended Roman script */
langCroatian = 18, /* Serbo-Croatian in extended Roman script */
langTradChinese = 19 /* Chinese in traditional characters */
};
enum {
langUrdu = 20, /* smArabic script */
langHindi = 21, /* smDevanagari script */
langThai = 22, /* smThai script */
langKorean = 23, /* smKorean script */
langLithuanian = 24, /* smEastEurRoman script */
langPolish = 25, /* smEastEurRoman script */
langHungarian = 26, /* smEastEurRoman script */
langEstonian = 27, /* smEastEurRoman script */
langLettish = 28, /* smEastEurRoman script */
langLatvian = 28, /* Synonym for langLettish */
langLapponian = 29, /* extended Roman script */
langLappish = 29, /* Synonym for langLapponian */
langFaeroese = 30, /* smRoman script */
langFarsi = 31, /* smArabic script */
langPersian = 31, /* Synonym for langFarsi */
langRussian = 32, /* smCyrillic script */
langSimpChinese = 33, /* Chinese in simplified characters */
langFlemish = 34, /* smRoman script */
langIrish = 35, /* smRoman script */
langAlbanian = 36 /* smRoman script */
};
enum {
langRomanian = 37, /* smEastEurRoman script */
langCzech = 38, /* smEastEurRoman script */
langSlovak = 39, /* smEastEurRoman script */
langSlovenian = 40, /* smEastEurRoman script */
langYiddish = 41, /* smHebrew script */
langSerbian = 42, /* Serbo-Croatian in smCyrillic script */
langMacedonian = 43, /* smCyrillic script */
langBulgarian = 44, /* smCyrillic script */
langUkrainian = 45, /* smCyrillic script */
langByelorussian = 46, /* smCyrillic script */
langUzbek = 47, /* smCyrillic script */
langKazakh = 48, /* smCyrillic script */
langAzerbaijani = 49, /* Azerbaijani in smCyrillic script (USSR) */
langAzerbaijanAr = 50, /* Azerbaijani in smArabic script (Iran) */
langArmenian = 51, /* smArmenian script */
langGeorgian = 52, /* smGeorgian script */
langMoldavian = 53, /* smCyrillic script */
langKirghiz = 54, /* smCyrillic script */
langTajiki = 55, /* smCyrillic script */
langTurkmen = 56 /* smCyrillic script */
};
enum {
langMongolian = 57, /* Mongolian in smMongolian script */
langMongolianCyr = 58, /* Mongolian in smCyrillic script */
langPashto = 59, /* smArabic script */
langKurdish = 60, /* smArabic script */
langKashmiri = 61, /* smArabic script */
langSindhi = 62, /* smExtArabic script */
langTibetan = 63, /* smTibetan script */
langNepali = 64, /* smDevanagari script */
langSanskrit = 65, /* smDevanagari script */
langMarathi = 66, /* smDevanagari script */
langBengali = 67, /* smBengali script */
langAssamese = 68, /* smBengali script */
langGujarati = 69, /* smGujarati script */
langPunjabi = 70, /* smGurmukhi script */
langOriya = 71, /* smOriya script */
langMalayalam = 72, /* smMalayalam script */
langKannada = 73, /* smKannada script */
langTamil = 74, /* smTamil script */
langTelugu = 75, /* smTelugu script */
langSinhalese = 76 /* smSinhalese script */
};
enum {
langBurmese = 77, /* smBurmese script */
langKhmer = 78, /* smKhmer script */
langLao = 79, /* smLaotian script */
langVietnamese = 80, /* smVietnamese script */
langIndonesian = 81, /* smRoman script */
langTagalog = 82, /* smRoman script */
langMalayRoman = 83, /* Malay in smRoman script */
langMalayArabic = 84, /* Malay in smArabic script */
langAmharic = 85, /* smEthiopic script */
langTigrinya = 86, /* smEthiopic script */
langGalla = 87, /* smEthiopic script */
langOromo = 87, /* Synonym for langGalla */
langSomali = 88, /* smRoman script */
langSwahili = 89, /* smRoman script */
langRuanda = 90, /* smRoman script */
langRundi = 91, /* smRoman script */
langChewa = 92, /* smRoman script */
langMalagasy = 93, /* smRoman script */
langEsperanto = 94, /* extended Roman script */
langWelsh = 128 /* smRoman script */
};
enum {
langBasque = 129, /* smRoman script */
langCatalan = 130, /* smRoman script */
langLatin = 131, /* smRoman script */
langQuechua = 132, /* smRoman script */
langGuarani = 133, /* smRoman script */
langAymara = 134, /* smRoman script */
langTatar = 135, /* smCyrillic script */
langUighur = 136, /* smArabic script */
langDzongkha = 137, /* (lang of Bhutan) smTibetan script */
langJavaneseRom = 138, /* Javanese in smRoman script */
langSundaneseRom = 139, /* Sundanese in smRoman script */
/* Obsolete names, kept for backward compatibility */
langPortugese = 8, /* old misspelled version, kept for compatibility */
langMalta = 16, /* old misspelled version, kept for compatibility */
langYugoslavian = 18, /* (use langCroatian, langSerbian, etc.) */
langChinese = 19 /* (use langTradChinese or langSimpChinese) */
};
#endif

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A" /* **************** */
$"2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A 2A2A" /* **************** */
$"0A4C 616E 6775 6167 652E 6800 0200 0000" /* .Language.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 5F5F" /* ...d..........__ */
$"0D0D 2369 666E 6465 6620 5F5F 5155 4943" /* ..#ifndef __QUIC */
$"4B44 5241 575F 5F0D 2369 6E63 6C75 6465" /* KDRAW__.#include */
$"203C 5175 6963 6B44 7261 772E 683E 0D23" /* <QuickDraw.h>.# */
$"656E 6469 660D 0D23 6966 6E64 6566 205F" /* endif..#ifndef _ */
$"5F51 444F 4646 5343 5245 454E 5F5F 0D23" /* _QDOFFSCREEN__.# */
$"696E 636C 7564 6520 3C51 444F 6666 7363" /* include <QDOffsc */
$"7265 656E 2E68 3E0D 2365 6E64 6966 0D0D" /* reen.h>.#endif.. */
$"2369 666E 6465 6620 5F5F 5459 5045 535F" /* #ifndef __TYPES_ */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4C61 6E67 7561 6765 2E68 000A 7FFF 01EC" /* Language.h...... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"0954 6865 206E 756D 6265 7273 2061 7265" /* .The numbers are */
$"206C 6973 7465 6420 696E 2049 6E73 6964" /* listed in Insid */
$"084C 696D 6974 732E 6800 0200 0000 5445" /* .Limits.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 2035" /* .............. 5 */
$"3132 4B20 4D61 6369 6E74 6F73 6809 0934" /* 12K Macintosh..4 */
$"3020 6669 6C65 730D 202A 0931 3238 4B20" /* 0 files. *.128K */
$"524F 4D09 0909 0909 3430 2066 696C 6573" /* ROM.....40 files */
$"2070 6572 2076 6F6C 756D 650D 202A 2F0D" /* per volume. *.. */
$"0D23 6465 6669 6E65 2046 4F50 454E 5F4D" /* .#define FOPEN_M */
$"4158 0931 320D 0D0D 2F2A 0D20 2A09 4D61" /* AX.12.../*. *.Ma */
$"7869 6D75 6D20 6C65 6E67 7468 206F 6620" /* ximum length of */
$"6120 6669 6C65 206E 616D 652C 2069 6E63" /* a file name, inc */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4C69 6D69 7473 2E68 002C 001E 0000 0030" /* Limits.h.,.....0 */
$"0188 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 7C00 01FF FF00 0000 8C00 2B36" /* n.+6|.........+6 */
$"1420 2020 2020 2020 2020 2020 2020 2020" /* . */
$"074C 6973 7473 2E68 0200 0000 5445 5854" /* .Lists.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0120" /* MPS ........... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 536F" /* ...1.@........So */
$"756E 6448 6561 6465 7220 3D20 5041 434B" /* undHeader = PACK */
$"4544 2052 4543 4F52 440D 2020 2020 7361" /* ED RECORD. sa */
$"6D70 6C65 5074 723A 2050 7472 3B20 2020" /* mplePtr: Ptr; */
$"2020 2020 2020 2020 2020 2020 2020 2020" /* */
$"2020 2020 2020 2020 2020 7B20 6966 204E" /* { if N */
$"494C 2074 6865 6E20 7361 6D70 6C65 7320" /* IL then samples */
$"6172 6520 696E 2073 616D 706C 6541 7265" /* are in sampleAre */
$"6120 7D0D 2020 2020 6C65 6E67 7468 3A20" /* a }. length: */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0058 0005 FA0C" /* ..Monaco...X.... */
$"0049 65EC 0000 0000 0000 0013 0000 011D" /* .Ie............. */
$"01C7 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"732E 0D20 2A2F 0D0D 2364 6566 696E 6520" /* s.. *...#define */
$"7374 6469 6E09 0928 265F 696F 625B 305D" /* stdin..(&_iob[0] */
$"084C 6F63 616C 652E 6800 0200 0000 5445" /* .Locale.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 7874" /* ..............xt */
$"6572 6E20 2243 2220 7B0D 2365 6E64 6966" /* ern "C" {.#endif */
$"0D0D 2F2A 0D20 2A09 4F70 6572 6174 696F" /* ../*. *.Operatio */
$"6E73 206F 6E20 6669 6C65 730D 202A 2F0D" /* ns on files. *.. */
$"0D69 6E74 2072 656D 6F76 6528 636F 6E73" /* .int remove(cons */
$"7420 6368 6172 202A 6669 6C65 6E61 6D65" /* t char *filename */
$"293B 0D69 6E74 2072 656E 616D 6528 636F" /* );.int rename(co */
$"6E73 7420 6368 6172 202A 6F6C 646E 616D" /* nst char *oldnam */
$"652C 2063 6F6E 7374 2063 6861 7220 2A6E" /* e, const char *n */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 352D 3933" /* , Inc. 1985-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0014 0005 FA10" /* ..Monaco........ */
$"000A 8001 8001 7FFF 7FFF 001E 8200 0014" /* ................ */
$"0005 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6974 656D 0000 159D 0000 15BE 0A6D 656E" /* item.........men */
$"7573 656C 6563 7400 0015 BF00 0015 FA07" /* uselect......... */
$"064D 4944 492E 68DA 0200 0000 5445 5854" /* .MIDI.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0126" /* MPS ...........& */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 002B" /* ...1.@.........+ */
$"3680 0874 0000 001C 0046 0001 4D50 5352" /* 6..t.....F..MPSR */
$"0000 0012 7665 7273 0000 001E 03EF FFFF" /* ....vers........ */
$"0000 0000 002B 3664 0001 FFFF 0000 0537" /* .....+6d.......7 */
$"002B 3614 5553 482E 4C09 4135 0D09 0950" /* .+6.USH.L.A5...P */
$"5553 482E 5709 2364 636D 6449 6E69 740D" /* USH.W.#dcmdInit. */
$"0909 4A53 5209 4361 6C6C 4375 7244 636D" /* ..JSR.CallCurDcm */
$"640D 0909 504F 502E 4C09 4135 0D0D 3B20" /* d...POP.L.A5..; */
$"4672 6565 2074 6865 2068 6561 7020 7370" /* Free the heap sp */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00F6 2239 0017 0000" /* ..Monaco.."9.... */
$"0000 0000 0197 0049 6B98 004D 49AC 004D" /* .......Ik..MI..M */
$"480C 0006 0004 0031 000A 015D 01E0 0031" /* H......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 6400 01FF FF00 0000 8C00 2B36" /* n.+6d.........+6 */
$"1020 2020 2020 2020 2020 2020 2020 2020" /* . */
$"064D 6174 682E 68DA 0200 0000 5445 5854" /* .Math.h.....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0122" /* MPS ..........." */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A664 D9C0 0000 0000 0000 021B 3245" /* ...d..........2E */
$"3332 2036 3233 3220 3633 3331 2030 4234" /* 32 6232 6331 0B4 */
$"4422 2020 2020 2020 2020 2020 2020 2F2A" /* D" /* */
$"202E 2060 2E2E 2E2E 332E 3262 3263 312E" /* . `....3.2b2c1. */
$"4D20 2A2F 0D09 2422 3530 3537 2032 3033" /* M *...$"5057 203 */
$"3320 3245 3332 2036 3233 3220 3633 3331" /* 3 2E32 6232 6331 */
$"2220 2020 2020 2020 2020 2020 2020 2020" /* " */
$"2020 2020 2020 2020 2020 2020 2F2A 2050" /* /* P */
$"5720 332E 3262 3263 3120 2A2F 0D7D 3B0D" /* W 3.2b2c1 *..};. */
};
#endif
data 'vers' (1) {
$"0321 8000 0000 0533 2E32 2E31 2833 2E32" /* .!.....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3932 2E" /* 1992. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FB94 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A664 D9C0 0000 0000 0000" /* ...]...d........ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,153 +0,0 @@
/************************************************************
Created: Tuesday, October 13, 1992
MediaHandlers.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1992
All rights reserved
************************************************************/
#ifndef __MEDIAHANDLERS__
#define __MEDIAHANDLERS__
#include <Movies.h>
enum {
handlerHasSpatial = 1<<0,
handlerCanClip = 1<<1,
handlerCanMatte = 1<<2,
handlerCanTransferMode = 1<<3,
handlerNeedsBuffer = 1<<4,
handlerNoIdle = 1<<5,
handlerNoScheduler = 1<<6,
handlerWantsTime = 1<<7,
handlerCGrafPortOnly = 1<<8
};
enum {
mMustDraw = 1<<3,
mAtEnd = 1<<4,
mPreflightDraw = 1<<5
};
enum {
mDidDraw = 1<<0,
mNeedsToDraw = 1<<2
};
typedef struct {
short version;
Movie theMovie;
Track theTrack;
Media theMedia;
TimeScale movieScale;
TimeScale mediaScale;
TimeValue movieDuration;
TimeValue trackDuration;
TimeValue mediaDuration;
Fixed effectiveRate;
TimeBase timeBase;
short volume;
Fixed width;
Fixed height;
MatrixRecord trackMovieMatrix;
CGrafPtr moviePort;
GDHandle movieGD;
PixMapHandle trackMatte;
} GetMovieCompleteParams;
enum {
kMediaInitializeSelect = 0x501,
kMediaSetHandlerCapabilitiesSelect = 0x502,
kMediaIdleSelect = 0x503,
kMediaGetMediaInfoSelect = 0x504,
kMediaPutMediaInfoSelect = 0x505,
kMediaSetActiveSelect = 0x506,
kMediaSetRateSelect = 0x507,
kMediaGGetStatusSelect = 0x508,
kMediaTrackEditedSelect = 0x509,
kMediaSetMediaTimeScaleSelect = 0x50A,
kMediaSetMovieTimeScaleSelect = 0x50B,
kMediaSetGWorldSelect = 0x50C,
kMediaSetDimensionsSelect = 0x50D,
kMediaSetClipSelect = 0x50E,
kMediaSetMatrixSelect = 0x50F,
kMediaGetTrackOpaqueSelect = 0x510,
kMediaSetGraphicsModeSelect = 0x511,
kMediaGetGraphicsModeSelect = 0x512,
kMediaGSetVolumeSelect = 0x513,
kMediaSetSoundBalanceSelect = 0x514,
kMediaGetSoundBalanceSelect = 0x515,
kMediaGetNextBoundsChangeSelect = 0x516,
kMediaGetSrcRgnSelect = 0x517,
kMediaPrerollSelect = 0x518,
kMediaSampleDescriptionChangedSelect = 0x519,
kMediaHasCharacteristic = 0x51A
};
#ifdef __cplusplus
extern "C" {
#endif __cplusplus
pascal ComponentResult MediaInitialize (ComponentInstance ci, GetMovieCompleteParams *gmc)
= {0x2F3C,0x4,0x501,0x7000,0xA82A};
pascal ComponentResult MediaSetHandlerCapabilities (ComponentInstance ci, long flags, long flagsMask )
= {0x2F3C,0x8,0x502,0x7000,0xA82A};
pascal ComponentResult MediaIdle (ComponentInstance ci, TimeValue atMediaTime, long flagsIn, long *flagsOut, const TimeRecord *movieTime)
= {0x2F3C,0x10,0x503,0x7000,0xA82A};
pascal ComponentResult MediaGetMediaInfo (ComponentInstance ci, Handle h )
= {0x2F3C,0x4,0x504,0x7000,0xA82A};
pascal ComponentResult MediaPutMediaInfo (ComponentInstance ci, Handle h )
= {0x2F3C,0x4,0x505,0x7000,0xA82A};
pascal ComponentResult MediaSetActive (ComponentInstance ci, Boolean enableMedia )
= {0x2F3C,0x2,0x506,0x7000,0xA82A};
pascal ComponentResult MediaSetRate (ComponentInstance ci, Fixed rate )
= {0x2F3C,0x4,0x507,0x7000,0xA82A};
pascal ComponentResult MediaGGetStatus (ComponentInstance ci, ComponentResult *statusErr )
= {0x2F3C,0x4,0x508,0x7000,0xA82A};
pascal ComponentResult MediaTrackEdited (ComponentInstance ci )
= {0x2F3C,0x0,0x509,0x7000,0xA82A};
pascal ComponentResult MediaSetMediaTimeScale (ComponentInstance ci, TimeScale newTimeScale )
= {0x2F3C,0x4,0x50A,0x7000,0xA82A};
pascal ComponentResult MediaSetMovieTimeScale (ComponentInstance ci, TimeScale newTimeScale )
= {0x2F3C,0x4,0x50B,0x7000,0xA82A};
pascal ComponentResult MediaSetGWorld (ComponentInstance ci, CGrafPtr aPort, GDHandle aGD)
= {0x2F3C,0x8,0x50C,0x7000,0xA82A};
pascal ComponentResult MediaSetDimensions (ComponentInstance ci, Fixed width, Fixed height)
= {0x2F3C,0x8,0x50D,0x7000,0xA82A};
pascal ComponentResult MediaSetClip (ComponentInstance ci, RgnHandle theClip)
= {0x2F3C,0x4,0x50E,0x7000,0xA82A};
pascal ComponentResult MediaSetMatrix (ComponentInstance ci, MatrixRecord *trackMovieMatrix)
= {0x2F3C,0x4,0x50F,0x7000,0xA82A};
pascal ComponentResult MediaGetTrackOpaque (ComponentInstance ci, Boolean *trackIsOpaque )
= {0x2F3C,0x4,0x510,0x7000,0xA82A};
pascal ComponentResult MediaSetGraphicsMode (ComponentInstance ci, long mode, RGBColor *opColor )
= {0x2F3C,0x8,0x511,0x7000,0xA82A};
pascal ComponentResult MediaGetGraphicsMode (ComponentInstance ci, long *mode, RGBColor *opColor )
= {0x2F3C,0x8,0x512,0x7000,0xA82A};
pascal ComponentResult MediaGSetVolume (ComponentInstance ci, short volume )
= {0x2F3C,0x2,0x513,0x7000,0xA82A};
pascal ComponentResult MediaSetSoundBalance (ComponentInstance ci, short balance)
= {0x2F3C,0x2,0x514,0x7000,0xA82A};
pascal ComponentResult MediaGetSoundBalance (ComponentInstance ci, short *balance )
= {0x2F3C,0x4,0x515,0x7000,0xA82A};
pascal ComponentResult MediaGetNextBoundsChange (ComponentInstance ci, TimeValue *when )
= {0x2F3C,0x4,0x516,0x7000,0xA82A};
pascal ComponentResult MediaGetSrcRgn (ComponentInstance ci, RgnHandle rgn, TimeValue atMediaTime )
= {0x2F3C,0x8,0x517,0x7000,0xA82A};
pascal ComponentResult MediaPreroll (ComponentInstance ci, TimeValue time, Fixed rate )
= {0x2F3C,0x8,0x518,0x7000,0xA82A};
pascal ComponentResult MediaSampleDescriptionChanged (ComponentInstance ci, long index )
= {0x2F3C,0x4,0x519,0x7000,0xA82A};
pascal ComponentResult MediaHasCharacteristic (ComponentInstance ci, OSType characteristic, Boolean *hasIt )
= {0x2F3C,0x8,0x51A,0x7000,0xA82A};
#ifdef __cplusplus
}
#endif __cplusplus
#endif __MEDIAHANDLERS__

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"2020 2020 2020 2020 2020 2020 2045 5155" /* EQU */
$"2020 2020 2031 320D 6170 7032 4576 7420" /* 12.app2Evt */
$"0F4D 6564 6961 4861 6E64 6C65 7273 2E68" /* .MediaHandlers.h */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A6D5 7389 0000 0000 0000 01D6 5155" /* ....s.........QU */
$"2020 2020 2031 350D 6E65 7477 6F72 6B4D" /* 15.networkM */
$"6173 6B20 2020 2020 2020 2020 2045 5155" /* ask EQU */
$"2020 2020 2031 3032 340D 6472 6976 6572" /* 1024.driver */
$"4D61 736B 2020 2020 2020 2020 2020 2045" /* Mask E */
$"5155 2020 2020 2032 3034 380D 6170 7031" /* QU 2048.app1 */
$"4D61 736B 2020 2020 2020 2020 2020 2020" /* Mask */
$"2045 5155 2020 2020 2034 3039 360D 6170" /* EQU 4096.ap */
$"7032 4D61 736B 2020 2020 2020 2020 2020" /* p2Mask */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 006E 646C 6572 732E" /* ..Monaco.ndlers. */
$"6800 2200 4AB0 004D 4850 6974 8200 0014" /* h.".J..MHPit.... */
$"0005 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A78C 88FA 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6E00 2B36 7C00 01FF FF00 0000 8C00 2B37" /* n.+6|.........+7 */
$"4420 2020 2020 2020 2020 2020 2020 2020" /* D */
$"084D 656D 6F72 792E 6800 0200 0000 5445" /* .Memory.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 3245" /* ...1.@........2E */
$"3332 2036 3233 3220 3633 3331 2030 4234" /* 32 6232 6331 0B4 */
$"4422 2020 2020 2020 2020 2020 2020 2F2A" /* D" /* */
$"202E 2060 2E2E 2E2E 332E 3262 3263 312E" /* . `....3.2b2c1. */
$"4D20 2A2F 0D09 2422 3530 3537 2032 3033" /* M *...$"5057 203 */
$"3320 3245 3332 2036 3233 3220 3633 3331" /* 3 2E32 6232 6331 */
$"2220 2020 2020 2020 2020 2020 2020 2020" /* " */
$"2020 2020 2020 2020 2020 2020 2F2A 2050" /* /* P */
$"5720 332E 3262 3263 3120 2A2F 0D7D 3B0D" /* W 3.2b2c1 *..};. */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 001E 0000 0014" /* ..Monaco........ */
$"0005 FABC 000A 014E 01D1 015D 01E0 000A" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"82D7 05DF 82E2 0612 82E3 062B 82E4 063D" /* ...........+...= */
$"82E5 0672 82E6 0685 82E7 06CF 82E8 06FD" /* ...r............ */
$"074D 656E 7573 2E68 0200 0000 5445 5854" /* .Menus.h....TEXT */
$"4D50 5320 0000 0000 0000 0000 0000 0125" /* MPS ...........% */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 021B 0919" /* ...1.@.......... */
$"82FD 0925 82FE 0939 82FF 0976 86DF 099A" /* ...%...9...v.... */
$"86E0 09B3 86E1 09C5 86E2 09E6 86E3 0A21" /* ...............! */
$"86E4 0A33 86E5 0A5C 86E6 0A90 86E7 0ABD" /* ...3...\........ */
$"CD33 0ACD CD34 0AF3 CD35 0B18 CD36 0B3B" /* .3...4...5...6.; */
$"CD37 0B5D CD38 0B78 E021 0B9C E029 0BB4" /* .7.].8.x.!...).. */
$"E02A 0BD8 E03B 0BEA EA82 0BFB EA83 0C4A" /* .*...;.........J */
$"EA84 0C7F EC5A 0CA6 EC5B 0CDC EC5C 0CF8" /* .....Z...[...\.. */
$"EC5D 0D17 EC5E 0D2F EC5F 0D4F EC60 0D86" /* .]...^./._.O.`.. */
};
#endif
data 'vers' (1) {
$"0321 6000 0000 0533 2E32 2E31 2833 2E32" /* .!`....3.2.1(3.2 */
$"2E31 2C20 A920 4170 706C 6520 436F 6D70" /* .1, . Apple Comp */
$"7574 6572 2C20 496E 632E 2031 3938 352D" /* uter, Inc. 1985- */
$"3139 3931 2E" /* 1991. */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 00E4 0510 7FFF 000F" /* ..Monaco........ */
$"0510 0511 7FFF 001E 0009 01E1 7FFF 001F" /* ................ */
$"01E1 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

File diff suppressed because it is too large Load Diff

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"636F 6D70 6174 6962 696C 6974 7920 0D6C" /* compatibility .l */
$"616E 674D 616C 7461 2020 2020 2020 2020" /* angMalta */
$"084D 6F76 6965 732E 6800 0200 0000 5445" /* .Movies.h.....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A70B 20D2 0000 0000 0000 01D6 2045" /* .... ......... E */
$"5155 2020 2020 2031 3820 203B 2028 7573" /* QU 18 ; (us */
$"6520 6C61 6E67 4372 6F61 7469 616E 2C20" /* e langCroatian, */
$"6C61 6E67 5365 7262 6961 6E2C 2065 7463" /* langSerbian, etc */
$"2E29 200D 6C61 6E67 4368 696E 6573 6520" /* .) .langChinese */
$"2020 2020 2045 5155 2020 2020 2031 3920" /* EQU 19 */
$"203B 2028 7573 6520 6C61 6E67 5472 6164" /* ; (use langTrad */
$"4368 696E 6573 6520 6F72 206C 616E 6753" /* Chinese or langS */
$"696D 7043 6869 6E65 7365 2920 0D0D 2020" /* impChinese) .. */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0000 0000 0014" /* ..Monaco........ */
$"0005 FABC 000A 014E 01D1 015D 01E0 0000" /* .......N...].... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A78C 8900 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,574 +0,0 @@
/************************************************************
Created: Wednesday, October 21, 1992 at 2:55 PM
MoviesFormat.h
C Interface to the Macintosh Libraries
Copyright Apple Computer, Inc. 1991, 1992
All rights reserved
************************************************************/
#ifndef __MOVIESFORMAT__
#define __MOVIESFORMAT__
#ifndef __MOVIES__
#include <Movies.h>
#endif
#define kMovieVersion (0) /* version number of the format here described */
#ifndef kSmallestArray
#define kSmallestArray 1
#endif
/****************************************
*
* General Types -
* These types are used in more than one of the
* directory types.
*
****************************************/
/* MoviesUserData is the type used for user data in movie and track directories */
struct MoviesUserData {
long size; /* size of this user data */
long type; /* type of user data */
char data[kSmallestArray]; /* the user data */
};
typedef struct MoviesUserData MoviesUserData;
struct UserDataAtom {
long size;
long type;
MoviesUserData userData[kSmallestArray];
};
typedef struct UserDataAtom UserDataAtom;
/* MoviesDataDescription tells us where the data for the movie or track lives.
The data can follow the directory, be in the datafork of the same file as the directory resource,
be in the resource fork of the same file as the directory resource, be in another file in the
data fork or resource fork, or require a specific bottleneck to fetch the data. */
/****************************************
*
* MediaDirectory information -
* The MediaDirectory is tightly coupled to the data.
*
****************************************/
/* The SampleDescriptionTable holds the SampleDescriptions needed to decompress chunks given the
SampleDescriptionID. There is a table per Media. */
/*
struct SampleDescription {
long size;
long type;
long resvd1;
short resvdA;
short dataRefId;
};
typedef struct SampleDescription SampleDescription;
typedef SampleDescription **SampleDescriptionHandle;
*/
struct SampleDescriptionAtom {
long size;
long type; /* = 'stsd' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
SampleDescription sampleDescTable[kSmallestArray];
};
typedef struct SampleDescriptionAtom SampleDescriptionAtom;
/* TimeToSampleNum maps physical sample time to physical sample number. */
struct TimeToSampleNum {
long sampleCount;
TimeValue sampleDuration;
};
typedef struct TimeToSampleNum TimeToSampleNum;
struct TimeToSampleNumAtom {
long size;
long type; /* = 'stts' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
TimeToSampleNum timeToSampleNumTable[kSmallestArray];
};
typedef struct TimeToSampleNumAtom TimeToSampleNumAtom;
/* SyncSamples is a list of the physical samples which are self contained. */
struct SyncSampleAtom {
long size;
long type; /* = 'stss' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
long syncSampleTable[kSmallestArray];
};
typedef struct SyncSampleAtom SyncSampleAtom;
/* SampleToChunk maps physical sample number to chunk number.
*/
struct SampleToChunk { /* same as SampleToChunk, but redundant first sample is removed */
long firstChunk;
long samplesPerChunk;
long sampleDescriptionID;
};
typedef struct SampleToChunk SampleToChunk;
struct SampleToChunkAtom {
long size;
long type; /* = 'stsc' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
SampleToChunk sampleToChunkTable[kSmallestArray];
};
typedef struct SampleToChunkAtom SampleToChunkAtom;
struct ChunkOffsetAtom {
long size;
long type; /* = 'stco' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
long chunkOffsetTable[kSmallestArray];
};
typedef struct ChunkOffsetAtom ChunkOffsetAtom;
struct SampleSizeAtom {
long size;
long type; /* = 'stsz' */
long flags; /* 1 byte of version / 3 bytes of flags */
long sampleSize;
long numEntries;
long sampleSizeTable[kSmallestArray];
};
typedef struct SampleSizeAtom SampleSizeAtom;
struct ShadowSync {
long fdSampleNum;
long syncSampleNum;
};
typedef struct ShadowSync ShadowSync;
struct ShadowSyncAtom {
long size;
long type; /* = 'stsz' */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
ShadowSync shadowSyncTable[kSmallestArray];
};
typedef struct ShadowSyncAtom ShadowSyncAtom;
struct SampleTableAtom {
long size;
long type; /* = 'stbl' */
SampleDescriptionAtom sampleDescription;
TimeToSampleNumAtom timeToSampleNum;
SampleToChunkAtom sampleToChunk;
SyncSampleAtom syncSample;
SampleSizeAtom sampleSize;
ChunkOffsetAtom chunkOffset;
ShadowSyncAtom shadowSync;
};
typedef struct SampleTableAtom SampleTableAtom;
struct PublicHandlerInfo {
long flags; /* 1 byte of version / 3 bytes of flags */
long componentType;
long componentSubType;
long componentManufacturer;
long componentFlags;
long componentFlagsMask;
char componentName[kSmallestArray];
};
typedef struct PublicHandlerInfo PublicHandlerInfo;
struct HandlerAtom {
long size;
long type; /* = 'hdlr' */
PublicHandlerInfo hInfo;
};
typedef struct HandlerAtom HandlerAtom;
typedef long DataRefAtom; /* a data reference is a private structure */
struct DataInfoAtom {
long size;
long type; /* = 'dinf' */
DataRefAtom dataRef;
};
typedef struct DataInfoAtom DataInfoAtom;
struct RgnAtom {
long size;
long type;
short rgnSize;
Rect rgnBBox;
char data[kSmallestArray];
};
typedef struct RgnAtom RgnAtom;
struct MatteCompressedAtom {
long size;
long type;
long flags; /* 1 byte of version / 3 bytes of flags */
ImageDescription matteImageDescription;
char matteData[kSmallestArray];
};
typedef struct MatteCompressedAtom MatteCompressedAtom;
struct MatteAtom {
long size;
long type;
MatteCompressedAtom aCompressedMatte;
};
typedef struct MatteAtom MatteAtom;
struct ClippingAtom {
long size;
long type;
RgnAtom aRgnClip;
};
typedef struct ClippingAtom ClippingAtom;
/***********************
* Media Info Example Structures
***********************/
struct VideoMediaInfoHeader {
long flags; /* 1 byte of version / 3 bytes of flags */
short graphicsMode; /* for QD - transfer mode */
short opColorRed; /* opcolor for transfer mode */
short opColorGreen;
short opColorBlue;
};
typedef struct VideoMediaInfoHeader VideoMediaInfoHeader;
struct VideoMediaInfoHeaderAtom {
long size; /* size of Media info */
long type; /* = 'vmhd' */
VideoMediaInfoHeader vmiHeader;
};
typedef struct VideoMediaInfoHeaderAtom VideoMediaInfoHeaderAtom;
struct VideoMediaInfo {
long size; /* size of Media info */
long type; /* = 'minf' */
VideoMediaInfoHeaderAtom header;
HandlerAtom dataHandler;
DataInfoAtom dataInfo;
SampleTableAtom sampleTable;
};
typedef struct VideoMediaInfo VideoMediaInfo;
struct SoundMediaInfoHeader {
long flags; /* 1 byte of version / 3 bytes of flags */
short balance;
short rsrvd;
};
typedef struct SoundMediaInfoHeader SoundMediaInfoHeader;
struct SoundMediaInfoHeaderAtom {
long size; /* size of Media info */
long type; /* = 'vmhd' */
SoundMediaInfoHeader smiHeader;
};
typedef struct SoundMediaInfoHeaderAtom SoundMediaInfoHeaderAtom;
struct SoundMediaInfo {
long size; /* size of Media info */
long type; /* = 'minf' */
SoundMediaInfoHeaderAtom header;
HandlerAtom dataHandler;
DataRefAtom dataReference;
SampleTableAtom sampleTable;
};
typedef struct SoundMediaInfo SoundMediaInfo;
struct MediaInfo {
long size;
long type;
/* whatever data the media handler needs goes here */
};
typedef struct MediaInfo MediaInfo;
/***********************
* Media Directory Structures
***********************/
struct MediaHeader {
long flags; /* 1 byte of version / 3 bytes of flags */
long creationTime; /* seconds since Jan 1904 when directory was created */
long modificationTime; /* seconds since Jan 1904 when directory was appended */
TimeValue timeScale; /* start time for Media (Media time) */
TimeValue duration; /* length of Media (Media time) */
short language;
short quality;
};
typedef struct MediaHeader MediaHeader;
struct MediaHeaderAtom {
long size;
long type;
MediaHeader header;
};
typedef struct MediaHeaderAtom MediaHeaderAtom;
struct MediaDirectory {
long size;
long type; /* = 'mdia' */
MediaHeaderAtom mediaHeader; /* standard Media information */
HandlerAtom mediaHandler;
MediaInfo mediaInfo;
};
typedef struct MediaDirectory MediaDirectory;
/***********************
* Track Structures
***********************/
enum {
TrackEnable = 1<<0,
TrackInMovie = 1<<1,
TrackInPreview = 1<<2,
TrackInPoster = 1<<3
};
struct TrackHeader {
long flags; /* 1 byte of version / 3 bytes of flags */
long creationTime; /* seconds since Jan 1904 when directory was created */
long modificationTime; /* seconds since Jan 1904 when directory was appended */
long trackID;
long reserved1;
TimeValue duration; /* length of track (track time) */
long reserved2;
long reserved3;
short layer;
short alternateGroup;
short volume;
short reserved4;
MatrixRecord matrix;
Fixed trackWidth;
Fixed trackHeight;
};
typedef struct TrackHeader TrackHeader;
struct TrackHeaderAtom {
long size; /* size of track header */
long type; /* = 'tkhd' */
TrackHeader header;
};
typedef struct TrackHeaderAtom TrackHeaderAtom;
struct EditListType {
TimeValue trackDuration;
TimeValue mediaTime;
Fixed mediaRate;
};
typedef struct EditListType EditListType;
struct EditListAtom {
long size;
long type; /* = elst */
long flags; /* 1 byte of version / 3 bytes of flags */
long numEntries;
EditListType editListTable[kSmallestArray];
};
typedef struct EditListAtom EditListAtom;
struct EditsAtom {
long size;
long type; /* = edts */
EditListAtom editList;
};
typedef struct EditsAtom EditsAtom;
struct TrackDirectory {
long size;
long type; /* = 'trak' */
TrackHeaderAtom trackHeader; /* standard track information */
ClippingAtom trackClip;
EditsAtom edits;
MediaDirectory media;
UserDataAtom userData; /* space for extending with new data types */
};
typedef struct TrackDirectory TrackDirectory;
/****************************************
*
* MovieDirectory -
* The MovieDirectory is the top level structure which
* holds the TrackInstance describing where the
* TrackDirectories are.
*
****************************************/
struct MovieHeader{
long flags; /* 1 byte of version / 3 bytes of flags */
long creationTime; /* seconds since Jan 1904 when directory was created */
long modificationTime; /* seconds since Jan 1904 when directory was appended */
/* Time specifications */
TimeValue timeScale;
TimeValue duration;
Fixed preferredRate; /* rate at which to play this movie */
short preferredVolume; /* volume to play movie at */
short reserved1;
/* Graphics specifications */
long preferredLong1;
long preferredLong2;
MatrixRecord matrix;
TimeValue previewTime; /* time in track the proxy begins (track time) */
TimeValue previewDuration; /* how long the proxy lasts (track time) */
TimeValue posterTime; /* time in track the proxy begins (track time) */
TimeValue selectionTime; /* time in track the proxy begins (track time) */
TimeValue selectionDuration; /* time in track the proxy begins (track time) */
TimeValue currentTime; /* time in track the proxy begins (track time) */
long nextTrackID; /* next value to use for a TrackID */
};
typedef struct MovieHeader MovieHeader;
struct MovieHeaderAtom {
long size;
long type; /* = 'mvhd' */
MovieHeader header;
};
typedef struct MovieHeaderAtom MovieHeaderAtom;
struct MovieDirectory {
long size;
long type; /* = 'moov' */
MovieHeaderAtom header;
ClippingAtom movieClip;
/* Track Directories */
struct {
TrackDirectory trackDirectory; /* Track directory information */
} track[kSmallestArray];
/* User data for Movie */
UserDataAtom userData; /* space for user extensions */
};
typedef struct MovieDirectory MovieDirectory;
/****************************************
****************************************/
/* Movie formats and tags */
/* some system defined format IDs */
#define MOVIE_TYPE 'moov'
#define TRACK_TYPE 'trak'
#define MEDIA_TYPE 'mdia'
#define VIDEO_TYPE 'vide'
#define SOUND_TYPE 'soun'
/* atom id's */
#define MovieAID 'moov'
#define MovieHeaderAID 'mvhd'
#define ClipAID 'clip'
#define RgnClipAID 'crgn'
#define MatteAID 'matt'
#define MatteCompAID 'kmat'
#define TrackAID 'trak'
#define UserDataAID 'udta'
#define TrackHeaderAID 'tkhd'
#define EditsAID 'edts'
#define EditListAID 'elst'
#define MediaAID 'mdia'
#define MediaHeaderAID 'mdhd'
#define MediaInfoAID 'minf'
#define VideoMediaInfoHeaderAID 'vmhd'
#define SoundMediaInfoHeaderAID 'smhd'
#define GenericMediaInfoHeaderAID 'gmhd'
#define GenericMediaInfoAID 'gmin'
#define DataInfoAID 'dinf'
#define DataRefAID 'dref'
#define SampleTableAID 'stbl'
#define STSampleDescAID 'stsd'
#define STTimeToSampAID 'stts'
#define STSyncSampleAID 'stss'
#define STSampleToChunkAID 'stsc'
#define STShadowSyncAID 'stsh'
#define HandlerAID 'hdlr'
#define STSampleSizeAID 'stsz'
#define STChunkOffsetAID 'stco'
#define DataRefContainerAID 'drfc'
#endif __MOVIESFORMAT__

View File

@ -1,38 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"6563 7420 436F 6465 6308 7072 6F67 7265" /* ect Codec.progre */
$"7373 0E73 6176 6520 6173 2064 6961 6C6F" /* ss.save as dialo */
$"0E4D 6F76 6965 7346 6F72 6D61 742E 684D" /* .MoviesFormat.hM */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A70B 20DC 0000 0000 0000 01D6 4D65" /* .... .........Me */
$"3A0D 0909 0909 0909 097B 0D09 0909 0909" /* :........{...... */
$"0909 6265 4465 6163 7469 7661 7465 5072" /* ..beDeactivatePr */
$"6F63 5074 7220 6670 3B0D 0909 0909 0909" /* ocPtr fp;....... */
$"090D 0909 0909 0909 0966 7020 3D20 7468" /* .........fp = th */
$"6973 4561 7379 5769 6E64 6F77 2D3E 7744" /* isEasyWindow->wD */
$"6561 6374 6976 6174 6550 726F 633B 0D09" /* eactivateProc;.. */
$"0909 0909 0909 6966 2866 7029 0D09 0909" /* ......if(fp).... */
$"0909 0909 0928 2A66 7029 2877 4E75 6D29" /* .....(*fp)(wNum) */
};
#endif
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0000 0058 0005 FA0C" /* ..Monaco...X.... */
$"0049 65F4 0000 0000 0000 0013 0000 011D" /* .Ie............. */
$"01C7 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A78C 8917 0000 0000 0000" /* ...]............ */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"00DD 0000 0000 0000 0000 0000 0000 0033" /* ...............3 */
$"0320 6000 0000 0433 2E30 3127 332E 3031" /* . `....3.01'3.01 */
$"0E4E 6F74 6966 6963 6174 696F 6E2E 684E" /* .Notification.hN */
$"0200 0000 5445 5854 4D50 5320 0000 0000" /* ....TEXTMPS .... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 0000" /* ...1.@.......... */
$"3603 EDFF FF00 0000 0000 2B36 6403 EFFF" /* 6.........+6d... */
$"FF00 0000 4C00 2B36 1003 F0FF FF00 0006" /* ....L.+6........ */
$"FA00 2B36 7C00 01FF FF00 0007 1C00 2B37" /* ..+6|.........+7 */
$"440D 0909 4A53 5209 4D6F 7665 4279 7465" /* D...JSR.MoveByte */
$"730D 0D09 0950 5553 482E 4C09 4132 0D09" /* s....PUSH.L.A2.. */
$"095F 5265 6C65 6173 6552 6573 6F75 7263" /* ._ReleaseResourc */
$"650D 4578 6974 0909 5254 530D 0909 454E" /* e.Exit..RTS...EN */
$"4450 0D0D 0D3B 2049 6620 7468 6572 6520" /* DP...; If there */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4E6F 7469 6669 6361 7469 6F6E 2E68 0078" /* Notification.h.x */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"00DD 0000 0000 0000 0000 0000 0000 0033" /* ...............3 */
$"0320 6000 0000 0433 2E30 3127 332E 3031" /* . `....3.01'3.01 */
$"0A4F 5345 7665 6E74 732E 6800 0200 0000" /* .OSEvents.h..... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 0000" /* ...1.@.......... */
$"3603 EDFF FF00 0000 0000 2B36 6403 EFFF" /* 6.........+6d... */
$"FF00 0000 4C00 2B36 1003 F0FF FF00 0006" /* ....L.+6........ */
$"FA00 2B36 7C00 01FF FF00 0007 1C00 2B37" /* ..+6|.........+7 */
$"440D 0909 4A53 5209 4D6F 7665 4279 7465" /* D...JSR.MoveByte */
$"730D 0D09 0950 5553 482E 4C09 4132 0D09" /* s....PUSH.L.A2.. */
$"095F 5265 6C65 6173 6552 6573 6F75 7263" /* ._ReleaseResourc */
$"650D 4578 6974 0909 5254 530D 0909 454E" /* e.Exit..RTS...EN */
$"4450 0D0D 0D3B 2049 6620 7468 6572 6520" /* DP...; If there */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4F53 4576 656E 7473 2E68 0058 0000 0014" /* OSEvents.h.X.... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,45 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"FF00 0000 9C00 2B37 4420 7468 6520 636F" /* ......+7D the co */
$"6E64 6974 696F 6E61 6C20 696E 7374 7275" /* nditional instru */
$"094F 5355 7469 6C73 2E68 0200 0000 5445" /* .OSUtils.h....TE */
$"5854 4D50 5320 0000 0000 0000 0000 0000" /* XTMPS .......... */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A431 E940 0000 0000 0000 0217 2072" /* ...1.@........ r */
$"6574 7572 6E65 642E 0D3B 202A 2A2A 2054" /* eturned..; *** T */
$"6869 7320 636F 6465 2069 7320 7365 6C66" /* his code is self */
$"206D 6F64 6966 7969 6E67 2E20 4974 2063" /* modifying. It c */
$"616E 6E6F 7420 6265 2069 6E20 7468 6520" /* annot be in the */
$"6368 6563 6B73 756D 2E0D 0D44 6563 6F64" /* checksum...Decod */
$"6543 6F6E 6469 7469 6F6E 616C 0946 554E" /* eConditional.FUN */
$"4309 4558 504F 5254 0D0D 0909 5354 5249" /* C.EXPORT....STRI */
$"4E47 0950 4153 4341 4C0D 0D3B 2047 6574" /* NG.PASCAL..; Get */
};
#endif
data 'vers' (1, purgeable) {
$"0320 8000 0000 0533 2E32 2E30 2433 2E32" /* . .....3.2.0$3.2 */
$"2E30 20A9 2041 7070 6C65 2043 6F6D 7075" /* .0 . Apple Compu */
$"7465 722C 2049 6E63 2E20 3139 3835 2D39" /* ter, Inc. 1985-9 */
$"31" /* 1 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0020 6C6F 6E67 202A" /* ..Monaco. long * */
$"7365 6373 293B 200D 2370 7261 676D 6120" /* secs); .#pragma */
$"7061 0006 0004 0031 000A 015D 01E0 0031" /* pa.....1...]...1 */
$"000A 015D 01E0 A431 E940 0000 0000 0000" /* ...]...1.@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,335 +0,0 @@
/*ident "@(#)ctrans:incl/Ostream.h 1.1.5.1" */
/**************************************************************************
Copyright (c) 1984 AT&T
All Rights Reserved
THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
The copyright notice above does not evidence any
actual or intended publication of such source code.
*****************************************************************************/
/*
stream.h, the header file for the C++ stream i/o system
*/
#ifndef __IOSTREAM__
#define __IOSTREAM__
#ifndef __STDIO__
#include <stdio.h>
#endif
//#include <osfcn.h> // for Macintosh
#ifndef __FCNTL__
#include <FCntl.h>
#endif
#define BUFSIZE BUFSIZ
#ifndef NULL
#define NULL 0
#endif
#ifndef EOF
#define EOF (-1)
#endif
#ifndef BUFSIZE
#ifdef uts
#define BUFSIZE 4096
#else
#define BUFSIZE 1024
#endif
#endif
enum state_value { _good=0, _eof=1, _fail=2, _bad=4 };
enum open_mode { input=0, output=1, append=2 };
struct streambuf { // a buffer for streams
char* base; // pointer to beginning of buffer
char* pptr; // pointer to next free byte
char* gptr; // pointer to next filled byte
char* eptr; // pointer to first byte following buffer
char alloc; // true if buffer is allocated using "new"
FILE* fp; // for stdio compatibility
virtual overflow(int c=EOF); // Empty a buffer.
// Return EOF on error
// 0 on success
virtual int underflow(); // Fill a buffer
// Return EOF on error or end of input
// next character on success
inline int sgetc() // get the current character
{
return (gptr>=pptr) ? underflow() : *gptr&0377;
}
inline int snextc() // get the next character
{
return (gptr>=(pptr-1)) ? underflow() : *++gptr&0377;
}
inline void stossc() // advance to the next character
{
if (gptr++ >= pptr)
underflow();
}
inline void sputbackc(char c)
/*
Return a character to the buffer (ala lookahead 1). Since
the user may be "playing games" the character might be
different than the last one returned by sgetc or snextc.
If the user attempts to put back more characters than have
been extracted, nothing will be put back.
Putting back an EOF is DANGEROUS.
*/
{
if (gptr > base) *--gptr = c;
}
inline int sputc(int c =EOF) // put a character into the buffer
{
if (fp == 0)
return (eptr<=pptr) ? overflow(c&0377) : (*pptr++=c&0377);
else
return putc(c, fp);
}
inline streambuf * setbuf(char *p, int len, int count =0)
/*
supply an area for a buffer.
The "count" parameter allows the buffer to start in non-empty.
*/
{
base = gptr = p;
pptr = p + count;
eptr = base + len;
return this;
}
int doallocate(); // allocate some space for the buffer
inline int allocate(){ return base==0 ? doallocate() : 0; }
streambuf() { base = gptr = pptr = eptr = 0; alloc = 0; fp = 0; }
streambuf(char* p, int l) { setbuf(p,l); alloc = 0; }
~streambuf() { if (base && alloc) delete base; }
};
struct filebuf : public streambuf { // a stream buffer for files
int fd; // file descriptor
char opened; // non-zero if file has been opened
int overflow(int c=EOF); // Empty a buffer.
// Return EOF on error
// 0 on success
int underflow(); // Fill a buffer.
// Return EOF on error or end of input
// next character on success
filebuf* open(/*const*/ char *name, open_mode om); // Open a file
// return 0 if failure
// return "this" if success
int close() { int i = opened?::close(fd):0; opened=0; return i; }
filebuf() { opened = 0; fp = 0; }
filebuf(FILE* p) { fp = p; fd = p->_file; opened = 1; }
filebuf(int nfd) { fd = nfd; opened = 1; }
filebuf(int nfd, char* p, int l) : (p,l) { fd = nfd; opened = 1; }
~filebuf() { close(); }
};
struct circbuf : public streambuf { // a circular stream buffer
int overflow(int c=EOF); // Empty a buffer.
// Return EOF on error
// 0 on success
int underflow(); // Fill a buffer.
// Return EOF on error or end of input
// next character on success
circbuf() { }
~circbuf() { }
};
/*
* This type defines white space. Any number of whitespace
* characters can be used to separate two fields in an input
* stream. The effect of sending an input stream to a whitespace
* object is to cause all whitespace in the input stream, up to the
* next non-whitespace character, to be discarded. The whitespace
* characters are space, tab, form feed, and new line.
*/
struct whitespace { };
/***************************** output: *********************************/
extern char* oct(long, int =0);
extern char* dec(long, int =0);
extern char* hex(long, int =0);
extern char* chr(int, int =0); // chr(0) is the empty string ""
extern char* str(const char*, int =0);
extern char* form(const char* ...); // printf format
class istream;
class common;
class ostream {
friend istream;
streambuf* bp;
short state;
public:
ostream& operator<<(const char*); // write
ostream& operator<<(int a) { return *this<<long(a); }
//ostream& operator<<(unsigned a) { return *this<<form("%u",a); }
ostream& operator<<(unsigned a)
{ return *this<<(unsigned long) a; }
ostream& operator<<(unsigned long);
ostream& operator<<(long); // beware: << 'a' writes 97
ostream& operator<<(double d) { return (*this)<<(extended)d; } // for Macintosh
ostream& operator<<(extended); // for Macintosh
// Change for const member function feature in beta6:
// ostream& operator<<(const streambuf&);
ostream& operator<<(streambuf&);
ostream& operator<<(const whitespace&);
ostream& operator<<(const common&);
ostream& put(char); // put('a') writes a
ostream& flush() { bp->overflow(); return *this; }
operator void*(){ return _eof<state?0:this; }
int operator!() { return _eof<state; }
int eof() { return state&_eof; }
int fail() { return _eof<state; }
int bad() { return _fail<state; }
int good() { return state==_good; }
void clear(short state_val = _good) { state=state_val; }
short rdstate() { return state; }
char* bufptr() { return bp->base; }
ostream(streambuf* s) { bp = s; state = 0; }
ostream(int fd) { bp = new filebuf(fd); state = 0; }
ostream(int size, char* p)
{
state = 0;
bp = new streambuf();
if (p == 0) p = new char[size];
bp->setbuf(p, size);
}
~ostream() { flush(); }
};
/***************************** input: ***********************************/
/*
The >> operator reads after skipping initial whitespace
get() reads but does not skip whitespace
if >> fails (1) the state of the stream turns non-zero
(2) the value of the argument does not change
(3) non-whitespace characters are put back onto the stream
>> get() fails if the state of the stream is non-zero
*/
class istream {
friend ostream;
streambuf* bp;
ostream* tied_to;
char skipws; // if non-null, automaticly skip whitespace
short state;
friend void eatwhite (istream&);
public:
int skip(int i) { int ii=skipws; skipws=i; return ii; }
/*
formatted input: >> skip whitespace
*/
istream& operator>>(char*); // string
istream& operator>>(char&); // single character
istream& operator>>(short&);
istream& operator>>(int&);
istream& operator>>(long&);
istream& operator>>(float&);
istream& operator>>(double&);
istream& operator>>(extended&); // for Macintosh, add extended support
istream& operator>>(comp&); // for Macintosh, add comp support
istream& operator>>(streambuf&);
istream& operator>>(whitespace&); // skip whitespace
istream& operator>>(common&);
/*
raw input: get's do not skip whitespace
*/
istream& get(char*, int, char ='\n'); // string
istream& get(streambuf& sb, char ='\n');
istream& get(char& c) // single character
{
int os = skipws;
skipws = 0;
*this >> c;
skipws = os;
return *this;
}
istream& putback(char c);
ostream* tie(ostream* s) { ostream* t = tied_to; tied_to = s; return t; }
operator void*(){ return _eof<state?0:this; }
int operator!() { return _eof<state; }
int eof() { return state&_eof; }
int fail() { return _eof<state; }
int bad() { return _fail<state; }
int good() { return state==_good; }
void clear(short state_val = _good) { state=state_val; }
short rdstate() { return state; }
char* bufptr() { return bp->base; }
istream(streambuf* s, int sk =1, ostream* t =0) // bind to buffer
{
state = 0;
skipws = sk;
tied_to = t;
bp = s;
}
istream(int size, char* p, int sk =1) // bind to string
{
state = 0;
skipws = sk;
tied_to = 0;
bp = new streambuf();
if (p == 0) p = new char[size];
bp->setbuf(p, size, size);
}
istream(int fd, int sk =1, ostream* t =0) // bind to file
{
state = 0;
skipws = sk;
tied_to = t;
bp = new filebuf(fd);
}
};
extern istream cin; // standard input predefined
extern ostream cout; // standard output
extern ostream cerr; // error output
extern whitespace WS; // predefined white space
#endif

View File

@ -1,44 +0,0 @@
#if 0
data 'header' (0, "Header as fake resource (not for Rez)") {
$"632E 632E 6F0D 090D 7B4F 626A 4469 727D" /* c.c.o...{ObjDir} */
$"6474 6F72 732E 632E 6F09 C409 6474 6F72" /* dtors.c.o...dtor */
$"0B4F 6C64 5374 7265 616D 2E68 0200 0000" /* .OldStream.h.... */
$"5445 5854 4D50 5320 0000 0000 0000 0000" /* TEXTMPS ........ */
$"0000 5445 5854 4D50 5320 0000 0000 0000" /* ..TEXTMPS ...... */
$"0000 0000 0000 0000 0000 0000 0000 0000" /* ................ */
$"0000 A80F FFC0 0000 0000 0000 0214 7279" /* ..............ry */
$"2E68 0D09 7B43 6F6E 6445 6368 6F7D 2027" /* .h..{CondEcho} ' */
$"636F 6D70 696C 696E 6720 6474 6F72 732E" /* compiling dtors. */
$"6327 0D09 7B43 437D 207B 4343 464C 4147" /* c'..{CC} {CCFLAG */
$"537D 2064 746F 7273 2E63 202D 6F20 7B4F" /* S} dtors.c -o {O */
$"626A 4469 727D 6474 6F72 732E 632E 6F0D" /* bjDir}dtors.c.o. */
$"0D7B 4F62 6A44 6972 7D67 656E 6572 6963" /* .{ObjDir}generic */
$"2E63 2E6F 09C4 2020 6765 6E65 7269 632E" /* .c.o.. generic. */
$"6309 7374 6469 6F2E 680D 097B 436F 6E64" /* c.stdio.h..{Cond */
};
#endif
data 'vers' (1, purgeable) {
$"0303 8000 0000 0333 2E33 2333 2E33 2C20" /* .......3.3#3.3, */
$"A920 4170 706C 6520 436F 6D70 7574 6572" /* . Apple Computer */
$"2C20 496E 632E 2031 3938 392D 3933" /* , Inc. 1989-93 */
};
data 'vers' (2, purgeable) {
$"0330 8000 0000 0333 2E33 074D 5057 2033" /* .0.....3.3.MPW 3 */
$"2E33" /* .3 */
};
data 'MPSR' (1005) {
$"0009 4D6F 6E61 636F 0063 6C75 6465 733A" /* ..Monaco.cludes: */
$"4F6C 6453 7472 6561 6D2E 6800 0000 0014" /* OldStream.h..... */
$"0000 0006 0004 0031 000A 015D 01E0 0031" /* .......1...]...1 */
$"000A 015D 01E0 A804 2240 0000 0000 0000" /* ...]...."@...... */
$"0000 0000 0000 0100" /* ........ */
};
data 'MPSR' (1008) {
$"0031 000A 015D 01E0 0031 000A 015D 01E0" /* .1...]...1...].. */
$"0000 0000 0000 0000 0000 0000 0000" /* .............. */
};

View File

@ -1,39 +0,0 @@
/*
PLStringFuncs.h -- C string conversion functions for pascal
Copyright Apple Computer,Inc. 1989, 1990
All rights reserved
*/
#ifndef __PLSTRINGFUNCS__
#define __PLSTRINGFUNCS__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
pascal short PLstrcmp(ConstStr255Param str1, ConstStr255Param str2);
pascal short PLstrncmp(ConstStr255Param str1, ConstStr255Param str2, short num);
pascal StringPtr PLstrcpy(StringPtr str1, ConstStr255Param str2);
pascal StringPtr PLstrncpy(StringPtr str1, ConstStr255Param str2, short num);
pascal StringPtr PLstrcat(StringPtr str1, ConstStr255Param str2);
pascal StringPtr PLstrncat(StringPtr str1, ConstStr255Param str2, short num);
pascal Ptr PLstrchr(ConstStr255Param str1, short ch1);
pascal Ptr PLstrrchr(ConstStr255Param str1, short ch1);
pascal Ptr PLstrpbrk(ConstStr255Param str1, ConstStr255Param str2);
pascal short PLstrspn(ConstStr255Param str1, ConstStr255Param str2);
pascal Ptr PLstrstr(ConstStr255Param str1, ConstStr255Param str2);
pascal short PLstrlen(ConstStr255Param str);
pascal short PLpos(ConstStr255Param str1, ConstStr255Param str2);
#ifdef __cplusplus
}
#endif
#endif

Some files were not shown because too many files have changed in this diff Show More