VirtualBox

Changeset 96670 in vbox


Ignore:
Timestamp:
Sep 9, 2022 12:40:38 PM (2 years ago)
Author:
vboxsync
Message:

Main: Introduce a method to query sensible TPM types to offer in the GUI for configuration, bugref:10288

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r96407 r96670  
    1239512395    name="ISystemProperties"
    1239612396    extends="$unknown"
    12397     uuid="068decf8-335d-4ec5-8265-ccfd910c4f9d"
     12397    uuid="aac6c7cb-a371-4c58-ab51-0616896b2f2c"
    1239812398    wsmap="managed"
    1239912399    rest="managed"
     
    1295412954      <desc>
    1295512955        Returns an array of officially supported values for enum <link to="IommuType"/>,
     12956        in the sense of what is e.g. worth offering in the VirtualBox GUI.
     12957      </desc>
     12958    </attribute>
     12959
     12960    <attribute name="supportedTpmTypes" type="TpmType" safearray="yes" readonly="yes">
     12961      <desc>
     12962        Returns an array of officially supported values for enum <link to="TpmType"/>,
    1295612963        in the sense of what is e.g. worth offering in the VirtualBox GUI.
    1295712964      </desc>
  • trunk/src/VBox/Main/include/SystemPropertiesImpl.h

    r96407 r96670  
    157157    HRESULT getSupportedChipsetTypes(std::vector<ChipsetType_T> &aSupportedChipsetTypes) RT_OVERRIDE;
    158158    HRESULT getSupportedIommuTypes(std::vector<IommuType_T> &aSupportedIommuTypes) RT_OVERRIDE;
     159    HRESULT getSupportedTpmTypes(std::vector<TpmType_T> &aSupportedTpmTypes) RT_OVERRIDE;
    159160    HRESULT getLanguageId(com::Utf8Str &aLanguageId) RT_OVERRIDE;
    160161    HRESULT setLanguageId(const com::Utf8Str &aLanguageId) RT_OVERRIDE;
  • trunk/src/VBox/Main/src-server/SystemPropertiesImpl.cpp

    r96407 r96670  
    19571957}
    19581958
     1959HRESULT SystemProperties::getSupportedTpmTypes(std::vector<TpmType_T> &aSupportedTpmTypes)
     1960{
     1961    static const TpmType_T aTpmTypes[] =
     1962    {
     1963        TpmType_None,
     1964        TpmType_v1_2,
     1965        TpmType_v2_0
     1966    };
     1967    aSupportedTpmTypes.assign(aTpmTypes,
     1968                              aTpmTypes + RT_ELEMENTS(aTpmTypes));
     1969    return S_OK;
     1970}
     1971
    19591972
    19601973// public methods only for internal purposes
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