mirror of
https://github.com/ksherlock/mpw.git
synced 2024-06-15 02:29:28 +00:00
32 lines
340 B
C
32 lines
340 B
C
|
#ifndef __mpw_mpw_h__
|
||
|
#define __mpw_mpw_h__
|
||
|
|
||
|
#include <cstdint>
|
||
|
|
||
|
namespace MPW {
|
||
|
|
||
|
|
||
|
struct MPWFile
|
||
|
{
|
||
|
uint16_t flags;
|
||
|
uint16_t error;
|
||
|
uint32_t device;
|
||
|
uint32_t cookie;
|
||
|
uint32_t count;
|
||
|
uint32_t buffer;
|
||
|
};
|
||
|
|
||
|
enum {
|
||
|
fQuit = 0xf000,
|
||
|
fAccess,
|
||
|
fClose,
|
||
|
fRead,
|
||
|
fWrite,
|
||
|
fIOCtl,
|
||
|
};
|
||
|
|
||
|
void dispatch(uint16_t trap);
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|