VirtualBox

Changeset 94763 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 29, 2022 4:36:29 PM (3 years ago)
Author:
vboxsync
Message:

VMM/SSM: Allow SSMR3Open and SSMR3ValidateFile to take a stream operations callback table, bugref:9955

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/DisplayUtils.cpp

    r93444 r94763  
    4141
    4242    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);
    4445    if (RT_SUCCESS(vrc))
    4546    {
     
    157158
    158159    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);
    160162    if (RT_SUCCESS(vrc))
    161163    {
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r94744 r94763  
    16161616
    16171617        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);
    16191620        if (RT_SUCCESS(vrc))
    16201621        {
     
    78617862
    78627863            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 */);
    78647866            if (RT_FAILURE(vrc))
    78657867            {
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