VirtualBox

Changeset 37851 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jul 8, 2011 5:04:03 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72745
Message:

Main/Console+Machine: new method for deleting a range of snapshot, right now not implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r37449 r37851  
    20142014 */
    20152015STDMETHODIMP SessionMachine::DeleteSnapshot(IConsole *aInitiator,
    2016                                             IN_BSTR aId,
     2016                                            IN_BSTR aStartId,
     2017                                            IN_BSTR aEndId,
    20172018                                            BOOL fDeleteAllChildren,
    20182019                                            MachineState_T *aMachineState,
     
    20212022    LogFlowThisFuncEnter();
    20222023
    2023     Guid id(aId);
    2024     AssertReturn(aInitiator && !id.isEmpty(), E_INVALIDARG);
     2024    Guid startId(aStartId);
     2025    Guid endId(aEndId);
     2026    AssertReturn(aInitiator && !startId.isEmpty() && !endId.isEmpty(), E_INVALIDARG);
    20252027    AssertReturn(aMachineState && aProgress, E_POINTER);
    20262028
    2027     /** @todo implement the "and all children" variant */
    2028     if (fDeleteAllChildren)
     2029    /** @todo implement the "and all children" and "range" variants */
     2030    if (fDeleteAllChildren || startId != endId)
    20292031        ReturnComNotImplemented();
    20302032
     
    20472049
    20482050    ComObjPtr<Snapshot> pSnapshot;
    2049     HRESULT rc = findSnapshotById(id, pSnapshot, true /* aSetError */);
     2051    HRESULT rc = findSnapshotById(startId, pSnapshot, true /* aSetError */);
    20502052    if (FAILED(rc)) return rc;
    20512053
Note: See TracChangeset for help on using the changeset viewer.

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