Changeset 7233 in vbox
- Timestamp:
- Mar 3, 2008 12:25:32 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r7084 r7233 359 359 uint32_t additionsVersion; 360 360 /** guest OS type */ 361 OSTypeosType;361 VBOXOSTYPE osType; 362 362 /** @todo */ 363 363 } VBoxGuestInfo; -
trunk/include/VBox/ostypes.h
r5999 r7233 32 32 33 33 /** 34 * Global list of guest operating system types. They are grouped 35 * into families. A family identifer is always has mod 0x10000 == 0. 36 * New entries can be added, however other components might depend 37 * on the values (e.g. the Qt GUI) so if possible, the values should 38 * stay the same. 39 * 40 * @todo This typedef crashes with a core Mac OS X typedef, please rename it. 34 * Global list of guest operating system types. 35 * 36 * They are grouped into families. A family identifer is always has 37 * mod 0x10000 == 0. New entries can be added, however other components 38 * depend on the values (e.g. the Qt GUI and guest additions) so the 39 * existing values MUST stay the same. 41 40 */ 42 typedef enum 41 typedef enum VBOXOSTYPE 43 42 { 44 OSTypeUnknown = 0, 45 OSTypeDOS = 0x10000, 46 OSTypeWin31 = 0x15000, 47 OSTypeWin9x = 0x20000, 48 OSTypeWin95 = 0x21000, 49 OSTypeWin98 = 0x22000, 50 OSTypeWinMe = 0x23000, 51 OSTypeWinNT = 0x30000, 52 OSTypeWinNT4 = 0x31000, 53 OSTypeWin2k = 0x32000, 54 OSTypeWinXP = 0x33000, 55 OSTypeWin2k3 = 0x34000, 56 OSTypeWinVista = 0x35000, 57 OSTypeOS2 = 0x40000, 58 OSTypeOS2Warp3 = 0x41000, 59 OSTypeOS2Warp4 = 0x42000, 60 OSTypeOS2Warp45 = 0x43000, 61 OSTypeLinux = 0x50000, 62 OSTypeLinux22 = 0x51000, 63 OSTypeLinux24 = 0x52000, 64 OSTypeLinux26 = 0x53000, 65 OSTypeFreeBSD = 0x60000, 66 OSTypeOpenBSD = 0x61000, 67 OSTypeNetBSD = 0x62000, 68 OSTypeNetware = 0x70000, 69 OSTypeSolaris = 0x80000, 70 OSTypeL4 = 0x90000 71 } OSType, VBOXOSTYPE; 43 VBOXOSTYPE_Unknown = 0, 44 VBOXOSTYPE_DOS = 0x10000, 45 VBOXOSTYPE_Win31 = 0x15000, 46 VBOXOSTYPE_Win9x = 0x20000, 47 VBOXOSTYPE_Win95 = 0x21000, 48 VBOXOSTYPE_Win98 = 0x22000, 49 VBOXOSTYPE_WinMe = 0x23000, 50 VBOXOSTYPE_WinNT = 0x30000, 51 VBOXOSTYPE_WinNT4 = 0x31000, 52 VBOXOSTYPE_Win2k = 0x32000, 53 VBOXOSTYPE_WinXP = 0x33000, 54 VBOXOSTYPE_Win2k3 = 0x34000, 55 VBOXOSTYPE_WinVista = 0x35000, 56 VBOXOSTYPE_OS2 = 0x40000, 57 VBOXOSTYPE_OS2Warp3 = 0x41000, 58 VBOXOSTYPE_OS2Warp4 = 0x42000, 59 VBOXOSTYPE_OS2Warp45 = 0x43000, 60 VBOXOSTYPE_Linux = 0x50000, 61 VBOXOSTYPE_Linux22 = 0x51000, 62 VBOXOSTYPE_Linux24 = 0x52000, 63 VBOXOSTYPE_Linux26 = 0x53000, 64 VBOXOSTYPE_FreeBSD = 0x60000, 65 VBOXOSTYPE_OpenBSD = 0x61000, 66 VBOXOSTYPE_NetBSD = 0x62000, 67 VBOXOSTYPE_Netware = 0x70000, 68 VBOXOSTYPE_Solaris = 0x80000, 69 VBOXOSTYPE_L4 = 0x90000, 70 /** The usual 32-bit hack. */ 71 VBOXOSTYPE_32BIT_HACK = 0x7fffffff 72 } VBOXOSTYPE; 72 73 73 74 __END_DECLS -
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.