VirtualBox

忽略:
時間撮記:
2013-3-13 下午08:57:11 (12 年 以前)
作者:
vboxsync
訊息:

Main: drvDestruct/drvConstruct cleanups.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/VMMDevInterface.cpp

    r44528 r45029  
    746746
    747747/**
    748  * Destruct a VMMDev driver instance.
    749  *
    750  * @returns VBox status.
    751  * @param   pDrvIns     The driver instance data.
     748 * @interface_method_impl{PDMDRVREG,pfnReset}
     749 */
     750DECLCALLBACK(void) VMMDev::drvReset(PPDMDRVINS pDrvIns)
     751{
     752    LogFlow(("VMMDev::drvReset: iInstance=%d\n", pDrvIns->iInstance));
     753#ifdef VBOX_WITH_HGCM
     754    HGCMHostReset ();
     755#endif /* VBOX_WITH_HGCM */
     756}
     757
     758/**
     759 * @interface_method_impl{PDMDRVREG,pfnDestruct}
    752760 */
    753761DECLCALLBACK(void) VMMDev::drvDestruct(PPDMDRVINS pDrvIns)
    754762{
     763    PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);
    755764    PDRVMAINVMMDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINVMMDEV);
    756765    LogFlow(("VMMDev::drvDestruct: iInstance=%d\n", pDrvIns->iInstance));
     766
    757767#ifdef VBOX_WITH_HGCM
    758768    /* HGCM is shut down on the VMMDev destructor. */
     
    763773
    764774/**
    765  * Reset notification.
    766  *
    767  * @returns VBox status.
    768  * @param   pDrvIns     The driver instance data.
    769  */
    770 DECLCALLBACK(void) VMMDev::drvReset(PPDMDRVINS pDrvIns)
    771 {
    772     LogFlow(("VMMDev::drvReset: iInstance=%d\n", pDrvIns->iInstance));
    773 #ifdef VBOX_WITH_HGCM
    774     HGCMHostReset ();
    775 #endif /* VBOX_WITH_HGCM */
    776 }
    777 
    778 /**
    779  * Construct a VMMDev driver instance.
    780  *
    781  * @copydoc FNPDMDRVCONSTRUCT
     775 * @interface_method_impl{PDMDRVREG,pfnConstruct}
    782776 */
    783777DECLCALLBACK(int) VMMDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)
    784778{
     779    PDMDRV_CHECK_VERSIONS_RETURN(pDrvIns);
    785780    PDRVMAINVMMDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINVMMDEV);
    786781    LogFlow(("Keyboard::drvConstruct: iInstance=%d\n", pDrvIns->iInstance));
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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