Changeset 7233 in vbox for trunk/src/VBox
- Timestamp:
- Mar 3, 2008 12:25:32 PM (17 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxGuest/Helper.cpp
r5999 r7233 201 201 { 202 202 case WINNT4: 203 req->guestInfo.osType = OSTypeWinNT4;203 req->guestInfo.osType = VBOXOSTYPE_WinNT4; 204 204 break; 205 205 case WIN2K: 206 req->guestInfo.osType = OSTypeWin2k;206 req->guestInfo.osType = VBOXOSTYPE_Win2k; 207 207 break; 208 208 case WINXP: 209 req->guestInfo.osType = OSTypeWinXP;209 req->guestInfo.osType = VBOXOSTYPE_WinXP; 210 210 break; 211 211 case WIN2K3: 212 req->guestInfo.osType = OSTypeWin2k3;212 req->guestInfo.osType = VBOXOSTYPE_Win2k3; 213 213 break; 214 214 case WINVISTA: 215 req->guestInfo.osType = OSTypeWinVista;215 req->guestInfo.osType = VBOXOSTYPE_WinVista; 216 216 break; 217 217 default: 218 218 /* we don't know, therefore NT family */ 219 req->guestInfo.osType = OSTypeWinNT;219 req->guestInfo.osType = VBOXOSTYPE_WinNT; 220 220 break; 221 221 } -
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-os2.cpp
r6654 r7233 335 335 static VBOXOSTYPE vboxGuestOS2DetectVersion(void) 336 336 { 337 VBOXOSTYPE enmOSType = OSTypeOS2;337 VBOXOSTYPE enmOSType = VBOXOSTYPE_OS2; 338 338 339 339 #if 0 /** @todo dig up the version stuff from GIS later and verify that the numbers are actually decimal. */ … … 342 342 { 343 343 if (uMinor >= 30 && uMinor < 40) 344 enmOSType = OSTypeOS2Warp3;344 enmOSType = VBOXOSTYPE_OS2Warp3; 345 345 else if (uMinor >= 40 && uMinor < 45) 346 enmOSType = OSTypeOS2Warp4;346 enmOSType = VBOXOSTYPE_OS2Warp4; 347 347 else if (uMinor >= 45 && uMinor < 50) 348 enmOSType = OSTypeOS2Warp45;348 enmOSType = VBOXOSTYPE_OS2Warp45; 349 349 } 350 350 #endif -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r7166 r7233 874 874 infoReq->guestInfo.additionsVersion = VMMDEV_VERSION; 875 875 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 0) 876 infoReq->guestInfo.osType = OSTypeLinux26;876 infoReq->guestInfo.osType = VBOXOSTYPE_Linux26; 877 877 #else 878 infoReq->guestInfo.osType = OSTypeLinux24;878 infoReq->guestInfo.osType = VBOXOSTYPE_Linux24; 879 879 #endif 880 880 rcVBox = VbglGRPerform(&infoReq->header); -
trunk/src/VBox/Frontends/VBoxBFE/SDLConsole.cpp
r6886 r7233 23 23 #ifdef RT_OS_DARWIN 24 24 # include <Carbon/Carbon.h> 25 # define OSType VBoxOSType26 25 # undef PAGE_SIZE 27 26 # undef PAGE_SHIFT -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r7207 r7233 40 40 # include <Carbon/Carbon.h> 41 41 # include "DarwinCursor.h" 42 /** @todo remove this hack when somebody get around fixing the conflicting typedef/enum OSType. */43 # define OSType VBoxOSType44 42 #endif 45 43 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r7221 r7233 3596 3596 * succeeded. */ 3597 3597 ICInstance icInstance; 3598 OSTypepsiSignature = 'psi ';3598 VBOXOSTYPE psiSignature = 'psi '; 3599 3599 OSStatus error = ::ICStart (&icInstance, psiSignature); 3600 3600 if (error == noErr) -
trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleView.h
r7220 r7233 45 45 # include <Carbon/Carbon.h> 46 46 # include "DarwinCursor.h" 47 /** @todo remove this hack when somebody get around fixing the conflicting typedef/enum OSType. */48 # define OSType VBoxOSType49 47 #endif 50 48 -
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp
r7226 r7233 3602 3602 * succeeded. */ 3603 3603 ICInstance icInstance; 3604 OSTypepsiSignature = 'psi ';3604 VBOXOSTYPE psiSignature = 'psi '; 3605 3605 OSStatus error = ::ICStart (&icInstance, psiSignature); 3606 3606 if (error == noErr) -
trunk/src/VBox/Main/GuestOSTypeImpl.cpp
r5999 r7233 24 24 25 25 GuestOSType::GuestOSType() 26 : mOSType ( OSTypeUnknown)26 : mOSType (VBOXOSTYPE_Unknown) 27 27 , mRAMSize (0), mVRAMSize (0) 28 28 , mHDDSize (0), mMonitorCount (0) … … 58 58 * @param aHDDSize recommended HDD size in megabytes 59 59 */ 60 HRESULT GuestOSType::init (const char *aId, const char *aDescription, OSTypeaOSType,60 HRESULT GuestOSType::init (const char *aId, const char *aDescription, VBOXOSTYPE aOSType, 61 61 uint32_t aRAMSize, uint32_t aVRAMSize, uint32_t aHDDSize) 62 62 { -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r7207 r7233 4316 4316 const char *id; // utf-8 4317 4317 const char *description; // utf-8 4318 const OSTypeosType;4318 const VBOXOSTYPE osType; 4319 4319 const uint32_t recommendedRAM; 4320 4320 const uint32_t recommendedVRAM; … … 4326 4326 * NOTE2: please use powers of 2 when specifying the size of harddisks since 4327 4327 * '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 } 4351 4351 }; 4352 4352 -
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r5999 r7233 51 51 52 52 // public initializer/uninitializer for internal purposes only 53 HRESULT init (const char *aId, const char *aDescription, OSTypeaOSType,53 HRESULT init (const char *aId, const char *aDescription, VBOXOSTYPE aOSType, 54 54 uint32_t aRAMSize, uint32_t aVRAMSize, uint32_t aHDDSize); 55 55 void uninit(); … … 72 72 const Bstr mID; 73 73 const Bstr mDescription; 74 const OSTypemOSType;74 const VBOXOSTYPE mOSType; 75 75 const uint32_t mRAMSize; 76 76 const uint32_t mVRAMSize;
Note:
See TracChangeset
for help on using the changeset viewer.