VirtualBox

Ignore:
Timestamp:
Aug 19, 2018 7:07:19 PM (6 years ago)
Author:
vboxsync
Message:

Main,FE/VBoxManage: Allow changing the UART type of the serial ports through the API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r73629 r73768  
    27062706            hrc = serialPort->COMGETTER(Server)(&fServer);                                  H();
    27072707            hrc = serialPort->COMGETTER(Path)(bstr.asOutParam());                           H();
     2708            UartType_T eUartType;
     2709            const char *pszUartType;
     2710            hrc = serialPort->COMGETTER(UartType)(&eUartType);                              H();
     2711            switch (eUartType)
     2712            {
     2713                case UartType_U16450: pszUartType = "16450"; break;
     2714                case UartType_U16750: pszUartType = "16750"; break;
     2715                default: AssertFailed(); RT_FALL_THRU();
     2716                case UartType_U16550A: pszUartType = "16550A"; break;
     2717            }
     2718            InsertConfigString(pCfg, "UartType", pszUartType);
     2719
    27082720            PortMode_T eHostMode;
    27092721            hrc = serialPort->COMGETTER(HostMode)(&eHostMode);                              H();
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