cdrom.pp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. $Id$
  3. Copyright (c) 1999-2000 by Michael Van Canneyt
  4. Unit to read a CDROM disc TOC and get a list of CD Rom devices
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. unit cdrom;
  12. {$mode objfpc}
  13. {$h+}
  14. interface
  15. Type
  16. TTocEntry = Record
  17. min, sec, frame : Integer;
  18. end;
  19. PTocEntry = ^TTocEntry;
  20. Function ReadCDTOC(Device : String; Var CDTOC : Array of TTocEntry) : Integer;
  21. Function GetCDRomDevices(Var Devices : Array of string) : Integer;
  22. Implementation
  23. {$ifdef linux}
  24. {$i cdromlin.inc}
  25. {$else}
  26. {$i cdromw32.inc}
  27. {$endif}
  28. end.
  29. {
  30. $Log$
  31. Revision 1.2 2003-01-05 20:46:32 michael
  32. + Added ; at the end of the record declaration for fpdoc
  33. Revision 1.1 2002/09/08 14:03:31 michael
  34. + Initial implementation on Linux/win32
  35. }