cdromutl.h 740 B

12345678910111213141516171819202122232425
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: cdromutl.h,v 1.3 2001/05/07 05:06:52 jgg Exp $
  4. /* ######################################################################
  5. CDROM Utilities - Some functions to manipulate CDROM mounts.
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef PKGLIB_CDROMUTL_H
  9. #define PKGLIB_CDROMUTL_H
  10. #include <string>
  11. using std::string;
  12. // mount cdrom, DeviceName (e.g. /dev/sr0) is optional
  13. bool MountCdrom(string Path, string DeviceName="");
  14. bool UnmountCdrom(string Path);
  15. bool IdentCdrom(string CD,string &Res,unsigned int Version = 2);
  16. bool IsMounted(string &Path);
  17. string FindMountPointForDevice(const char *device);
  18. #endif