]>
git.saurik.com Git - apt.git/blob - apt-pkg/contrib/cdromutl.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: cdromutl.h,v 1.3 2001/05/07 05:06:52 jgg Exp $
4 /* ######################################################################
6 CDROM Utilities - Some functions to manipulate CDROM mounts.
8 ##################################################################### */
10 #ifndef PKGLIB_CDROMUTL_H
11 #define PKGLIB_CDROMUTL_H
15 // mount cdrom, DeviceName (e.g. /dev/sr0) is optional
16 bool MountCdrom(std::string Path
, std::string DeviceName
="");
17 bool UnmountCdrom(std::string Path
);
18 bool IdentCdrom(std::string CD
,std::string
&Res
,unsigned int Version
= 2);
19 bool IsMounted(std::string
&Path
);
20 std::string
FindMountPointForDevice(const char *device
);