VirtualBox

Changeset 25202 in vbox for trunk/include


Ignore:
Timestamp:
Dec 4, 2009 7:13:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55683
Message:

Main: make ParallelPort instance data private and make it use the XML settings struct for simplicity

File:
1 edited

Legend:

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

    r25201 r25202  
    353353{
    354354    ParallelPort()
    355         : fEnabled(false),
    356           ulIOBase(0),
    357           ulIRQ(0)
    358     {}
     355        : ulSlot(0),
     356          fEnabled(false),
     357          ulIOBase(0x378),
     358          ulIRQ(4)
     359    {}
     360
     361    bool operator==(const ParallelPort &d) const
     362    {
     363        return     (this == &d)
     364                || (    ulSlot      == d.ulSlot
     365                     && fEnabled    == d.fEnabled
     366                     && ulIRQ       == d.ulIRQ
     367                     && ulIOBase    == d.ulIOBase
     368                     && strPath     == d.strPath);
     369    }
    359370
    360371    uint32_t        ulSlot;
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