VirtualBox

Changeset 60744 in vbox for trunk


Ignore:
Timestamp:
Apr 28, 2016 3:30:02 PM (9 years ago)
Author:
vboxsync
Message:

Main/USBProxyBackend: Add flag for each backend indicating whether we have to fake the device state update or Linux and USB/IP backends don't work

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBProxyBackend.h

    r60742 r60744  
    9595     */
    9696    virtual void deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, PUSBDEVICE pDev);
     97    virtual bool isFakeUpdateRequired();
    9798
    9899private:
     
    205206    virtual PUSBDEVICE getDevices(void);
    206207    virtual void deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, PUSBDEVICE aUSBDevice);
     208    virtual bool isFakeUpdateRequired();
    207209
    208210private:
     
    404406    virtual int interruptWait(void);
    405407    virtual PUSBDEVICE getDevices(void);
     408    virtual bool isFakeUpdateRequired();
    406409
    407410private:
  • trunk/src/VBox/Main/src-server/USBProxyBackend.cpp

    r60742 r60744  
    232232}
    233233
     234
     235bool USBProxyBackend::isFakeUpdateRequired()
     236{
     237    return false;
     238}
    234239
    235240// Internals
     
    661666            devLock.release();
    662667            alock.release();
    663             /** @todo: Add mthod for every backend indicating whether to use fake updating. */
    664 #if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD)
    665             m_pUsbProxyService->i_updateDeviceState(pHostDevice, pCur, true /* fFakeUpdate */);
    666 #else
    667             m_pUsbProxyService->i_updateDeviceState(pHostDevice, pCur, false /* fFakeUpdate */);
    668 #endif
     668            m_pUsbProxyService->i_updateDeviceState(pHostDevice, pCur, isFakeUpdateRequired());
    669669            alock.acquire();
    670670            ++it;
  • trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp

    r60742 r60744  
    435435
    436436
     437bool USBProxyBackendUsbIp::isFakeUpdateRequired()
     438{
     439    return true;
     440}
     441
     442
    437443int USBProxyBackendUsbIp::wait(RTMSINTERVAL aMillies)
    438444{
  • trunk/src/VBox/Main/src-server/linux/USBProxyBackendLinux.cpp

    r60742 r60744  
    288288
    289289
     290bool USBProxyBackendLinux::isFakeUpdateRequired()
     291{
     292    return true;
     293}
     294
    290295int USBProxyBackendLinux::wait(RTMSINTERVAL aMillies)
    291296{
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