VirtualBox

Changeset 15486 in vbox for trunk/src


Ignore:
Timestamp:
Dec 15, 2008 9:57:20 AM (16 years ago)
Author:
vboxsync
Message:

API: add IHardDisk2::Compact, at the moment just a stub returning not implemented.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/HardDisk2Impl.cpp

    r15485 r15486  
    13131313
    13141314STDMETHODIMP HardDisk2::FlattenTo (IHardDisk2 *aTarget, IProgress **aProgress)
     1315{
     1316    AutoCaller autoCaller (this);
     1317    CheckComRCReturnRC (autoCaller.rc());
     1318
     1319    ReturnComNotImplemented();
     1320}
     1321
     1322STDMETHODIMP HardDisk2::Compact (IProgress **aProgress)
    13151323{
    13161324    AutoCaller autoCaller (this);
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r15381 r15486  
    85138513    </method>
    85148514
     8515    <method name="compact">
     8516      <desc>
     8517        Starts compacting of this hard disk. This means that the disk is
     8518        transformed into a possibly more compact storage representation.
     8519        This potentially creates temporary images, which can require a
     8520        substantial amount of additional disk space.
     8521
     8522        After the returned progress object reports that the operation is
     8523        successfully complete, the media state will be set back to the
     8524        current state.
     8525
     8526        <note>
     8527          This hard disk and all its parent hard disks will be placed to <link
     8528          to="MediaState_LockedRead"/> state for the duration of this
     8529          operation.
     8530        </note>
     8531      </desc>
     8532      <param name="progress" type="IProgress" dir="return">
     8533        <desc>Progress object to track the operation completion.</desc>
     8534      </param>
     8535    </method>
     8536
    85158537  </interface>
    85168538
  • trunk/src/VBox/Main/include/HardDisk2Impl.h

    r15318 r15486  
    113113    STDMETHOD(CloneTo) (IHardDisk2 *aTarget, IProgress **aProgress);
    114114    STDMETHOD(FlattenTo) (IHardDisk2 *aTarget, IProgress **aProgress);
     115    STDMETHOD(Compact) (IProgress **aProgress);
    115116
    116117    // public methods for internal purposes only
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