Added basic implementation of destroying a GPT table: just delete the
[AROS.git] / tools / adflib / adf_raw.h
blobb9e5c39da77f0b2f5e2665e1bf8a0edbfc9e35b0
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 11
19 #define SWBL_BOOT 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
36 RETCODE adfReadRootBlock(struct Volume*, long nSect, struct bRootBlock* root);
37 RETCODE adfWriteRootBlock(struct Volume* vol, long nSect, struct bRootBlock* root);
38 RETCODE adfReadBootBlock(struct Volume*, struct bBootBlock* boot);
39 RETCODE adfWriteBootBlock(struct Volume* vol, struct bBootBlock* boot);
41 unsigned long adfBootSum(unsigned char *buf);
42 unsigned long adfNormalSum( unsigned char *buf, int offset, int bufLen );
44 void swapEndian( unsigned char *buf, int type );
46 #endif /* _ADF_RAW_H */
48 /*##########################################################################*/