VirtualBox

Changeset 8401 in vbox for trunk/src


Ignore:
Timestamp:
Apr 26, 2008 3:48:59 AM (17 years ago)
Author:
vboxsync
Message:

USB: Some review notes and method renaming.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

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

    r8155 r8401  
    13001300            id.raw());
    13011301
     1302/** @todo r=bird this doesn't belong here but in the HostUSBDevice bit. */
    13021303    AutoWriteLock devLock (device);
    13031304
     
    13331334
    13341335    /* try to capture the device */
    1335     device->requestCapture (aMachine);
     1336    device->requestCaptureForVM (aMachine);
    13361337
    13371338    return S_OK;
     
    20462047
    20472048    /// @todo it may be better to take a copy of filters to iterate and leave
    2048     /// the host lock before calling HostUSBDevice:requestCapture() (which
    2049     /// calls the VM process).
     2049    /// the host lock before calling HostUSBDevice:requestCaptureForVM() (which
     2050    /// may call the VM process).
     2051    /// Moving this matching into USBProxyService at the same time would be
     2052    /// nice too, that'll simplify the locking a bit more.
    20502053
    20512054    /* apply global filters */
     
    20612064            if (action == USBDeviceFilterAction_Ignore)
    20622065            {
    2063                 /* request to give the device back to the host*/
    2064                 aDevice->requestRelease();
     2066                /* request to give the device back to the host */
     2067                aDevice->requestReleaseToHost();
    20652068                /* nothing to do any more */
    20662069                return S_OK;
     
    20902093            /* no any filter matched at all */
    20912094            /* request to give the device back to the host */
    2092             aDevice->requestRelease();
     2095            aDevice->requestReleaseToHost();
    20932096        }
    20942097        else
     
    21372140    if (hasMatch)
    21382141    {
     2142        /** @todo r=bird: this is wrong as requestAttachToVM may return false for different reasons that we. */
    21392143        /* try to capture the device */
    2140         return aDevice->requestCapture (aMachine, maskedIfs);
     2144        return aDevice->requestCaptureForVM (aMachine, maskedIfs);
    21412145    }
    21422146
  • trunk/src/VBox/Main/Makefile.kmk

    r8251 r8401  
    5252 endif
    5353 VBOX_MAIN_DEFS += VBOX_WITH_UNIXY_TAP_NETWORKING
     54endif
     55ifeq ($(USERNAME),bird) # temporary
     56 #VBOX_MAIN_DEFS += NEW_HOSTUSBDEVICE_STATE
    5457endif
    5558## @todo later when RTSemRWIsWriteOwner and RTSemRWGetWriteRecursion are done
  • trunk/src/VBox/Main/include/HostImpl.h

    r8155 r8401  
    106106
    107107#ifdef VBOX_WITH_USB
     108    /** @todo We could benefit from moving all this USB management into USBProxyService
     109     * instead of spreading out like this. Host only needs to keep the host filter list and make
     110     * it available to the proxy service. Then only the proxy needs to be intimate friends
     111     * with HostUSBDevice, which would simplify the overall picture a bit.
     112     * But, I don't dare move anything about this right now though, as I have no time nor any
     113     * wishes to provoke the deadlock troll so close to a release... */
    108114    HRESULT onUSBDeviceFilterChange (HostUSBDeviceFilter *aFilter,
    109115                                     BOOL aActiveChanged = FALSE);
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