3 * Win32 specific drive access routines for ADFLib
4 * Copyright 1999 by Dan Sutherland <dan@chromerhino.demon.co.uk>
10 #include "../adf_str.h"
12 #define NATIVE_FILE 8001
23 FILE *fd
; /* needed by adf_dump.c */
25 char path
[4096]; // Add a path variable for the Opus info dialogue.
26 }; // This modifies the standard ADFLib.
28 struct nativeFunctions
{
29 RETCODE (*adfInitDevice
)(struct Device
*, char*, BOOL
);
30 RETCODE (*adfNativeReadSector
)(struct Device
*, long, int, unsigned char*);
31 RETCODE (*adfNativeWriteSector
)(struct Device
*, long, int, unsigned char*);
32 BOOL (*adfIsDevNative
)(char*);
33 RETCODE (*adfReleaseDevice
)();
36 void adfInitNativeFct();
38 RETCODE
Win32ReadSector(struct Device
*dev
, long n
, int size
, unsigned char* buf
);
39 RETCODE
Win32WriteSector(struct Device
*dev
, long n
, int size
, unsigned char* buf
);
40 RETCODE
Win32InitDevice(struct Device
*dev
, char* name
, BOOL ro
);
41 RETCODE
Win32ReleaseDevice(struct Device
*dev
);
42 BOOL
Win32IsDevNative(char*);
44 #endif /* ndef ADF_NATIV_H */