Indentation fix, cleanup.
[AROS.git] / tools / adflib / adf_raw.h
blobc9fd1ef4bc2af22971f4c9a4c413a2e42a7b3fb5
1 /*
2 * ADF Library. (C) 1997-1998 Laurent Clevy
4 * adf_raw.h
6 */
8 #ifndef _ADF_RAW_H
9 #define _ADF_RAW_H 1
11 #include "adf_str.h"
13 #define SW_LONG 4
14 #define SW_SHORT 2
15 #define SW_CHAR 1
17 #define MAX_SWTYPE 12
19 #define SWBL_BOOTBLOCK 0
20 #define SWBL_ROOT 1
21 #define SWBL_DATA 2
22 #define SWBL_FILE 3
23 #define SWBL_ENTRY 3
24 #define SWBL_DIR 3
25 #define SWBL_CACHE 4
26 #define SWBL_BITMAP 5
27 #define SWBL_FEXT 5
28 #define SWBL_LINK 6
29 #define SWBL_BITMAPE 5
30 #define SWBL_RDSK 7
31 #define SWBL_BADB 8
32 #define SWBL_PART 9
33 #define SWBL_FSHD 10
34 #define SWBL_LSEG 11
35 #define SWBL_BOOT 12 /* AmigaOS 4 Second Level Boot blocks */
37 RETCODE adfReadRootBlock(struct Volume*, ULONG nSect, struct bRootBlock* root);
38 RETCODE adfWriteRootBlock(struct Volume* vol, ULONG nSect, struct bRootBlock* root);
39 RETCODE adfReadBootBlock(struct Volume*, struct bBootBlock* boot);
40 RETCODE adfWriteBootBlock(struct Volume* vol, struct bBootBlock* boot);
42 ULONG adfBootSum(unsigned char *buf);
43 ULONG adfNormalSum( unsigned char *buf, int offset, int bufLen );
45 void swapEndian( unsigned char *buf, int type );
47 #endif /* _ADF_RAW_H */
49 /*##########################################################################*/