grub2: bring back build of aros-side grub2 tools
[AROS.git] / tools / adflib / adf_bitm.h
blobda8cb97ec2b3bb0e8f117fbe72ada40e5baa1ee1
1 #ifndef ADF_BITM_H
2 #define ADF_BITM_H
3 /*
4 * ADF Library. (C) 1997-1999 Laurent Clevy
6 * adf_bitm.h
8 * bitmap code
9 */
11 #include"adf_str.h"
13 RETCODE adfReadBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
14 RETCODE adfWriteBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
15 RETCODE adfReadBitmapExtBlock(struct Volume*, SECTNUM nSect, struct bBitmapExtBlock*);
16 RETCODE adfWriteBitmapExtBlock(struct Volume*, SECTNUM, struct bBitmapExtBlock* );
18 SECTNUM adfGet1FreeBlock(struct Volume *vol);
19 RETCODE adfUpdateBitmap(struct Volume *vol);
20 PREFIX uint32_t adfCountFreeBlocks(struct Volume* vol);
21 RETCODE adfReadBitmap(struct Volume* , struct bRootBlock* root);
22 BOOL adfIsBlockFree(struct Volume* vol, SECTNUM nSect);
23 void adfSetBlockFree(struct Volume* vol, SECTNUM nSect);
24 void adfSetBlockUsed(struct Volume* vol, SECTNUM nSect);
25 BOOL adfGetFreeBlocks(struct Volume* vol, int nbSect, SECTNUM* sectList);
26 RETCODE adfCreateBitmap(struct Volume *vol);
27 RETCODE adfWriteNewBitmap(struct Volume *vol);
28 void adfFreeBitmap(struct Volume *vol);
30 #endif /* ADF_BITM_H */
32 /*#######################################################################################*/