VirtualBox

Changeset 7233 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Mar 3, 2008 12:25:32 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28565
Message:

Renamed OSType to VBOXOSTYPE to fix the clash with some mac os x typedef.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestOSTypeImpl.cpp

    r5999 r7233  
    2424
    2525GuestOSType::GuestOSType()
    26     : mOSType (OSTypeUnknown)
     26    : mOSType (VBOXOSTYPE_Unknown)
    2727    , mRAMSize (0), mVRAMSize (0)
    2828    , mHDDSize (0), mMonitorCount (0)
     
    5858 * @param aHDDSize     recommended HDD size in megabytes
    5959 */
    60 HRESULT GuestOSType::init (const char *aId, const char *aDescription, OSType aOSType,
     60HRESULT GuestOSType::init (const char *aId, const char *aDescription, VBOXOSTYPE aOSType,
    6161                           uint32_t aRAMSize, uint32_t aVRAMSize, uint32_t aHDDSize)
    6262{
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r7207 r7233  
    43164316        const char    *id;          // utf-8
    43174317        const char    *description; // utf-8
    4318         const OSType  osType;
     4318        const VBOXOSTYPE osType;
    43194319        const uint32_t recommendedRAM;
    43204320        const uint32_t recommendedVRAM;
     
    43264326         * NOTE2: please use powers of 2 when specifying the size of harddisks since
    43274327         *        '2GB' looks better than '1.95GB' (= 2000MB) */
    4328         { "unknown",    tr ("Other/Unknown"),  OSTypeUnknown,     64,   4,  2 * _1K },
    4329         { "dos",        "DOS",                 OSTypeDOS,         32,   4,      512 },
    4330         { "win31",      "Windows 3.1",         OSTypeWin31,       32,   4,  1 * _1K },
    4331         { "win95",      "Windows 95",          OSTypeWin95,       64,   4,  2 * _1K },
    4332         { "win98",      "Windows 98",          OSTypeWin98,       64,   4,  2 * _1K },
    4333         { "winme",      "Windows Me",          OSTypeWinMe,       64,   4,  4 * _1K },
    4334         { "winnt4",     "Windows NT 4",        OSTypeWinNT4,     128,   4,  2 * _1K },
    4335         { "win2k",      "Windows 2000",        OSTypeWin2k,      168,   4,  4 * _1K },
    4336         { "winxp",      "Windows XP",          OSTypeWinXP,      192,   4, 10 * _1K },
    4337         { "win2k3",     "Windows Server 2003", OSTypeWin2k3,     256,   4, 20 * _1K },
    4338         { "winvista",   "Windows Vista",       OSTypeWinVista,   512,   4, 20 * _1K },
    4339         { "os2warp3",   "OS/2 Warp 3",         OSTypeOS2Warp3,    48,   4,  1 * _1K },
    4340         { "os2warp4",   "OS/2 Warp 4",         OSTypeOS2Warp4,    64,   4,  2 * _1K },
    4341         { "os2warp45",  "OS/2 Warp 4.5",       OSTypeOS2Warp45,   96,   4,  2 * _1K },
    4342         { "linux22",    "Linux 2.2",           OSTypeLinux22,     64,   4,  2 * _1K },
    4343         { "linux24",    "Linux 2.4",           OSTypeLinux24,    128,   4,  4 * _1K },
    4344         { "linux26",    "Linux 2.6",           OSTypeLinux26,    256,   4,  8 * _1K },
    4345         { "freebsd",    "FreeBSD",             OSTypeFreeBSD,     64,   4,  2 * _1K },
    4346         { "openbsd",    "OpenBSD",             OSTypeOpenBSD,     64,   4,  2 * _1K },
    4347         { "netbsd",     "NetBSD",              OSTypeNetBSD,      64,   4,  2 * _1K },
    4348         { "netware",    "Netware",             OSTypeNetware,    128,   4,  4 * _1K },
    4349         { "solaris",    "Solaris",             OSTypeSolaris,    128,   4,  8 * _1K },
    4350         { "l4",         "L4",                  OSTypeL4,          64,   4,  2 * _1K }
     4328        { "unknown",    tr ("Other/Unknown"),  VBOXOSTYPE_Unknown,     64,   4,  2 * _1K },
     4329        { "dos",        "DOS",                 VBOXOSTYPE_DOS,         32,   4,      512 },
     4330        { "win31",      "Windows 3.1",         VBOXOSTYPE_Win31,       32,   4,  1 * _1K },
     4331        { "win95",      "Windows 95",          VBOXOSTYPE_Win95,       64,   4,  2 * _1K },
     4332        { "win98",      "Windows 98",          VBOXOSTYPE_Win98,       64,   4,  2 * _1K },
     4333        { "winme",      "Windows Me",          VBOXOSTYPE_WinMe,       64,   4,  4 * _1K },
     4334        { "winnt4",     "Windows NT 4",        VBOXOSTYPE_WinNT4,     128,   4,  2 * _1K },
     4335        { "win2k",      "Windows 2000",        VBOXOSTYPE_Win2k,      168,   4,  4 * _1K },
     4336        { "winxp",      "Windows XP",          VBOXOSTYPE_WinXP,      192,   4, 10 * _1K },
     4337        { "win2k3",     "Windows Server 2003", VBOXOSTYPE_Win2k3,     256,   4, 20 * _1K },
     4338        { "winvista",   "Windows Vista",       VBOXOSTYPE_WinVista,   512,   4, 20 * _1K },
     4339        { "os2warp3",   "OS/2 Warp 3",         VBOXOSTYPE_OS2Warp3,    48,   4,  1 * _1K },
     4340        { "os2warp4",   "OS/2 Warp 4",         VBOXOSTYPE_OS2Warp4,    64,   4,  2 * _1K },
     4341        { "os2warp45",  "OS/2 Warp 4.5",       VBOXOSTYPE_OS2Warp45,   96,   4,  2 * _1K },
     4342        { "linux22",    "Linux 2.2",           VBOXOSTYPE_Linux22,     64,   4,  2 * _1K },
     4343        { "linux24",    "Linux 2.4",           VBOXOSTYPE_Linux24,    128,   4,  4 * _1K },
     4344        { "linux26",    "Linux 2.6",           VBOXOSTYPE_Linux26,    256,   4,  8 * _1K },
     4345        { "freebsd",    "FreeBSD",             VBOXOSTYPE_FreeBSD,     64,   4,  2 * _1K },
     4346        { "openbsd",    "OpenBSD",             VBOXOSTYPE_OpenBSD,     64,   4,  2 * _1K },
     4347        { "netbsd",     "NetBSD",              VBOXOSTYPE_NetBSD,      64,   4,  2 * _1K },
     4348        { "netware",    "Netware",             VBOXOSTYPE_Netware,    128,   4,  4 * _1K },
     4349        { "solaris",    "Solaris",             VBOXOSTYPE_Solaris,    128,   4,  8 * _1K },
     4350        { "l4",         "L4",                  VBOXOSTYPE_L4,          64,   4,  2 * _1K }
    43514351    };
    43524352
  • trunk/src/VBox/Main/include/GuestOSTypeImpl.h

    r5999 r7233  
    5151
    5252    // public initializer/uninitializer for internal purposes only
    53     HRESULT init (const char *aId, const char *aDescription, OSType aOSType,
     53    HRESULT init (const char *aId, const char *aDescription, VBOXOSTYPE aOSType,
    5454                  uint32_t aRAMSize, uint32_t aVRAMSize, uint32_t aHDDSize);
    5555    void uninit();
     
    7272    const Bstr mID;
    7373    const Bstr mDescription;
    74     const OSType mOSType;
     74    const VBOXOSTYPE mOSType;
    7575    const uint32_t mRAMSize;
    7676    const uint32_t mVRAMSize;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette