Changeset 3663 in vbox for trunk/src/VBox
- Timestamp:
- Jul 17, 2007 4:20:32 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r3578 r3663 1273 1273 1274 1274 /** 1275 * Notification from the VM process that it is going to detach (\a aDone = false) 1275 * Notification from the VM process that it is going to detach (\a aDone = false) 1276 1276 * or that is has just detach (\a aDone = true) the given USB device. 1277 * 1278 * When \a aDone = false we only inform the USB Proxy about what the vm is 1277 * 1278 * When \a aDone = false we only inform the USB Proxy about what the vm is 1279 1279 * up to so it doesn't get confused and create a new USB host device object 1280 1280 * (a Darwin issue). 1281 * 1282 * When \a aDone = true we replay all filters against the given USB device 1283 * excluding filters of the machine the device is currently marked as 1281 * 1282 * When \a aDone = true we replay all filters against the given USB device 1283 * excluding filters of the machine the device is currently marked as 1284 1284 * captured by. 1285 1285 * … … 1289 1289 * 1290 1290 * Called by Console from the VM process (throug IInternalMachineControl). 1291 * 1291 * 1292 1292 */ 1293 1293 HRESULT Host::detachUSBDevice (SessionMachine *aMachine, INPTR GUIDPARAM aId, BOOL aDone) … … 1348 1348 { 1349 1349 ComAssertRet (device->machine() == aMachine, E_FAIL); 1350 1350 1351 1351 /* re-apply filters on the device before giving it back to the host */ 1352 1352 device->setHeld(); … … 2129 2129 if (device->pendingStateEx() == HostUSBDevice::kDetachingPendingAttachFilters) 2130 2130 { 2131 /* The device has completed an asynchronous detach operation, subject 2131 /* The device has completed an asynchronous detach operation, subject 2132 2132 it to the filters and such if the current state permits this. 2133 2133 (handlePendingStateChange will disassociate itself from the machine.) */ … … 2142 2142 } 2143 2143 else 2144 Log (("USB: async detached devices reappeared in stated %d instead of %d!\n", 2144 Log (("USB: async detached devices reappeared in stated %d instead of %d!\n", 2145 2145 device->state(), USBDeviceState_USBDeviceCaptured)); 2146 2146 }
Note:
See TracChangeset
for help on using the changeset viewer.