Changeset 60010 in vbox
- Timestamp:
- Mar 14, 2016 7:46:03 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r59929 r60010 493 493 LogFlowFunc(("HD port Count=%d\n", u32HDCount)); 494 494 } 495 496 /* Configure the hotpluggable flag for the port. */ 497 BOOL fHotPluggable = FALSE; 498 hrc = pMediumAtt->COMGETTER(HotPluggable)(&fHotPluggable); H(); 499 if (SUCCEEDED(hrc)) 500 { 501 PCFGMNODE pPortCfg; 502 char szName[24]; 503 RTStrPrintf(szName, sizeof(szName), "Port%d", lPortNum); 504 505 InsertConfigNode(pCfg, szName, &pPortCfg); 506 InsertConfigInteger(pPortCfg, "Hotpluggable", fHotPluggable ? 1 : 0); 507 } 508 } 495 } 509 496 } 510 497 … … 2118 2105 InsertConfigInteger(pCfg, "PortCount", cPorts); 2119 2106 InsertConfigInteger(pCfg, "Bootable", fBootable); 2107 2108 com::SafeIfaceArray<IMediumAttachment> atts; 2109 hrc = pMachine->GetMediumAttachmentsOfController(controllerName.raw(), 2110 ComSafeArrayAsOutParam(atts)); H(); 2111 2112 /* Configure the hotpluggable flag for the port. */ 2113 for (unsigned idxAtt = 0; idxAtt < atts.size(); ++idxAtt) 2114 { 2115 IMediumAttachment *pMediumAtt = atts[idxAtt]; 2116 2117 LONG lPortNum = 0; 2118 hrc = pMediumAtt->COMGETTER(Port)(&lPortNum); H(); 2119 2120 BOOL fHotPluggable = FALSE; 2121 hrc = pMediumAtt->COMGETTER(HotPluggable)(&fHotPluggable); H(); 2122 if (SUCCEEDED(hrc)) 2123 { 2124 PCFGMNODE pPortCfg; 2125 char szName[24]; 2126 RTStrPrintf(szName, sizeof(szName), "Port%d", lPortNum); 2127 2128 InsertConfigNode(pCfg, szName, &pPortCfg); 2129 InsertConfigInteger(pPortCfg, "Hotpluggable", fHotPluggable ? 1 : 0); 2130 } 2131 } 2120 2132 2121 2133 /* BIOS configuration values, first AHCI controller only. */
Note:
See TracChangeset
for help on using the changeset viewer.