VirtualBox

Changeset 51578 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 9, 2014 9:45:16 AM (11 years ago)
Author:
vboxsync
Message:

Mac OS X host: improve support for host optical drives; add support for CD and BlueRay drives.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/iokit.cpp

    r51163 r51578  
    12761276
    12771277/**
    1278  * Enumerate the DVD drives returning a FIFO of device name strings.
     1278 * Enumerate the CD, DVD and BlueRay drives returning a FIFO of device name strings.
    12791279 *
    12801280 * @returns Pointer to the head.
     
    12861286
    12871287    /*
    1288      * Create a matching dictionary for searching for DVD services in the IOKit.
     1288     * Create a matching dictionary for searching for CD, DVD and BlueRay services in the IOKit.
    12891289     *
    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.
    12951293     */
    1296     CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IODVDServices");
     1294    CFMutableDictionaryRef RefMatchingDict = IOServiceMatching("IOCDBlockStorageDevice");
    12971295    AssertReturn(RefMatchingDict, NULL);
    12981296
     
    13061304
    13071305    /*
    1308      * Enumerate the DVD services.
     1306     * Enumerate the matching services.
    13091307     * (This enumeration must be identical to the one performed in DrvHostBase.cpp.)
    13101308     */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette