2019-06-29 23:17:50 +08:00

72 lines
2.6 KiB
Plaintext

;
; File: DTDBMgrEqu.a
;
; Contains: Equates for the Desktop Database manager
;
; Copyright: © 1986-1991 by Apple Computer, Inc., all rights reserved.
;
; Change History (most recent first):
;
; <3> 9/13/91 JSM Cleanup header.
; <2> 3/20/91 dnf sad, #DTGetInfoConsumesGranite: Fix DTGetInfo so that the
; AddFileSizes routine that it calls actually works. It is good to
; know that someone is now really using this call.
; <1.0> 5/30/89 dnf Integrate CatSearch, FileID's and Desktop Database Mgr into one
; ptch
; 5/3/88 PWD Added DTORefNum and DTVRefNum equates.
; 1/6/87 RFA Changed DTFlags to DTFFlags to avoid conflict with Deferred Task
; Manager equate
; 11/2/86 PWD Added equates for DTReset and DTStatus calls
; 10/15/86 PWD Removed definition of ioIconDefault
; 10/12/86 PWD Added definition of DTFClpSize
; 8/13/86 PWD Changed to reserve traps 43-47 for future use.
; 7/5/86 PWD New today.
;
BLANKS ON
STRING ASIS
;
; New Parameter Block fields:
;
ioIndex EQU 26 ; Icon and APPL index [Word]
ioResetFlgs EQU 26 ; Flags for Reset [Word]:
ioSaveIcon EQU 1 ; Bit in ioResetFlags to set to save icons
ioSaveAPPL EQU 2 ; Bit in ioResetFlags to set to save APPL entries
ioSaveCmt EQU 3 ; Bit in ioResetFlags to set to save comments
ioDTFlCnt EQU 26 ; Number of files maintained by DTMgr
ioDTLgLen EQU 64 ; Sum of logical sizes (note: not an alias for ioFlLgLen) <2>
ioDTPyLen EQU 68 ; Sum of physical sizes (note: not an alias for ioFlLgLen) <2>
ioDTRefNum equ ioRefNum ; just to make things clear
ioTagInfo equ 28 ; user supplied tag info
ioIconType equ 45 ; icon type
ioFlCreator equ 52 ; file's creator type
ioFlType equ 56 ; file's type
ioDTQElSize EQU ioHFQElSiz ; DTMgr calls require full HFS parameter block
;
; DTMgr opcodes:
;
FirstDMTrap EQU 32 ; First defined trap code
OpenDB EQU 32 ; DTOpen function code
CloseDB EQU 33 ; DTClose function code
AddIcon EQU 34 ; DTAddIcon function code
GetIcon EQU 35 ; DTGetIcon function code
GetIconInfo EQU 36 ; DTGtIcnInfo function code
AddAPPL EQU 37 ; DTAddAPPL function code
RmvAPPL EQU 38 ; DTRmvAPPL function code
GetAPPL EQU 39 ; DTGetAPPL function code
AddComment EQU 40 ; DTAddComment function code
RmvComment EQU 41 ; DTRmvComment function code
GetComment EQU 42 ; DTGetComment function code
FlushDB EQU 43 ; DTFlush function code
ResetDB EQU 44 ; DTReset function code
GetDBInfo EQU 45 ; DTStatus function code
LastDMTrap EQU 45 ; Last defined trap code
; Codes 46-47 are reserved for future use
GetMetaInfo EQU 48 ; GetMetaInfo function code