VirtualBox

Changeset 5741 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Nov 14, 2007 12:47:10 PM (17 years ago)
Author:
vboxsync
Message:

try avoid the PDMR3USB bits when VBOX_WITH_USB isn't defined.

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

Legend:

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

    r5721 r5741  
    33723372HRESULT Console::onUSBDeviceAttach (IUSBDevice *aDevice, IVirtualBoxErrorInfo *aError, ULONG aMaskedIfs)
    33733373{
     3374#ifdef VBOX_WITH_USB
    33743375    LogFlowThisFunc (("aDevice=%p aError=%p\n", aDevice, aError));
    33753376
     
    34213422
    34223423    return rc;
     3424
     3425#else   /* !VBOX_WITH_USB */
     3426    return E_FAIL;
     3427#endif  /* !VBOX_WITH_USB */
    34233428}
    34243429
     
    34323437                                    IVirtualBoxErrorInfo *aError)
    34333438{
     3439#ifdef VBOX_WITH_USB
    34343440    Guid Uuid (aId);
    34353441    LogFlowThisFunc (("aId={%Vuuid} aError=%p\n", Uuid.raw(), aError));
     
    35003506
    35013507    return rc;
     3508
     3509#else   /* !VBOX_WITH_USB */
     3510    return E_FAIL;
     3511#endif  /* !VBOX_WITH_USB */
    35023512}
    35033513
     
    46784688}
    46794689
     4690#ifdef VBOX_WITH_USB
     4691
    46804692/**
    46814693 *  Sends a request to VMM to attach the given host device.
     
    47264738    alock.leave();
    47274739
    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. */
    47294741    PVMREQ pReq = NULL;
    47304742    int vrc = VMR3ReqCall (mpVM, &pReq, RT_INDEFINITE_WAIT,
     
    48524864
    48534865    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. */
    48554867    int vrc = VMR3ReqCall (mpVM, &pReq, RT_INDEFINITE_WAIT,
    48564868                           (PFNRT) usbDetachCallback, 4,
     
    49164928    return vrc;
    49174929}
     4930
     4931#endif /* VBOX_WITH_USB */
    49184932
    49194933/**
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r5721 r5741  
    404404                                          const char *pszPath, bool fPassthrough);
    405405
     406#ifdef VBOX_WITH_USB
    406407    HRESULT attachUSBDevice (IUSBDevice *aHostDevice, ULONG aMaskedIfs);
    407408    HRESULT detachUSBDevice (USBDeviceList::iterator &aIt);
     
    412413    static DECLCALLBACK(int)
    413414    usbDetachCallback (Console *that, USBDeviceList::iterator *aIt, PCRTUUID aUuid);
     415#endif
    414416
    415417    static DECLCALLBACK (int)
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