VirtualBox

Changeset 68992 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 5, 2017 9:02:27 AM (7 years ago)
Author:
vboxsync
Message:

Main/Console: Renaming (be more specific what kind of controller type this is).

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

Legend:

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

    r68986 r68992  
    259259    HRESULT i_setInvalidMachineStateError();
    260260
    261     static const char *i_convertControllerTypeToDev(StorageControllerType_T enmCtrlType);
    262     static HRESULT i_convertBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun);
     261    static const char *i_storageControllerTypeToStr(StorageControllerType_T enmCtrlType);
     262    static HRESULT i_storageBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun);
    263263    // Called from event listener
    264264    HRESULT i_onNATRedirectRuleChange(ULONG ulInstance, BOOL aNatRuleRemove,
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r68986 r68992  
    32803280
    32813281/* static */
    3282 const char *Console::i_convertControllerTypeToDev(StorageControllerType_T enmCtrlType)
     3282const char *Console::i_storageControllerTypeToStr(StorageControllerType_T enmCtrlType)
    32833283{
    32843284    switch (enmCtrlType)
     
    33073307}
    33083308
    3309 HRESULT Console::i_convertBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun)
     3309HRESULT Console::i_storageBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun)
    33103310{
    33113311    switch (enmBus)
     
    34783478    rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType);
    34793479    AssertComRC(rc);
    3480     pszDevice = i_convertControllerTypeToDev(enmCtrlType);
     3480    pszDevice = i_storageControllerTypeToStr(enmCtrlType);
    34813481
    34823482    StorageBus_T enmBus;
     
    36563656    rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType);
    36573657    AssertComRC(rc);
    3658     pszDevice = i_convertControllerTypeToDev(enmCtrlType);
     3658    pszDevice = i_storageControllerTypeToStr(enmCtrlType);
    36593659
    36603660    StorageBus_T enmBus;
     
    38343834    rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType);
    38353835    AssertComRC(rc);
    3836     pszDevice = i_convertControllerTypeToDev(enmCtrlType);
     3836    pszDevice = i_storageControllerTypeToStr(enmCtrlType);
    38373837
    38383838    StorageBus_T enmBus;
     
    39483948    hrc = pMediumAtt->COMGETTER(Port)(&lPort);                              H();
    39493949    hrc = pMediumAtt->COMGETTER(Type)(&lType);                              H();
    3950     hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);  H();
     3950    hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);  H();
    39513951
    39523952#undef H
     
    44264426        hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType);
    44274427        AssertComRC(hrc);
    4428         const char *pcszDevice = i_convertControllerTypeToDev(enmCtrlType);
     4428        const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType);
    44294429
    44304430        StorageBus_T enmBus;
     
    44334433
    44344434        unsigned uLUN;
    4435         hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
     4435        hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
    44364436        AssertComRC(hrc);
    44374437
     
    45384538            hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType);
    45394539            AssertComRC(hrc);
    4540             const char *pcszDevice = i_convertControllerTypeToDev(enmCtrlType);
     4540            const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType);
    45414541
    45424542            StorageBus_T enmBus;
     
    45454545
    45464546            unsigned uLUN;
    4547             hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
     4547            hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
    45484548            AssertComRC(hrc);
    45494549
     
    46614661            hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType);
    46624662            AssertComRC(hrc);
    4663             const char *pcszDevice = i_convertControllerTypeToDev(enmCtrlType);
     4663            const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType);
    46644664
    46654665            StorageBus_T enmBus;
     
    46684668
    46694669            unsigned uLUN;
    4670             hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
     4670            hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
    46714671            AssertComRCReturnRC(hrc);
    46724672
     
    61976197    rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType);
    61986198    AssertComRC(rc);
    6199     const char *pcszDevice = i_convertControllerTypeToDev(enmCtrlType);
     6199    const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType);
    62006200
    62016201    StorageBus_T enmBus;
     
    62106210
    62116211    unsigned uLUN;
    6212     rc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
     6212    rc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);
    62136213    AssertComRCReturnRC(rc);
    62146214
     
    63446344            throw rc;
    63456345
    6346         const char *pcszDevice = i_convertControllerTypeToDev(enmController);
     6346        const char *pcszDevice = i_storageControllerTypeToStr(enmController);
    63476347
    63486348        BOOL fBuiltinIOCache;
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r68975 r68992  
    21282128
    21292129            PCFGMNODE pCtlInst = NULL;
    2130             const char *pszCtrlDev = i_convertControllerTypeToDev(enmCtrlType);
     2130            const char *pszCtrlDev = i_storageControllerTypeToStr(enmCtrlType);
    21312131            if (enmCtrlType != StorageControllerType_USB)
    21322132            {
     
    43314331        unsigned uLUN;
    43324332        PCFGMNODE pLunL0 = NULL;
    4333         hrc = Console::i_convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);                H();
     4333        hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);                H();
    43344334
    43354335        /* Determine the base path for the device instance. */
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