VirtualBox

Changeset 29028 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
May 4, 2010 2:33:45 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
61068
Message:

Main/Medium: New API method for directly querying the MediumFormat object associated with a medium object. Getting the backend name and then use the list of all medium format objects to find it is lots of work and quite inefficient.

File:
1 edited

Legend:

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

    r28872 r29028  
    2525
    2626class Progress;
     27class MediumFormat;
    2728
    2829namespace settings
     
    105106    STDMETHOD(COMGETTER(Size))(ULONG64 *aSize);
    106107    STDMETHOD(COMGETTER(Format))(BSTR *aFormat);
     108    STDMETHOD(COMGETTER(MediumFormat))(IMediumFormat **aMediumFormat);
    107109    STDMETHOD(COMGETTER(Type))(MediumType_T *aType);
    108110    STDMETHOD(COMSETTER(Type))(MediumType_T aType);
     
    158160    const Utf8Str& getLocationFull() const;
    159161    const Utf8Str& getFormat() const;
     162    const ComObjPtr<MediumFormat> & getMediumFormat() const;
    160163    uint64_t getSize() const;
    161164    MediumType_T getType() const;
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