summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/cdromutl.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-07-22 18:01:43 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-07-22 18:01:43 +0200
commita6418a4b93376e0e4acf36e88eb1d0ec41e024df (patch)
tree9c6b5936266036735bde19f2a13a53bc396dc577 /apt-pkg/contrib/cdromutl.h
parentbe5b558134ade780e11f50dede99d041a1defd7f (diff)
* methods/cdrom.cc:
- add Acquire::Cdrom::mount "apt-udev-auto" magic to allow dynamically finding the cdrom device * apt-pkg/contrib/cdromutl.{h,cc}: - support additional (optional) DeviceName parameter for MountCdrom()
Diffstat (limited to 'apt-pkg/contrib/cdromutl.h')
-rw-r--r--apt-pkg/contrib/cdromutl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/contrib/cdromutl.h b/apt-pkg/contrib/cdromutl.h
index f24bb8c70..9d14249c5 100644
--- a/apt-pkg/contrib/cdromutl.h
+++ b/apt-pkg/contrib/cdromutl.h
@@ -14,7 +14,8 @@
using std::string;
-bool MountCdrom(string Path);
+// mount cdrom, DeviceName (e.g. /dev/sr0) is optional
+bool MountCdrom(string Path, string DeviceName="");
bool UnmountCdrom(string Path);
bool IdentCdrom(string CD,string &Res,unsigned int Version = 2);
bool IsMounted(string &Path);