VirtualBox

Changeset 49117 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 15, 2013 1:04:23 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89962
Message:

USB: Missing change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/VUSBDevice.cpp

    r48947 r49117  
    15031503
    15041504/**
     1505 * @interface_method_impl{VUSBIDEVICE,pfnIsEmulated}
     1506 */
     1507DECLCALLBACK(bool) vusbDevIsEmulated(PVUSBIDEVICE pInterface)
     1508{
     1509    PVUSBDEV pDev = (PVUSBDEV)pInterface;
     1510    bool fEmulated = !!(pDev->pUsbIns->pReg->fFlags & PDM_USBREG_EMULATED_DEVICE);
     1511
     1512    LogFlowFunc(("pInterface=%p\n", pInterface));
     1513
     1514    LogFlowFunc(("returns %RTbool\n", fEmulated));
     1515    return fEmulated;
     1516}
     1517
     1518
     1519/**
    15051520 * The maximum number of interfaces the device can have in all of it's configuration.
    15061521 *
     
    15431558    Assert(!pDev->IDevice.pfnGetState);
    15441559    pDev->IDevice.pfnGetState = vusbDevGetState;
     1560    Assert(!pDev->IDevice.pfnIsEmulated);
     1561    pDev->IDevice.pfnIsEmulated = vusbDevIsEmulated;
    15451562    pDev->pUsbIns = pUsbIns;
    15461563    pDev->pNext = NULL;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette