Changeset 51578 in vbox for trunk/src/VBox
- Timestamp:
- Jun 9, 2014 9:45:16 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 94273
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DrvHostBase.cpp
r50695 r51578 794 794 795 795 /* 796 * Create a matching dictionary for searching for DVDservices in the IOKit.796 * Create a matching dictionary for searching for CD, DVD and BlueRay services in the IOKit. 797 797 * 798 * [If I understand this correctly, plain CDROMs doesn't show up as 799 * IODVDServices. Too keep things simple, we will only support DVDs 800 * until somebody complains about it and we get hardware to test it on. 801 * (Unless I'm much mistaken, there aren't any (orignal) intel macs with 802 * plain cdroms.)] 803 */ 804 CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IODVDServices"); 798 * The idea is to find all the devices which are of class IOCDBlockStorageDevice. 799 * CD devices are represented by IOCDBlockStorageDevice class itself, while DVD and BlueRay ones 800 * have it as a parent class. 801 */ 802 CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IOCDBlockStorageDevice"); 805 803 AssertReturn(RefMatchingDict, NULL); 806 804 … … 814 812 815 813 /* 816 * Enumerate the DVDdrives (services).817 * (This enumeration must be identical to the one performed in DrvHostBase.cpp.)814 * Enumerate the matching drives (services). 815 * (This enumeration must be identical to the one performed in Main/src-server/darwin/iokit.cpp.) 818 816 */ 819 817 int rc = VERR_FILE_NOT_FOUND; -
trunk/src/VBox/Main/src-server/darwin/iokit.cpp
r51163 r51578 1276 1276 1277 1277 /** 1278 * Enumerate the DVDdrives returning a FIFO of device name strings.1278 * Enumerate the CD, DVD and BlueRay drives returning a FIFO of device name strings. 1279 1279 * 1280 1280 * @returns Pointer to the head. … … 1286 1286 1287 1287 /* 1288 * Create a matching dictionary for searching for DVDservices in the IOKit.1288 * Create a matching dictionary for searching for CD, DVD and BlueRay services in the IOKit. 1289 1289 * 1290 * [If I understand this correctly, plain CDROMs doesn't show up as 1291 * IODVDServices. Too keep things simple, we will only support DVDs 1292 * until somebody complains about it and we get hardware to test it on. 1293 * (Unless I'm much mistaken, there aren't any (orignal) intel macs with 1294 * plain cdroms.)] 1290 * The idea is to find all the devices which are of class IOCDBlockStorageDevice. 1291 * CD devices are represented by IOCDBlockStorageDevice class itself, while DVD and BlueRay ones 1292 * have it as a parent class. 1295 1293 */ 1296 CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IO DVDServices");1294 CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IOCDBlockStorageDevice"); 1297 1295 AssertReturn(RefMatchingDict, NULL); 1298 1296 … … 1306 1304 1307 1305 /* 1308 * Enumerate the DVDservices.1306 * Enumerate the matching services. 1309 1307 * (This enumeration must be identical to the one performed in DrvHostBase.cpp.) 1310 1308 */
Note:
See TracChangeset
for help on using the changeset viewer.