summaryrefslogtreecommitdiffstats
path: root/perl-install/c/stuff.xs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-06-05 17:04:34 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-06-05 17:04:34 +0000
commit5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1 (patch)
tree58ea6bef5edbc25f0b737df61f507dc159ff5335 /perl-install/c/stuff.xs.pm
parentf4ad582b9636b4ade9a332380a7a15d75a92b429 (diff)
downloaddrakx-backup-do-not-use-5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1.tar
drakx-backup-do-not-use-5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1.tar.gz
drakx-backup-do-not-use-5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1.tar.bz2
drakx-backup-do-not-use-5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1.tar.xz
drakx-backup-do-not-use-5d165fecad7ba9831fc47d47dc9d9a0a0ca66ea1.zip
nicer solution for detecting DVD drives (still need SCSI detection)
Diffstat (limited to 'perl-install/c/stuff.xs.pm')
-rw-r--r--perl-install/c/stuff.xs.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm
index 3fa08bc0a..14d9ddeb5 100644
--- a/perl-install/c/stuff.xs.pm
+++ b/perl-install/c/stuff.xs.pm
@@ -164,6 +164,14 @@ isBurner(fd)
OUTPUT:
RETVAL
+int
+isDvdDrive(fd)
+ int fd
+ CODE:
+ RETVAL = ioctl(fd, CDROM_GET_CAPABILITY) & CDC_DVD;
+ OUTPUT:
+ RETVAL
+
unsigned int
total_sectors(fd)
int fd