Add SGetTypeSRsrc()

This commit is contained in:
Laurent Vivier 2005-10-10 21:50:25 +00:00
parent 29d30cd033
commit 91eb3f460c
2 changed files with 20 additions and 1 deletions

View File

@ -446,6 +446,17 @@ SRsrcInfo:
unlk %fp
rts
/* OSErr SGetTypeSRsrc(SpBlockPtr spBlkPtr) */
.global SGetTypeSRsrc
SGetTypeSRsrc:
link %fp, #0
move.l 8(%fp), %a0
move.l #0x0C, %d0 /* SGetTypeSRsrc */
dc.w 0xA06E /* _SlotManager */
unlk %fp
rts
#if defined(SCSI_SUPPORT)
/* SCSI support */

View File

@ -302,7 +302,7 @@ struct SpBlock {
int8_t spByteLanes;
int8_t spFlags;
int8_t spKey;
};
} __attribute__((packed)) ;
typedef struct SpBlock SpBlock;
typedef SpBlock * SpBlockPtr;
@ -314,7 +314,15 @@ enum {
drSwApple = 0x0001,
};
enum { /* flags for spParamData */
fall = 0,
foneslot = 1,
fnext = 2,
};
OSErr SRsrcInfo(SpBlockPtr spBlkPtr);
OSErr SGetTypeSRsrc(SpBlockPtr spBlkPtr);
typedef struct VDFlagRec
{