Changeset 26001 in vbox for trunk/src/VBox/Devices/Audio/audiosniffer.c
- Timestamp:
- Jan 25, 2010 2:21:13 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56881
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/audiosniffer.c
r25985 r26001 128 128 PDMIBASE_RETURN_INTERFACE(pszIID, PDMIAUDIOSNIFFERPORT, &pThis->IPort); 129 129 return NULL; 130 } 131 132 /** 133 * Destruct a device instance. 134 * 135 * Most VM resources are freed by the VM. This callback is provided so that any non-VM 136 * resources can be freed correctly. 137 * 138 * @returns VBox status. 139 * @param pDevIns The device instance data. 140 */ 141 static DECLCALLBACK(int) audioSnifferR3Destruct(PPDMDEVINS pDevIns) 142 { 143 PDMDEV_CHECK_VERSIONS_RETURN_QUIET(pDevIns); 144 145 /* Zero the global pointer. */ 146 g_pData = NULL; 147 148 return VINF_SUCCESS; 130 149 } 131 150 … … 145 164 static DECLCALLBACK(int) audioSnifferR3Construct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfgHandle) 146 165 { 147 int rc = VINF_SUCCESS; 148 166 int rc = VINF_SUCCESS; 149 167 AUDIOSNIFFERSTATE *pThis = PDMINS_2_DATA(pDevIns, AUDIOSNIFFERSTATE *); 150 168 151 169 Assert(iInstance == 0); 170 PDMDEV_CHECK_VERSIONS_RETURN(pDevIns); 152 171 153 172 /* … … 208 227 209 228 return rc; 210 }211 212 /**213 * Destruct a device instance.214 *215 * Most VM resources are freed by the VM. This callback is provided so that any non-VM216 * resources can be freed correctly.217 *218 * @returns VBox status.219 * @param pDevIns The device instance data.220 */221 static DECLCALLBACK(int) audioSnifferR3Destruct(PPDMDEVINS pDevIns)222 {223 /* Zero the global pointer. */224 g_pData = NULL;225 226 return VINF_SUCCESS;227 229 } 228 230
Note:
See TracChangeset
for help on using the changeset viewer.