One more time, go over logic of get_drives_with_cap.

This commit is contained in:
rocky
2006-03-27 02:48:41 +00:00
parent 8b24c3a47e
commit 10942d5ba3
4 changed files with 67 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: drives.cpp,v 1.3 2006/02/09 18:16:29 rocky Exp $
$Id: drives.cpp,v 1.4 2006/03/27 02:48:41 rocky Exp $
Copyright (C) 2003, 2004, 2006 Rocky Bernstein <rocky@panix.com>
@@ -54,7 +54,7 @@ print_drive_class(const char *psz_msg, cdio_fs_anal_t bitmask,
char **ppsz_cd_drives=NULL, **c;
printf("%s...\n", psz_msg);
ppsz_cd_drives = getDevices(NULL, bitmask);
ppsz_cd_drives = getDevices(NULL, bitmask, b_any);
if (NULL != ppsz_cd_drives)
for( c = ppsz_cd_drives; *c != NULL; c++ ) {
printf("Drive %s\n", *c);
@@ -82,9 +82,12 @@ main(int argc, const char *argv[])
freeDeviceList(ppsz_cd_drives);
print_drive_class("All CD-ROM drives (again)", CDIO_FS_MATCH_ALL);
print_drive_class("CD-DA drives...", CDIO_FS_AUDIO);
print_drive_class("All drives with ISO 9660...", CDIO_FS_ISO_9660);
print_drive_class("VCD drives...",
print_drive_class("CD-ROM drives with a CD-DA loaded...", CDIO_FS_AUDIO);
print_drive_class("CD-ROM drives with some sort of ISO 9660 filesystem...",
(CDIO_FS_ISO_9660
|CDIO_FS_ISO_HFS
|CDIO_FS_ISO_9660_INTERACTIVE), true);
print_drive_class("(S)VCD drives...",
(CDIO_FS_ANAL_SVCD|CDIO_FS_ANAL_CVD|
CDIO_FS_ANAL_VIDEOCD|CDIO_FS_UNKNOWN), true);
return 0;