Changeset 68992 in vbox for trunk/src/VBox
- Timestamp:
- Oct 5, 2017 9:02:27 AM (7 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ConsoleImpl.h
r68986 r68992 259 259 HRESULT i_setInvalidMachineStateError(); 260 260 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); 263 263 // Called from event listener 264 264 HRESULT i_onNATRedirectRuleChange(ULONG ulInstance, BOOL aNatRuleRemove, -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r68986 r68992 3280 3280 3281 3281 /* static */ 3282 const char *Console::i_ convertControllerTypeToDev(StorageControllerType_T enmCtrlType)3282 const char *Console::i_storageControllerTypeToStr(StorageControllerType_T enmCtrlType) 3283 3283 { 3284 3284 switch (enmCtrlType) … … 3307 3307 } 3308 3308 3309 HRESULT Console::i_ convertBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun)3309 HRESULT Console::i_storageBusPortDeviceToLun(StorageBus_T enmBus, LONG port, LONG device, unsigned &uLun) 3310 3310 { 3311 3311 switch (enmBus) … … 3478 3478 rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType); 3479 3479 AssertComRC(rc); 3480 pszDevice = i_ convertControllerTypeToDev(enmCtrlType);3480 pszDevice = i_storageControllerTypeToStr(enmCtrlType); 3481 3481 3482 3482 StorageBus_T enmBus; … … 3656 3656 rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType); 3657 3657 AssertComRC(rc); 3658 pszDevice = i_ convertControllerTypeToDev(enmCtrlType);3658 pszDevice = i_storageControllerTypeToStr(enmCtrlType); 3659 3659 3660 3660 StorageBus_T enmBus; … … 3834 3834 rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType); 3835 3835 AssertComRC(rc); 3836 pszDevice = i_ convertControllerTypeToDev(enmCtrlType);3836 pszDevice = i_storageControllerTypeToStr(enmCtrlType); 3837 3837 3838 3838 StorageBus_T enmBus; … … 3948 3948 hrc = pMediumAtt->COMGETTER(Port)(&lPort); H(); 3949 3949 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(); 3951 3951 3952 3952 #undef H … … 4426 4426 hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType); 4427 4427 AssertComRC(hrc); 4428 const char *pcszDevice = i_ convertControllerTypeToDev(enmCtrlType);4428 const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType); 4429 4429 4430 4430 StorageBus_T enmBus; … … 4433 4433 4434 4434 unsigned uLUN; 4435 hrc = Console::i_ convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);4435 hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); 4436 4436 AssertComRC(hrc); 4437 4437 … … 4538 4538 hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType); 4539 4539 AssertComRC(hrc); 4540 const char *pcszDevice = i_ convertControllerTypeToDev(enmCtrlType);4540 const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType); 4541 4541 4542 4542 StorageBus_T enmBus; … … 4545 4545 4546 4546 unsigned uLUN; 4547 hrc = Console::i_ convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);4547 hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); 4548 4548 AssertComRC(hrc); 4549 4549 … … 4661 4661 hrc = pStorageCtrl->COMGETTER(ControllerType)(&enmCtrlType); 4662 4662 AssertComRC(hrc); 4663 const char *pcszDevice = i_ convertControllerTypeToDev(enmCtrlType);4663 const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType); 4664 4664 4665 4665 StorageBus_T enmBus; … … 4668 4668 4669 4669 unsigned uLUN; 4670 hrc = Console::i_ convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);4670 hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); 4671 4671 AssertComRCReturnRC(hrc); 4672 4672 … … 6197 6197 rc = pStorageController->COMGETTER(ControllerType)(&enmCtrlType); 6198 6198 AssertComRC(rc); 6199 const char *pcszDevice = i_ convertControllerTypeToDev(enmCtrlType);6199 const char *pcszDevice = i_storageControllerTypeToStr(enmCtrlType); 6200 6200 6201 6201 StorageBus_T enmBus; … … 6210 6210 6211 6211 unsigned uLUN; 6212 rc = Console::i_ convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN);6212 rc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); 6213 6213 AssertComRCReturnRC(rc); 6214 6214 … … 6344 6344 throw rc; 6345 6345 6346 const char *pcszDevice = i_ convertControllerTypeToDev(enmController);6346 const char *pcszDevice = i_storageControllerTypeToStr(enmController); 6347 6347 6348 6348 BOOL fBuiltinIOCache; -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r68975 r68992 2128 2128 2129 2129 PCFGMNODE pCtlInst = NULL; 2130 const char *pszCtrlDev = i_ convertControllerTypeToDev(enmCtrlType);2130 const char *pszCtrlDev = i_storageControllerTypeToStr(enmCtrlType); 2131 2131 if (enmCtrlType != StorageControllerType_USB) 2132 2132 { … … 4331 4331 unsigned uLUN; 4332 4332 PCFGMNODE pLunL0 = NULL; 4333 hrc = Console::i_ convertBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); H();4333 hrc = Console::i_storageBusPortDeviceToLun(enmBus, lPort, lDev, uLUN); H(); 4334 4334 4335 4335 /* Determine the base path for the device instance. */
Note:
See TracChangeset
for help on using the changeset viewer.