cdromutl.h 812 B

123456789101112131415161718192021222324252627
  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. #ifndef APT_8_CLEANER_HEADERS
  12. using std::string;
  13. #endif
  14. // mount cdrom, DeviceName (e.g. /dev/sr0) is optional
  15. bool MountCdrom(std::string Path, std::string DeviceName="");
  16. bool UnmountCdrom(std::string Path);
  17. bool IdentCdrom(std::string CD,std::string &Res,unsigned int Version = 2);
  18. bool IsMounted(std::string &Path);
  19. std::string FindMountPointForDevice(const char *device);
  20. #endif