revert between 56095 -> 55830 in arch
[AROS.git] / tools / adflib / Generic / adf_nativ.h
blob33e7dff3ebde7b5eecbaadfaefd6df2574f28ed0
1 /*
2 * adf_nativ_.h
4 * file
5 */
7 #ifndef ADF_NATIV_H
8 #define ADF_NATIV_H
10 #include<stdio.h>
11 #include"adf_str.h"
13 #define NATIVE_FILE 8001
15 #ifndef BOOL
16 #define BOOL int
17 #endif
19 #ifndef RETCODE
20 #define RETCODE long
21 #endif
23 struct nativeDevice{
24 FILE* fd;
27 struct nativeFunctions{
28 /* called by adfMount() */
29 RETCODE (*adfInitDevice)(struct Device*, char*,BOOL);
30 /* called by adfReadBlock() */
31 RETCODE (*adfNativeReadSector)(struct Device*, long, int, unsigned char*);
32 /* called by adfWriteBlock() */
33 RETCODE (*adfNativeWriteSector)(struct Device*, long, int, unsigned char*);
34 /* called by adfMount() */
35 BOOL (*adfIsDevNative)(char*);
36 /* called by adfUnMount() */
37 RETCODE (*adfReleaseDevice)();
40 void adfInitNativeFct();
42 #endif /* ADF_NATIV_H */
44 /*#######################################################################################*/