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 using std::string; 00016 00017 // mount cdrom, DeviceName (e.g. /dev/sr0) is optional 00018 bool MountCdrom(string Path, string DeviceName=""); 00019 bool UnmountCdrom(string Path); 00020 bool IdentCdrom(string CD,string &Res,unsigned int Version = 2); 00021 bool IsMounted(string &Path); 00022 string FindMountPointForDevice(const char *device); 00023 00024 #endif