fat.pp 670 B

1234567891011121314151617181920212223242526
  1. unit fat;
  2. {$mode objfpc}
  3. {$J+}
  4. {$INLINE ON}
  5. {$MACRO ON}
  6. {$ASSERTIONS ON}
  7. interface
  8. uses
  9. ctypes, gctypes, gccore;
  10. function fatInit(cacheSize: cuint32; setAsDefaultDevice: cbool): cbool; cdecl; external;
  11. function fatInitDefault: cbool; cdecl; external;
  12. function fatMountSimple(name_: pcchar; interface_: PDISC_INTERFACE): cbool; cdecl; external;
  13. function fatMount(name_: pcchar; interface_: PDISC_INTERFACE; startSector: sec_t; cacheSize, SectorsPerPage: cuint32): cbool; cdecl; external;
  14. procedure fatUnmount(name_: pcchar); cdecl; external;
  15. procedure fatGetVolumeLabel(name_, label_: pcchar); cdecl; external;
  16. implementation
  17. initialization
  18. {$linklib fat}
  19. end.