VirtualBox

Changeset 71807 in vbox for trunk


Ignore:
Timestamp:
Apr 10, 2018 10:08:46 AM (7 years ago)
Author:
vboxsync
Message:

Devices/Storage: Forgot to commit files

Location:
trunk/src/VBox/Devices/Storage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvHostBase.cpp

    r69500 r71807  
    493493    *pfFeatures = pThis->IMediaEx.pfnIoReqSendScsiCmd ? PDMIMEDIAEX_FEATURE_F_RAWSCSICMD : 0;
    494494    return VINF_SUCCESS;
     495}
     496
     497/** @interface_method_impl{PDMIMEDIAEX,pfnNotifySuspend} */
     498static DECLCALLBACK(void) drvHostBaseNotifySuspend(PPDMIMEDIAEX pInterface)
     499{
     500    RT_NOREF(pInterface); /* Nothing to do here. */
    495501}
    496502
     
    12951301    /* IMediaEx */
    12961302    pThis->IMediaEx.pfnQueryFeatures            = drvHostBaseQueryFeatures;
     1303    pThis->IMediaEx.pfnNotifySuspend            = drvHostBaseNotifySuspend;
    12971304    pThis->IMediaEx.pfnIoReqAllocSizeSet        = drvHostBaseIoReqAllocSizeSet;
    12981305    pThis->IMediaEx.pfnIoReqAlloc               = drvHostBaseIoReqAlloc;
  • trunk/src/VBox/Devices/Storage/DrvSCSI.cpp

    r70688 r71807  
    763763}
    764764
     765/** @interface_method_impl{PDMIMEDIAEX,pfnNotifySuspend} */
     766static DECLCALLBACK(void) drvscsiNotifySuspend(PPDMIMEDIAEX pInterface)
     767{
     768    PDRVSCSI pThis = RT_FROM_MEMBER(pInterface, DRVSCSI, IMediaEx);
     769
     770    pThis->pDrvMediaEx->pfnNotifySuspend(pThis->pDrvMediaEx);
     771}
     772
    765773/** @interface_method_impl{PDMIMEDIAEX,pfnIoReqAllocSizeSet} */
    766774static DECLCALLBACK(int) drvscsiIoReqAllocSizeSet(PPDMIMEDIAEX pInterface, size_t cbIoReqAlloc)
     
    13181326    /* IMediaEx */
    13191327    pThis->IMediaEx.pfnQueryFeatures            = drvscsiQueryFeatures;
     1328    pThis->IMediaEx.pfnNotifySuspend            = drvscsiNotifySuspend;
    13201329    pThis->IMediaEx.pfnIoReqAllocSizeSet        = drvscsiIoReqAllocSizeSet;
    13211330    pThis->IMediaEx.pfnIoReqAlloc               = drvscsiIoReqAlloc;
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