apt
@VERSION@
|
00001 // -*- mode: cpp; mode: fold -*- 00002 // Description /*{{{*/ 00003 // $Id: cdromutl.h,v 1.3 2001/05/07 05:06:52 jgg Exp $ 00004 /* ###################################################################### 00005 00006 CDROM Utilities - Some functions to manipulate CDROM mounts. 00007 00008 ##################################################################### */ 00009 /*}}}*/ 00010 #ifndef PKGLIB_CDROMUTL_H 00011 #define PKGLIB_CDROMUTL_H 00012 00013 #include <string> 00014 00015 #ifndef APT_8_CLEANER_HEADERS 00016 using std::string; 00017 #endif 00018 00019 // mount cdrom, DeviceName (e.g. /dev/sr0) is optional 00020 bool MountCdrom(std::string Path, std::string DeviceName=""); 00021 bool UnmountCdrom(std::string Path); 00022 bool IdentCdrom(std::string CD,std::string &Res,unsigned int Version = 2); 00023 bool IsMounted(std::string &Path); 00024 std::string FindMountPointForDevice(const char *device); 00025 00026 #endif