VirtualBox

Changeset 101057 in vbox


Ignore:
Timestamp:
Sep 7, 2023 5:12:48 PM (15 months ago)
Author:
vboxsync
Message:

Main: Renamed IPlatformProperties::getStorageBusForStorageControllerType + getStorageControllerTypesForStorageBus -> getStorageBusForControllerType + getStorageControllerTypesForBus, to fix DTrace probe name length restrictions. bugref:10384

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIStorageSettingsEditor.cpp

    r101035 r101057  
    13861386    {
    13871387        /* Enumerate possible types and check whether type is supported or already selected before adding it: */
    1388         foreach (const KStorageControllerType &enmType, comProperties.GetStorageControllerTypesForStorageBus(enmBus))
     1388        foreach (const KStorageControllerType &enmType, comProperties.GetStorageControllerTypesForBus(enmBus))
    13891389            if (supportedTypes.contains(enmType) || enmType == m_enmType)
    13901390                m_types[enmBus] << enmType;
     
    32853285    {
    32863286        QAction *pAction = m_addControllerActions.value(enmType);
    3287         if (supportedBuses.contains(comProperties.GetStorageBusForStorageControllerType(enmType)))
     3287        if (supportedBuses.contains(comProperties.GetStorageBusForControllerType(enmType)))
    32883288            menu.addAction(pAction);
    32893289    }
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r101039 r101057  
    1261912619    name="IPlatformProperties"
    1262012620    extends="$unknown"
    12621     uuid="fb682653-c51d-42d4-bc30-db7c3e8bf75d"
     12621    uuid="1ec98a25-d94c-4cfb-a012-5e21481c154c"
    1262212622    wsmap="managed"
    1262312623    rest="managed"
     
    1287012870    </method>
    1287112871
    12872     <method name="getStorageBusForStorageControllerType">
     12872    <method name="getStorageBusForControllerType">
    1287312873      <desc>Returns the <link to="StorageBus"/> enum value
    1287412874        for a given storage controller type.</desc>
     
    1288312883    </method>
    1288412884
    12885     <method name="getStorageControllerTypesForStorageBus">
     12885    <method name="getStorageControllerTypesForBus">
    1288612886      <desc>Returns the possible <link to="StorageControllerType"/> enum values
    1288712887        for a given storage bus.</desc>
  • trunk/src/VBox/Main/include/PlatformPropertiesImpl.h

    r101043 r101057  
    107107    HRESULT getDeviceTypesForStorageBus(StorageBus_T aBus,
    108108                                        std::vector<DeviceType_T> &aDeviceTypes) RT_OVERRIDE;
    109     HRESULT getStorageBusForStorageControllerType(StorageControllerType_T aStorageControllerType,
    110                                                   StorageBus_T *aStorageBus) RT_OVERRIDE;
    111     HRESULT getStorageControllerTypesForStorageBus(StorageBus_T aStorageBus,
    112                                                    std::vector<StorageControllerType_T> &aStorageControllerTypes) RT_OVERRIDE;
     109    HRESULT getStorageBusForControllerType(StorageControllerType_T aStorageControllerType,
     110                                           StorageBus_T *aStorageBus) RT_OVERRIDE;
     111    HRESULT getStorageControllerTypesForBus(StorageBus_T aStorageBus,
     112                                            std::vector<StorageControllerType_T> &aStorageControllerTypes) RT_OVERRIDE;
    113113    HRESULT getStorageControllerHotplugCapable(StorageControllerType_T aControllerType,
    114114                                               BOOL *aHotplugCapable) RT_OVERRIDE;
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r101049 r101057  
    474474}
    475475
    476 HRESULT PlatformProperties::getStorageBusForStorageControllerType(StorageControllerType_T aStorageControllerType,
    477                                                                   StorageBus_T *aStorageBus)
     476HRESULT PlatformProperties::getStorageBusForControllerType(StorageControllerType_T aStorageControllerType,
     477                                                           StorageBus_T *aStorageBus)
    478478{
    479479    /* no need to lock, this is const */
     
    514514}
    515515
    516 HRESULT PlatformProperties::getStorageControllerTypesForStorageBus(StorageBus_T aStorageBus,
    517                                                                    std::vector<StorageControllerType_T> &aStorageControllerTypes)
     516HRESULT PlatformProperties::getStorageControllerTypesForBus(StorageBus_T aStorageBus,
     517                                                            std::vector<StorageControllerType_T> &aStorageControllerTypes)
    518518{
    519519    aStorageControllerTypes.resize(0);
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r101035 r101057  
    44204420
    44214421    StorageBus_T enmStorageBus = StorageBus_Null;
    4422     HRESULT hrc = platformProperties->GetStorageBusForStorageControllerType(aStorageControllerType, &enmStorageBus);
     4422    HRESULT hrc = platformProperties->GetStorageBusForControllerType(aStorageControllerType, &enmStorageBus);
    44234423    if (FAILED(hrc))
    44244424        return hrc;
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