adf_raw.h
上传用户:hy_wanghao
上传日期:2007-01-08
资源大小:279k
文件大小:1k
源码类别:

Shell编程

开发平台:

Visual C++

  1. /*
  2.  *  ADF Library. (C) 1997-1998 Laurent Clevy
  3.  *
  4.  *  adf_raw.h
  5.  *
  6.  */
  7. #ifndef _ADF_RAW_H
  8. #define _ADF_RAW_H 1
  9. #include "adf_str.h"
  10. #define SW_LONG  4
  11. #define SW_SHORT 2
  12. #define SW_CHAR  1
  13. #define MAX_SWTYPE 11
  14. #define SWBL_BOOT         0
  15. #define SWBL_ROOT         1
  16. #define SWBL_DATA         2
  17. #define SWBL_FILE         3
  18. #define SWBL_ENTRY        3
  19. #define SWBL_DIR          3
  20. #define SWBL_CACHE        4
  21. #define SWBL_BITMAP       5
  22. #define SWBL_FEXT         5
  23. #define SWBL_LINK         6
  24. #define SWBL_BITMAPE      5
  25. #define SWBL_RDSK         7
  26. #define SWBL_BADB         8
  27. #define SWBL_PART         9
  28. #define SWBL_FSHD         10 
  29. #define SWBL_LSEG         11
  30. RETCODE adfReadRootBlock(struct Volume*, long nSect, struct bRootBlock* root);
  31. RETCODE adfWriteRootBlock(struct Volume* vol, long nSect, struct bRootBlock* root);
  32. RETCODE adfReadBootBlock(struct Volume*, struct bBootBlock* boot);
  33. RETCODE adfWriteBootBlock(struct Volume* vol, struct bBootBlock* boot);
  34. unsigned long adfBootSum(unsigned char *buf);
  35. unsigned long adfNormalSum( unsigned char *buf, int offset, int bufLen );
  36. void swapEndian( unsigned char *buf, int type );
  37. #endif /* _ADF_RAW_H */
  38. /*##########################################################################*/