emul-handler: place the second tag into .text.romtag section
[AROS.git] / tools / adflib / Win32 / adf_nativ.h
blobc62d2d28eb7d85ca7074fe059f4373440889fca0
1 /* Win32/adf_nativ.h
3 * Win32 specific drive access routines for ADFLib
4 * Copyright 1999 by Dan Sutherland <dan@chromerhino.demon.co.uk>
5 */
7 #ifndef ADF_NATIV_H
8 #define ADF_NATIV_H
10 #include "../adf_str.h"
12 #define NATIVE_FILE 8001
14 #ifndef BOOL
15 #define BOOL int
16 #endif
18 #ifndef RETCODE
19 #define RETCODE long
20 #endif
22 struct nativeDevice{
23 FILE *fd; /* needed by adf_dump.c */
24 void *hDrv;
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 */