- Timestamp:
- Apr 26, 2008 3:48:59 AM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r8155 r8401 1300 1300 id.raw()); 1301 1301 1302 /** @todo r=bird this doesn't belong here but in the HostUSBDevice bit. */ 1302 1303 AutoWriteLock devLock (device); 1303 1304 … … 1333 1334 1334 1335 /* try to capture the device */ 1335 device->requestCapture (aMachine);1336 device->requestCaptureForVM (aMachine); 1336 1337 1337 1338 return S_OK; … … 2046 2047 2047 2048 /// @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. 2050 2053 2051 2054 /* apply global filters */ … … 2061 2064 if (action == USBDeviceFilterAction_Ignore) 2062 2065 { 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(); 2065 2068 /* nothing to do any more */ 2066 2069 return S_OK; … … 2090 2093 /* no any filter matched at all */ 2091 2094 /* request to give the device back to the host */ 2092 aDevice->requestRelease ();2095 aDevice->requestReleaseToHost(); 2093 2096 } 2094 2097 else … … 2137 2140 if (hasMatch) 2138 2141 { 2142 /** @todo r=bird: this is wrong as requestAttachToVM may return false for different reasons that we. */ 2139 2143 /* try to capture the device */ 2140 return aDevice->requestCapture (aMachine, maskedIfs);2144 return aDevice->requestCaptureForVM (aMachine, maskedIfs); 2141 2145 } 2142 2146 -
trunk/src/VBox/Main/Makefile.kmk
r8251 r8401 52 52 endif 53 53 VBOX_MAIN_DEFS += VBOX_WITH_UNIXY_TAP_NETWORKING 54 endif 55 ifeq ($(USERNAME),bird) # temporary 56 #VBOX_MAIN_DEFS += NEW_HOSTUSBDEVICE_STATE 54 57 endif 55 58 ## @todo later when RTSemRWIsWriteOwner and RTSemRWGetWriteRecursion are done -
trunk/src/VBox/Main/include/HostImpl.h
r8155 r8401 106 106 107 107 #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... */ 108 114 HRESULT onUSBDeviceFilterChange (HostUSBDeviceFilter *aFilter, 109 115 BOOL aActiveChanged = FALSE);
Note:
See TracChangeset
for help on using the changeset viewer.