Changeset 5741 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 14, 2007 12:47:10 PM (17 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r5721 r5741 3372 3372 HRESULT Console::onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs) 3373 3373 { 3374 #ifdef VBOX_WITH_USB 3374 3375 LogFlowThisFunc (("aDevice=%p aError=%p\n", aDevice, aError)); 3375 3376 … … 3421 3422 3422 3423 return rc; 3424 3425 #else /* !VBOX_WITH_USB */ 3426 return E_FAIL; 3427 #endif /* !VBOX_WITH_USB */ 3423 3428 } 3424 3429 … … 3432 3437 IVirtualBoxErrorInfo *aError) 3433 3438 { 3439 #ifdef VBOX_WITH_USB 3434 3440 Guid Uuid (aId); 3435 3441 LogFlowThisFunc (("aId={%Vuuid} aError=%p\n", Uuid.raw(), aError)); … … 3500 3506 3501 3507 return rc; 3508 3509 #else /* !VBOX_WITH_USB */ 3510 return E_FAIL; 3511 #endif /* !VBOX_WITH_USB */ 3502 3512 } 3503 3513 … … 4678 4688 } 4679 4689 4690 #ifdef VBOX_WITH_USB 4691 4680 4692 /** 4681 4693 * Sends a request to VMM to attach the given host device. … … 4726 4738 alock.leave(); 4727 4739 4728 /** @todo just do everything here*/4740 /** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */ 4729 4741 PVMREQ pReq = NULL; 4730 4742 int vrc = VMR3ReqCall (mpVM, &pReq, RT_INDEFINITE_WAIT, … … 4852 4864 4853 4865 PVMREQ pReq; 4854 /** @todo just do everything here */4866 /** @todo just do everything here and only wrap the PDMR3Usb call. That'll offload some notification stuff from the EMT thread. */ 4855 4867 int vrc = VMR3ReqCall (mpVM, &pReq, RT_INDEFINITE_WAIT, 4856 4868 (PFNRT) usbDetachCallback, 4, … … 4916 4928 return vrc; 4917 4929 } 4930 4931 #endif /* VBOX_WITH_USB */ 4918 4932 4919 4933 /** -
trunk/src/VBox/Main/include/ConsoleImpl.h
r5721 r5741 404 404 const char *pszPath, bool fPassthrough); 405 405 406 #ifdef VBOX_WITH_USB 406 407 HRESULT attachUSBDevice (IUSBDevice *aHostDevice, ULONG aMaskedIfs); 407 408 HRESULT detachUSBDevice (USBDeviceList::iterator &aIt); … … 412 413 static DECLCALLBACK(int) 413 414 usbDetachCallback (Console *that, USBDeviceList::iterator *aIt, PCRTUUID aUuid); 415 #endif 414 416 415 417 static DECLCALLBACK (int)
Note:
See TracChangeset
for help on using the changeset viewer.