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:
2012-04-29 22:01:05 +01:00
parent f1cc4e29d3
commit 0ecb310357
5 changed files with 44 additions and 28 deletions

View File

@@ -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");