VirtualBox

Ignore:
Timestamp:
May 20, 2015 4:52:25 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100486
Message:

Main/Snapshot: add a parameter to IMachine.takeSnapshot, returning the snapshot UUID, which is useful for finding the snapshot reliably (using the non-unique name is error prone), plus the necessary code adaptions everywhere.
Frontends/VBoxManage: add a feature for creating unique snapshot names (by appending a number or timestamp).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r55800 r55977  
    49584958            gpProgress = NULL;
    49594959            HRESULT rc;
     4960            Bstr snapId;
    49604961            CHECK_ERROR(gpMachine, TakeSnapshot(Bstr(pszSnapshotName).raw(),
    49614962                                                Bstr("Taken by VBoxSDL").raw(),
    4962                                                 TRUE,
     4963                                                TRUE, snapId.asOutParam(),
    49634964                                                gpProgress.asOutParam()));
    49644965            if (FAILED(rc))
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