VirtualBox

Changeset 81964 in vbox for trunk/include


Ignore:
Timestamp:
Nov 18, 2019 8:42:02 PM (5 years ago)
Author:
vboxsync
Message:

Main/GraphicsAdapter: Split off a few attributes from Machine interface, which affects quite a few other interfaces.
Frontends/VirtualBox+VBoxManage+VBoxSDL+VBoxShell: Adapt accordingly.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/log.h

    r81422 r81964  
    431431    /** Main group, IFsObjInfo. */
    432432    LOG_GROUP_MAIN_FSOBJINFO,
     433    /** Main group, IGraphicsAdapter. */
     434    LOG_GROUP_MAIN_GRAPHICSADAPTER,
    433435    /** Main group, IGuest. */
    434436    LOG_GROUP_MAIN_GUEST,
     
    944946    "MAIN_FRAMEBUFFEROVERLAY", \
    945947    "MAIN_FSOBJINFO", \
     948    "MAIN_GRAPHICSADAPTER", \
    946949    "MAIN_GUEST", \
    947950    "MAIN_GUESTDIRECTORY", \
  • trunk/include/VBox/settings.h

    r81581 r81964  
    653653     *  The key specifies the screen ID. */
    654654    RecordingScreenMap mapScreens;
     655};
     656
     657/**
     658 * NOTE: If you add any fields in here, you must update a) the constructor and b)
     659 * the operator== which is used by MachineConfigFile::operator==(), or otherwise
     660 * your settings might never get saved.
     661 */
     662struct GraphicsAdapter
     663{
     664    GraphicsAdapter();
     665
     666    bool areDefaultSettings() const;
     667
     668    bool operator==(const GraphicsAdapter &g) const;
     669
     670    GraphicsControllerType_T graphicsControllerType;
     671    uint32_t            ulVRAMSizeMB;
     672    uint32_t            cMonitors;
     673    bool                fAccelerate3D,
     674                        fAccelerate2DVideo;     // requires settings version 1.8 (VirtualBox 3.1)
    655675};
    656676
     
    11121132    BootOrderMap        mapBootOrder;           // item 0 has highest priority
    11131133
    1114     GraphicsControllerType_T graphicsControllerType;
    1115     uint32_t            ulVRAMSizeMB;
    1116     uint32_t            cMonitors;
    1117     bool                fAccelerate3D,
    1118                         fAccelerate2DVideo;     // requires settings version 1.8 (VirtualBox 3.1)
    1119 
    11201134    FirmwareType_T      firmwareType;           // requires settings version 1.9 (VirtualBox 3.1)
    11211135
     
    11331147    BIOSSettings        biosSettings;
    11341148    RecordingSettings   recordingSettings;
     1149    GraphicsAdapter     graphicsAdapter;
    11351150    USB                 usbSettings;
    11361151    NetworkAdaptersList llNetworkAdapters;
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