Changeset 68895 in vbox for trunk/src/VBox/Main
- Timestamp:
- Sep 27, 2017 4:38:54 PM (7 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/DrvAudioVideoRec.h
r65410 r68895 41 41 public: 42 42 43 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags);43 static DECLCALLBACK(int) drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfg, uint32_t fFlags); 44 44 static DECLCALLBACK(void) drvDestruct(PPDMDRVINS pDrvIns); 45 static DECLCALLBACK(int) drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags); 46 static DECLCALLBACK(void) drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags); 45 47 46 48 private: -
trunk/src/VBox/Main/src-client/DrvAudioVideoRec.cpp
r68882 r68895 1019 1019 1020 1020 /** 1021 * @interface_method_impl{PDMDRVREG,pfnDestruct}1022 */1023 /* static */1024 DECLCALLBACK(void) AudioVideoRec::drvDestruct(PPDMDRVINS pDrvIns)1025 {1026 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns);1027 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC);1028 LogFlowFuncEnter();1029 1030 /*1031 * If the AudioVideoRec object is still alive, we must clear it's reference to1032 * us since we'll be invalid when we return from this method.1033 */1034 if (pThis->pAudioVideoRec)1035 {1036 pThis->pAudioVideoRec->mpDrv = NULL;1037 pThis->pAudioVideoRec = NULL;1038 }1039 }1040 1041 1042 /**1043 1021 * Construct a audio video recording driver instance. 1044 1022 * … … 1105 1083 } 1106 1084 1085 1086 /** 1087 * @interface_method_impl{PDMDRVREG,pfnDestruct} 1088 */ 1089 /* static */ 1090 DECLCALLBACK(void) AudioVideoRec::drvDestruct(PPDMDRVINS pDrvIns) 1091 { 1092 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 1093 PDRVAUDIOVIDEOREC pThis = PDMINS_2_DATA(pDrvIns, PDRVAUDIOVIDEOREC); 1094 LogFlowFuncEnter(); 1095 1096 /* 1097 * If the AudioVideoRec object is still alive, we must clear it's reference to 1098 * us since we'll be invalid when we return from this method. 1099 */ 1100 if (pThis->pAudioVideoRec) 1101 { 1102 pThis->pAudioVideoRec->mpDrv = NULL; 1103 pThis->pAudioVideoRec = NULL; 1104 } 1105 } 1106 1107 1108 /** 1109 * @interface_method_impl{PDMDRVREG,pfnAttach} 1110 */ 1111 /* static */ 1112 DECLCALLBACK(int) AudioVideoRec::drvAttach(PPDMDRVINS pDrvIns, uint32_t fFlags) 1113 { 1114 RT_NOREF(pDrvIns, fFlags); 1115 1116 LogFlowFuncEnter(); 1117 1118 return VINF_SUCCESS; 1119 } 1120 1121 /** 1122 * @interface_method_impl{PDMDRVREG,pfnDetach} 1123 */ 1124 /* static */ 1125 DECLCALLBACK(void) AudioVideoRec::drvDetach(PPDMDRVINS pDrvIns, uint32_t fFlags) 1126 { 1127 RT_NOREF(pDrvIns, fFlags); 1128 1129 LogFlowFuncEnter(); 1130 } 1107 1131 1108 1132 /** … … 1145 1169 NULL, 1146 1170 /* pfnAttach */ 1147 NULL,1171 AudioVideoRec::drvAttach, 1148 1172 /* pfnDetach */ 1149 NULL,1173 AudioVideoRec::drvDetach, 1150 1174 /* pfnPowerOff */ 1151 1175 NULL,
Note:
See TracChangeset
for help on using the changeset viewer.