Change mmc_have_interface() to mmc_get_interface() as only one interface can ever be returned.
Change example to the correct behaviour, that the application should do the checking not the library. Added new interfaces defined from MMC >=3 (IEEE1394B, SATA, USB) and the Vendor Unique one (can be important) that was missing.
This commit is contained in:
@@ -188,7 +188,7 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (mmc_have_interface(p_cdio, CDIO_MMC_FEATURE_INTERFACE_ATAPI))
|
||||
if (mmc_get_interface(p_cdio) == CDIO_MMC_FEATURE_INTERFACE_ATAPI)
|
||||
printf("CD-ROM is an ATAPI interface.\n");
|
||||
else
|
||||
printf("CD-ROM is not an ATAPI interface.\n");
|
||||
|
||||
Reference in New Issue
Block a user