Belarusian
[AROS.git] / tools / adflib / adf_bitm.h
blob641a94daece81ea5dc98bc4a1347e863e8760654
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"
12 #include"prefix.h"
14 RETCODE adfReadBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
15 RETCODE adfWriteBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
16 RETCODE adfReadBitmapExtBlock(struct Volume*, SECTNUM nSect, struct bBitmapExtBlock*);
17 RETCODE adfWriteBitmapExtBlock(struct Volume*, SECTNUM, struct bBitmapExtBlock* );
19 SECTNUM adfGet1FreeBlock(struct Volume *vol);
20 RETCODE adfUpdateBitmap(struct Volume *vol);
21 PREFIX long adfCountFreeBlocks(struct Volume* vol);
22 RETCODE adfReadBitmap(struct Volume* , SECTNUM nBlock, struct bRootBlock* root);
23 BOOL adfIsBlockFree(struct Volume* vol, SECTNUM nSect);
24 void adfSetBlockFree(struct Volume* vol, SECTNUM nSect);
25 void adfSetBlockUsed(struct Volume* vol, SECTNUM nSect);
26 BOOL adfGetFreeBlocks(struct Volume* vol, int nbSect, SECTNUM* sectList);
27 RETCODE adfCreateBitmap(struct Volume *vol);
28 RETCODE adfWriteNewBitmap(struct Volume *vol);
29 void adfFreeBitmap(struct Volume *vol);
31 #endif /* ADF_BITM_H */
33 /*#######################################################################################*/