Correct definition of DCtlEntry, using QHdr

This commit is contained in:
Laurent Vivier 2007-09-29 21:22:43 +00:00
parent f343388bab
commit f88c5d72f1

View File

@ -11,6 +11,7 @@
#include <macos/types.h> #include <macos/types.h>
#include <macos/files.h> #include <macos/files.h>
#include <macos/errors.h> #include <macos/errors.h>
#include <macos/osutils.h>
typedef struct typedef struct
{ {
@ -33,17 +34,17 @@ drvrActiveMask = 0x0080 /* driver is currently processing a reque
}; };
struct DCtlEntry { struct DCtlEntry {
void* dCtlDriver; void* dCtlDriver;
volatile short dCtlFlags; volatile short dCtlFlags;
void* dCtlQHdr; QHdr dCtlQHdr;
volatile long dCtlPosition; volatile long dCtlPosition;
void** dCtlStorage; void** dCtlStorage;
short dCtlRefNum; short dCtlRefNum;
long dCtlCurTicks; long dCtlCurTicks;
void* dCtlWindow; void* dCtlWindow;
short dCtlDelay; short dCtlDelay;
short dCtlEMask; short dCtlEMask;
short dCtlMenu; shorti dCtlMenu;
}; };
typedef struct DCtlEntry DCtlEntry; typedef struct DCtlEntry DCtlEntry;
typedef DCtlEntry * DCtlPtr; typedef DCtlEntry * DCtlPtr;
@ -125,9 +126,10 @@ static inline OSErr DrvrRemove(int refNum)
return ret; return ret;
} }
#endif /* __mc68000__ */
extern OSErr OpenDriver(ConstStr255Param name, short *drvrRefNum); extern OSErr OpenDriver(ConstStr255Param name, short *drvrRefNum);
extern OSErr CloseDriver(short refNum); extern OSErr CloseDriver(short refNum);
extern OSErr SerGetBuf(short refNum, long *count); extern OSErr SerGetBuf(short refNum, long *count);
#endif /* __mc68000__ */ extern DCtlHandle GetDCtlEntry(short refNum);
#endif /* __MACOS_DEVICES_H__ */ #endif /* __MACOS_DEVICES_H__ */