VirtualBox

Ignore:
Timestamp:
Apr 29, 2008 3:20:44 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
30336
Message:

More USB stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r8439 r8471  
    20112011            Guid (aId).raw());
    20122012
    2013 # ifdef RT_OS_DARWIN
    2014     /* Notify the USB Proxy that we're about to detach the device. Since
    2015      * we don't dare do IPC when holding the console lock, so we'll have
    2016      * to revalidate the device when we get back. */
     2013# if defined(RT_OS_DARWIN) || defined(NEW_HOSTUSBDEVICE_STATE)
     2014    /*
     2015     * Inform the USB device and USB proxy about what's cooking.
     2016     */
    20172017    alock.leave();
    20182018    HRESULT rc2 = mControl->DetachUSBDevice (aId, false /* aDone */);
     
    20202020        return rc2;
    20212021    alock.enter();
    2022 
     2022#  ifndef NEW_HOSTUSBDEVICE_STATE
    20232023    for (it = mUSBDevices.begin(); it != mUSBDevices.end(); ++ it)
    20242024        if ((*it)->id() == aId)
     
    20262026    if (it == mUSBDevices.end())
    20272027        return S_OK;
     2028#  endif
    20282029# endif
    20292030
    2030     /* First, request VMM to detach the device */
     2031    /* Request the PDM to detach the USB device. */
    20312032    HRESULT rc = detachUSBDevice (it);
    20322033
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