Changeset 94763 in vbox
- Timestamp:
- Apr 29, 2022 4:36:29 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 151148
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/ssm.h
r93444 r94763 1212 1212 VMMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOpsUser, 1213 1213 SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvProgressUser); 1214 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt); 1215 VMMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM); 1214 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOps, 1215 bool fChecksumIt); 1216 VMMR3DECL(int) SSMR3Open(const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOps, 1217 unsigned fFlags, PSSMHANDLE *ppSSM); 1216 1218 VMMR3DECL(int) SSMR3Close(PSSMHANDLE pSSM); 1217 1219 VMMR3DECL(int) SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion); -
trunk/src/VBox/Main/src-all/DisplayUtils.cpp
r93444 r94763 41 41 42 42 PSSMHANDLE pSSM; 43 int vrc = SSMR3Open(strStateFilePath.c_str(), 0 /*fFlags*/, &pSSM); 43 int vrc = SSMR3Open(strStateFilePath.c_str(), NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 44 0 /*fFlags*/, &pSSM); 44 45 if (RT_SUCCESS(vrc)) 45 46 { … … 157 158 158 159 PSSMHANDLE pSSM; 159 int vrc = SSMR3Open(strStateFilePath.c_str(), 0 /*fFlags*/, &pSSM); 160 int vrc = SSMR3Open(strStateFilePath.c_str(), NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 161 0 /*fFlags*/, &pSSM); 160 162 if (RT_SUCCESS(vrc)) 161 163 { -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r94744 r94763 1616 1616 1617 1617 PSSMHANDLE pSSM; 1618 int vrc = pVMM->pfnSSMR3Open(strSavedStateFile.c_str(), 0, &pSSM); 1618 int vrc = pVMM->pfnSSMR3Open(strSavedStateFile.c_str(), NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 1619 0, &pSSM); 1619 1620 if (RT_SUCCESS(vrc)) 1620 1621 { … … 7861 7862 7862 7863 ComAssertRet(bstrSavedStateFile.isNotEmpty(), E_FAIL); 7863 int vrc = pVMM->pfnSSMR3ValidateFile(strSavedStateFile.c_str(), false /* fChecksumIt */); 7864 int vrc = pVMM->pfnSSMR3ValidateFile(strSavedStateFile.c_str(), NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 7865 false /* fChecksumIt */); 7864 7866 if (RT_FAILURE(vrc)) 7865 7867 { -
trunk/src/VBox/VMM/VMMR3/SSM.cpp
r93554 r94763 9326 9326 * 9327 9327 * @param pszFilename The path to the file to validate. 9328 * @param pStreamOps The stream method table. NULL if pszFilename is 9329 * used. 9330 * @param pvStreamOps The user argument to the stream methods. 9328 9331 * @param fChecksumIt Whether to checksum the file or not. 9329 9332 * 9330 9333 * @thread Any. 9331 9334 */ 9332 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt)9335 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOps, bool fChecksumIt) 9333 9336 { 9334 9337 LogFlow(("SSMR3ValidateFile: pszFilename=%p:{%s} fChecksumIt=%RTbool\n", pszFilename, pszFilename, fChecksumIt)); … … 9338 9341 */ 9339 9342 SSMHANDLE Handle; 9340 int rc = ssmR3OpenFile(NULL, pszFilename, NULL /*pStreamOps*/, NULL /*pvUser*/, fChecksumIt,9343 int rc = ssmR3OpenFile(NULL, pszFilename, pStreamOps, pvStreamOps, fChecksumIt, 9341 9344 false /*fChecksumOnRead*/, 1 /*cBuffers*/, &Handle); 9342 9345 if (RT_SUCCESS(rc)) … … 9354 9357 * 9355 9358 * @param pszFilename The path to the saved state file. 9359 * @param pStreamOps The stream method table. NULL if pszFilename is 9360 * used. 9361 * @param pvStreamOps The user argument to the stream methods. 9356 9362 * @param fFlags Open flags. Reserved, must be 0. 9357 9363 * @param ppSSM Where to store the SSM handle. … … 9359 9365 * @thread Any. 9360 9366 */ 9361 VMMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM) 9367 VMMR3DECL(int) SSMR3Open(const char *pszFilename, PCSSMSTRMOPS pStreamOps, void *pvStreamOps, 9368 unsigned fFlags, PSSMHANDLE *ppSSM) 9362 9369 { 9363 9370 LogFlow(("SSMR3Open: pszFilename=%p:{%s} fFlags=%#x ppSSM=%p\n", pszFilename, pszFilename, fFlags, ppSSM)); … … 9379 9386 * Try open the file and validate it. 9380 9387 */ 9381 int rc = ssmR3OpenFile(NULL, pszFilename, NULL /*pStreamOps*/, NULL /*pvUser*/, false /*fChecksumIt*/,9388 int rc = ssmR3OpenFile(NULL, pszFilename, pStreamOps, pvStreamOps, false /*fChecksumIt*/, 9382 9389 true /*fChecksumOnRead*/, 1 /*cBuffers*/, pSSM); 9383 9390 if (RT_SUCCESS(rc)) -
trunk/src/VBox/VMM/testcase/tstSSM-2.cpp
r93115 r94763 34 34 { 35 35 PSSMHANDLE pSSM; 36 int rc = SSMR3Open(pszFilename, 0, &pSSM);36 int rc = SSMR3Open(pszFilename, NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 0, &pSSM); 37 37 RTEXITCODE rcExit = RTEXITCODE_FAILURE; 38 38 if (RT_SUCCESS(rc)) -
trunk/src/VBox/VMM/testcase/tstSSM.cpp
r93554 r94763 806 806 */ 807 807 u64Start = RTTimeNanoTS(); 808 rc = SSMR3ValidateFile(pszFilename, false /* fChecksumIt*/ );808 rc = SSMR3ValidateFile(pszFilename, NULL /*pStreamOps*/, NULL /*pvStreamOps*/, false /* fChecksumIt*/ ); 809 809 if (RT_FAILURE(rc)) 810 810 { … … 816 816 817 817 u64Start = RTTimeNanoTS(); 818 rc = SSMR3ValidateFile(pszFilename, true /* fChecksumIt */);818 rc = SSMR3ValidateFile(pszFilename, NULL /*pStreamOps*/, NULL /*pvStreamOps*/, true /* fChecksumIt */); 819 819 if (RT_FAILURE(rc)) 820 820 { … … 830 830 u64Start = RTTimeNanoTS(); 831 831 PSSMHANDLE pSSM; 832 rc = SSMR3Open(pszFilename, 0, &pSSM);832 rc = SSMR3Open(pszFilename, NULL /*pStreamOps*/, NULL /*pvStreamOps*/, 0, &pSSM); 833 833 if (RT_FAILURE(rc)) 834 834 {
Note:
See TracChangeset
for help on using the changeset viewer.