VirtualBox

Changeset 70553 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 12, 2018 12:15:36 PM (7 years ago)
Author:
vboxsync
Message:

Audio: Main/DrvAudioVRDE: Added drvAttach and drvDetach callbacks.

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

Legend:

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

    r70535 r70553  
    5757    static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);
    5858    static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns);
     59    static DECLCALLBACK(int) drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags);
     60    static DECLCALLBACK(void) drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags);
    5961
    6062private:
  • trunk/src/VBox/Main/src-client/DrvAudioVRDE.cpp

    r70535 r70553  
    754754        pThis->pAudioVRDE = NULL;
    755755    }
     756}
     757
     758/**
     759 * @interface_method_impl{PDMDRVREG,pfnAttach}
     760 */
     761/* static */
     762DECLCALLBACK(int) AudioVRDE::drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags)
     763{
     764    RT_NOREF(pDrvIns, fFlags);
     765
     766    LogFlowFuncEnter();
     767
     768    return VINF_SUCCESS;
     769}
     770
     771/**
     772 * @interface_method_impl{PDMDRVREG,pfnDetach}
     773 */
     774/* static */
     775DECLCALLBACK(void) AudioVRDE::drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags)
     776{
     777    RT_NOREF(pDrvIns, fFlags);
     778
     779    LogFlowFuncEnter();
    756780}
    757781
     
    796820    NULL,
    797821    /* pfnAttach */
    798     NULL,
     822    AudioVRDE::drvAttach,
    799823    /* pfnDetach */
    800     NULL,
     824    AudioVRDE::drvDetach,
    801825    /* pfnPowerOff */
    802826    NULL,
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