VirtualBox

Ignore:
Timestamp:
Sep 27, 2011 8:58:22 AM (13 years ago)
Author:
vboxsync
Message:

Main: Add API to set the discard flag for harddisks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/MediumAttachmentImpl.h

    r38718 r38873  
    5151                 bool fTempEject,
    5252                 bool fNonRotational,
     53                 bool fDiscard,
    5354                 const Utf8Str &strBandwidthGroup);
    5455    HRESULT initCopy(Machine *aParent, MediumAttachment *aThat);
     
    6869    STDMETHOD(COMGETTER(IsEjected))(BOOL *aIsEjected);
    6970    STDMETHOD(COMGETTER(NonRotational))(BOOL *aNonRotational);
     71    STDMETHOD(COMGETTER(Discard))(BOOL *aDiscard);
    7072    STDMETHOD(COMGETTER(BandwidthGroup))(IBandwidthGroup **aBwGroup);
    7173
     
    8789    bool getTempEject() const;
    8890    bool getNonRotational() const;
     91    bool getDiscard() const;
    8992    const Utf8Str& getBandwidthGroup() const;
    9093
     
    102105    /** Must be called from under this object's write lock. */
    103106    void updateNonRotational(bool aNonRotational);
     107
     108    /** Must be called from under this object's write lock. */
     109    void updateDiscard(bool aDiscard);
    104110
    105111    /** Must be called from under this object's write lock. */
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