VirtualBox

Changeset 37709 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Jun 30, 2011 1:51:51 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72570
Message:

Main/MediumAttachment+Machine: add a setting which controls the guest-triggered medium eject behavior, fix handling "implicit" media, and corresponding VBoxManage and documentation updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r37606 r37709  
    16911691             || (    (deviceType                == a.deviceType)
    16921692                  && (fPassThrough              == a.fPassThrough)
     1693                  && (fTempEject                == a.fTempEject)
    16931694                  && (lPort                     == a.lPort)
    16941695                  && (lDevice                   == a.lDevice)
     
    29912992                    att.deviceType = DeviceType_DVD;
    29922993                    pelmAttached->getAttributeValue("passthrough", att.fPassThrough);
     2994                    pelmAttached->getAttributeValue("tempeject", att.fTempEject);
    29932995                }
    29942996                else if (strTemp == "Floppy")
     
    30623064            att.lDevice = 0;
    30633065            pelmHwChild->getAttributeValue("passthrough", att.fPassThrough);
     3066            pelmHwChild->getAttributeValue("tempeject", att.fTempEject);
    30643067
    30653068            const xml::ElementNode *pDriveChild;
     
    36853688
    36863689                        pelmDVD->setAttribute("passthrough", att.fPassThrough);
     3690                        if (att.fTempEject)
     3691                            pelmDVD->setAttribute("tempeject", att.fTempEject);
    36873692                        if (!att.uuid.isEmpty())
    36883693                            pelmDVD->createChild("Image")->setAttribute("uuid", att.uuid.toStringCurly());
     
    42294234                    pcszType = "DVD";
    42304235                    pelmDevice->setAttribute("passthrough", att.fPassThrough);
     4236                    if (att.fTempEject)
     4237                        pelmDevice->setAttribute("tempeject", att.fTempEject);
    42314238                break;
    42324239
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