- Timestamp:
- Apr 28, 2016 3:30:02 PM (9 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/USBProxyBackend.h
r60742 r60744 95 95 */ 96 96 virtual void deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, PUSBDEVICE pDev); 97 virtual bool isFakeUpdateRequired(); 97 98 98 99 private: … … 205 206 virtual PUSBDEVICE getDevices(void); 206 207 virtual void deviceAdded(ComObjPtr<HostUSBDevice> &aDevice, PUSBDEVICE aUSBDevice); 208 virtual bool isFakeUpdateRequired(); 207 209 208 210 private: … … 404 406 virtual int interruptWait(void); 405 407 virtual PUSBDEVICE getDevices(void); 408 virtual bool isFakeUpdateRequired(); 406 409 407 410 private: -
trunk/src/VBox/Main/src-server/USBProxyBackend.cpp
r60742 r60744 232 232 } 233 233 234 235 bool USBProxyBackend::isFakeUpdateRequired() 236 { 237 return false; 238 } 234 239 235 240 // Internals … … 661 666 devLock.release(); 662 667 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()); 669 669 alock.acquire(); 670 670 ++it; -
trunk/src/VBox/Main/src-server/generic/USBProxyBackendUsbIp.cpp
r60742 r60744 435 435 436 436 437 bool USBProxyBackendUsbIp::isFakeUpdateRequired() 438 { 439 return true; 440 } 441 442 437 443 int USBProxyBackendUsbIp::wait(RTMSINTERVAL aMillies) 438 444 { -
trunk/src/VBox/Main/src-server/linux/USBProxyBackendLinux.cpp
r60742 r60744 288 288 289 289 290 bool USBProxyBackendLinux::isFakeUpdateRequired() 291 { 292 return true; 293 } 294 290 295 int USBProxyBackendLinux::wait(RTMSINTERVAL aMillies) 291 296 {
Note:
See TracChangeset
for help on using the changeset viewer.