adf_bitm.h
上传用户:hy_wanghao
上传日期:2007-01-08
资源大小:279k
文件大小:1k
- #ifndef ADF_BITM_H
- #define ADF_BITM_H
- /*
- * ADF Library. (C) 1997-1999 Laurent Clevy
- *
- * adf_bitm.h
- *
- * bitmap code
- */
- #include"adf_str.h"
- #include"prefix.h"
- RETCODE adfReadBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
- RETCODE adfWriteBitmapBlock(struct Volume*, SECTNUM nSect, struct bBitmapBlock*);
- RETCODE adfReadBitmapExtBlock(struct Volume*, SECTNUM nSect, struct bBitmapExtBlock*);
- RETCODE adfWriteBitmapExtBlock(struct Volume*, SECTNUM, struct bBitmapExtBlock* );
- SECTNUM adfGet1FreeBlock(struct Volume *vol);
- RETCODE adfUpdateBitmap(struct Volume *vol);
- PREFIX long adfCountFreeBlocks(struct Volume* vol);
- RETCODE adfReadBitmap(struct Volume* , SECTNUM nBlock, struct bRootBlock* root);
- BOOL adfIsBlockFree(struct Volume* vol, SECTNUM nSect);
- void adfSetBlockFree(struct Volume* vol, SECTNUM nSect);
- void adfSetBlockUsed(struct Volume* vol, SECTNUM nSect);
- BOOL adfGetFreeBlocks(struct Volume* vol, int nbSect, SECTNUM* sectList);
- RETCODE adfCreateBitmap(struct Volume *vol);
- RETCODE adfWriteNewBitmap(struct Volume *vol);
- void adfFreeBitmap(struct Volume *vol);
- #endif /* ADF_BITM_H */
- /*#######################################################################################*/