Changeset 7207 in vbox for trunk/src/VBox/Main
- Timestamp:
- Feb 28, 2008 6:43:08 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28520
- Location:
- trunk/src/VBox/Main
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r6597 r7207 225 225 switch (aAudioDriver) 226 226 { 227 case AudioDriverType_Null AudioDriver:227 case AudioDriverType_Null: 228 228 #ifdef RT_OS_WINDOWS 229 229 # ifdef VBOX_WITH_WINMM 230 case AudioDriverType_WINMM AudioDriver:231 # endif 232 case AudioDriverType_DSOUND AudioDriver:230 case AudioDriverType_WINMM: 231 # endif 232 case AudioDriverType_DSOUND: 233 233 #endif /* RT_OS_WINDOWS */ 234 234 #ifdef RT_OS_LINUX 235 case AudioDriverType_OSS AudioDriver:235 case AudioDriverType_OSS: 236 236 # ifdef VBOX_WITH_ALSA 237 case AudioDriverType_ALSA AudioDriver:237 case AudioDriverType_ALSA: 238 238 # endif 239 239 # ifdef VBOX_WITH_PULSE 240 case AudioDriverType_Pulse AudioDriver:240 case AudioDriverType_Pulse: 241 241 # endif 242 242 #endif /* RT_OS_LINUX */ 243 243 #ifdef RT_OS_DARWIN 244 case AudioDriverType_Core AudioDriver:245 #endif 244 case AudioDriverType_Core: 245 #endif 246 246 #ifdef RT_OS_OS2 247 case AudioDriverType_MMPM AudioDriver:248 #endif 247 case AudioDriverType_MMPM: 248 #endif 249 249 { 250 250 mData.backup(); … … 324 324 ///////////////////////////////////////////////////////////////////////////// 325 325 326 /** 326 /** 327 327 * Loads settings from the given machine node. 328 328 * May be called once right after this object creation. 329 * 329 * 330 330 * @param aMachineNode <Machine> node. 331 * 332 * @note Locks this object for writing. 331 * 332 * @note Locks this object for writing. 333 333 */ 334 334 HRESULT AudioAdapter::loadSettings (const settings::Key &aMachineNode) … … 352 352 * place when a setting of a newly created object must default to A while 353 353 * the same setting of an object loaded from the old settings file must 354 * default to B. */ 354 * default to B. */ 355 355 356 356 /* AudioAdapter node (required) */ … … 369 369 /* now check the audio driver (required) */ 370 370 const char *driver = audioAdapterNode.stringValue ("driver"); 371 mData->mAudioDriver = AudioDriverType_Null AudioDriver;371 mData->mAudioDriver = AudioDriverType_Null; 372 372 if (strcmp (driver, "null") == 0) 373 373 ; /* Null has been set above */ … … 375 375 else if (strcmp (driver, "winmm") == 0) 376 376 #ifdef VBOX_WITH_WINMM 377 mData->mAudioDriver = AudioDriverType_WINMM AudioDriver;377 mData->mAudioDriver = AudioDriverType_WINMM; 378 378 #else 379 379 /* fall back to dsound */ 380 mData->mAudioDriver = AudioDriverType_DSOUND AudioDriver;380 mData->mAudioDriver = AudioDriverType_DSOUND; 381 381 #endif 382 382 else if (strcmp (driver, "dsound") == 0) 383 mData->mAudioDriver = AudioDriverType_DSOUND AudioDriver;383 mData->mAudioDriver = AudioDriverType_DSOUND; 384 384 #endif // RT_OS_WINDOWS 385 385 #ifdef RT_OS_LINUX 386 386 else if (strcmp (driver, "oss") == 0) 387 mData->mAudioDriver = AudioDriverType_OSS AudioDriver;387 mData->mAudioDriver = AudioDriverType_OSS; 388 388 else if (strcmp (driver, "alsa") == 0) 389 389 # ifdef VBOX_WITH_ALSA 390 mData->mAudioDriver = AudioDriverType_ALSA AudioDriver;390 mData->mAudioDriver = AudioDriverType_ALSA; 391 391 # else 392 392 /* fall back to OSS */ 393 mData->mAudioDriver = AudioDriverType_OSS AudioDriver;393 mData->mAudioDriver = AudioDriverType_OSS; 394 394 # endif 395 395 else if (strcmp (driver, "pulse") == 0) 396 396 # ifdef VBOX_WITH_PULSE 397 mData->mAudioDriver = AudioDriverType_Pulse AudioDriver;397 mData->mAudioDriver = AudioDriverType_Pulse; 398 398 # else 399 399 /* fall back to OSS */ 400 mData->mAudioDriver = AudioDriverType_OSS AudioDriver;400 mData->mAudioDriver = AudioDriverType_OSS; 401 401 # endif 402 402 #endif // RT_OS_LINUX 403 403 #ifdef RT_OS_DARWIN 404 404 else if (strcmp (driver, "coreaudio") == 0) 405 mData->mAudioDriver = AudioDriverType_Core AudioDriver;405 mData->mAudioDriver = AudioDriverType_Core; 406 406 #endif 407 407 #ifdef RT_OS_OS2 408 408 else if (strcmp (driver, "mmpm") == 0) 409 mData->mAudioDriver = AudioDriverType_MMPM AudioDriver;409 mData->mAudioDriver = AudioDriverType_MMPM; 410 410 #endif 411 411 else … … 415 415 } 416 416 417 /** 417 /** 418 418 * Saves settings to the given machine node. 419 * 419 * 420 420 * @param aMachineNode <Machine> node. 421 * 422 * @note Locks this object for reading. 421 * 422 * @note Locks this object for reading. 423 423 */ 424 424 HRESULT AudioAdapter::saveSettings (settings::Key &aMachineNode) … … 454 454 switch (mData->mAudioDriver) 455 455 { 456 case AudioDriverType_Null AudioDriver:456 case AudioDriverType_Null: 457 457 { 458 458 driverStr = "null"; … … 460 460 } 461 461 #ifdef RT_OS_WINDOWS 462 case AudioDriverType_WINMM AudioDriver:462 case AudioDriverType_WINMM: 463 463 # ifdef VBOX_WITH_WINMM 464 464 { … … 467 467 } 468 468 # endif 469 case AudioDriverType_DSOUND AudioDriver:469 case AudioDriverType_DSOUND: 470 470 { 471 471 driverStr = "dsound"; … … 474 474 #endif /* RT_OS_WINDOWS */ 475 475 #ifdef RT_OS_LINUX 476 case AudioDriverType_ALSA AudioDriver:476 case AudioDriverType_ALSA: 477 477 # ifdef VBOX_WITH_ALSA 478 478 { … … 481 481 } 482 482 # endif 483 case AudioDriverType_Pulse AudioDriver:483 case AudioDriverType_Pulse: 484 484 # ifdef VBOX_WITH_PULSE 485 485 { … … 488 488 } 489 489 # endif 490 case AudioDriverType_OSS AudioDriver:490 case AudioDriverType_OSS: 491 491 { 492 492 driverStr = "oss"; … … 495 495 #endif /* RT_OS_LINUX */ 496 496 #ifdef RT_OS_DARWIN 497 case AudioDriverType_Core AudioDriver:497 case AudioDriverType_Core: 498 498 { 499 499 driverStr = "coreaudio"; … … 502 502 #endif 503 503 #ifdef RT_OS_OS2 504 case AudioDriverType_MMPM AudioDriver:504 case AudioDriverType_MMPM: 505 505 { 506 506 driverStr = "mmpm"; … … 520 520 } 521 521 522 /** 522 /** 523 523 * @note Locks this object for writing. 524 524 */ … … 544 544 } 545 545 546 /** 546 /** 547 547 * @note Locks this object for writing, together with the peer object (also 548 548 * for writing) if there is one. … … 572 572 } 573 573 574 /** 574 /** 575 575 * @note Locks this object for writing, together with the peer object 576 576 * represented by @a aThat (locked for reading). -
trunk/src/VBox/Main/BIOSSettingsImpl.cpp
r6076 r7207 434 434 switch (aControllerType) 435 435 { 436 case IDEControllerType_ IDEControllerPIIX3:437 case IDEControllerType_ IDEControllerPIIX4:436 case IDEControllerType_PIIX3: 437 case IDEControllerType_PIIX4: 438 438 break; 439 439 default: … … 441 441 tr("Invalid IDE controller type '%d'"), 442 442 aControllerType); 443 } 443 } 444 444 445 445 mData.backup(); … … 489 489 ///////////////////////////////////////////////////////////////////////////// 490 490 491 /** 491 /** 492 492 * Loads settings from the given machine node. 493 493 * May be called once right after this object creation. 494 * 494 * 495 495 * @param aMachineNode <Machine> node. 496 * 497 * @note Locks this object for writing. 496 * 497 * @note Locks this object for writing. 498 498 */ 499 499 HRESULT BIOSSettings::loadSettings (const settings::Key &aMachineNode) … … 517 517 * place when a setting of a newly created object must default to A while 518 518 * the same setting of an object loaded from the old settings file must 519 * default to B. */ 519 * default to B. */ 520 520 521 521 /* BIOS node (required) */ … … 585 585 * defaults to PIIX3) */ 586 586 { 587 mData->mIDEControllerType = IDEControllerType_ IDEControllerPIIX3;587 mData->mIDEControllerType = IDEControllerType_PIIX3; 588 588 589 589 Key ideControllerNode = biosNode.findKey ("IDEController"); … … 592 592 const char *typeStr = ideControllerNode.stringValue ("type"); 593 593 if (strcmp (typeStr, "PIIX3") == 0) 594 mData->mIDEControllerType = IDEControllerType_ IDEControllerPIIX3;594 mData->mIDEControllerType = IDEControllerType_PIIX3; 595 595 else if (strcmp (typeStr, "PIIX4") == 0) 596 mData->mIDEControllerType = IDEControllerType_ IDEControllerPIIX4;596 mData->mIDEControllerType = IDEControllerType_PIIX4; 597 597 else 598 598 ComAssertMsgFailedRet (("Invalid boot menu mode '%s'\n", typeStr), … … 604 604 } 605 605 606 /** 606 /** 607 607 * Saves settings to the given machine node. 608 * 608 * 609 609 * @param aMachineNode <Machine> node. 610 * 611 * @note Locks this object for reading. 610 * 611 * @note Locks this object for reading. 612 612 */ 613 613 HRESULT BIOSSettings::saveSettings (settings::Key &aMachineNode) … … 686 686 switch (mData->mIDEControllerType) 687 687 { 688 case IDEControllerType_ IDEControllerPIIX3:688 case IDEControllerType_PIIX3: 689 689 ideControllerTypeStr = "PIIX3"; 690 690 break; 691 case IDEControllerType_ IDEControllerPIIX4:691 case IDEControllerType_PIIX4: 692 692 ideControllerTypeStr = "PIIX4"; 693 693 break; -
trunk/src/VBox/Main/ConsoleImpl.cpp
r6895 r7207 189 189 : VMProgressTask (aConsole, aProgress, true /* aUsesVMPtr */) 190 190 , mIsSnapshot (false) 191 , mLastMachineState (MachineState_ InvalidMachineState) {}191 , mLastMachineState (MachineState_Null) {} 192 192 193 193 bool mIsSnapshot; … … 477 477 AssertComRCReturn (hrc, VERR_ACCESS_DENIED); 478 478 479 VRDPAuthType_T authType = VRDPAuthType_ VRDPAuthNull;479 VRDPAuthType_T authType = VRDPAuthType_Null; 480 480 hrc = mVRDPServer->COMGETTER(AuthType) (&authType); 481 481 AssertComRCReturn (hrc, VERR_ACCESS_DENIED); … … 492 492 LogRel (("VRDPAUTH: User: [%s]. Domain: [%s]. Authentication type: [%s]\n", 493 493 pszUser, pszDomain, 494 authType == VRDPAuthType_ VRDPAuthNull?494 authType == VRDPAuthType_Null? 495 495 "null": 496 (authType == VRDPAuthType_ VRDPAuthExternal?496 (authType == VRDPAuthType_External? 497 497 "external": 498 (authType == VRDPAuthType_ VRDPAuthGuest?498 (authType == VRDPAuthType_Guest? 499 499 "guest": 500 500 "INVALID" … … 526 526 switch (authType) 527 527 { 528 case VRDPAuthType_ VRDPAuthNull:528 case VRDPAuthType_Null: 529 529 { 530 530 result = VRDPAuthAccessGranted; … … 532 532 } 533 533 534 case VRDPAuthType_ VRDPAuthExternal:534 case VRDPAuthType_External: 535 535 { 536 536 /* Call the external library. */ … … 547 547 } /* pass through */ 548 548 549 case VRDPAuthType_ VRDPAuthGuest:549 case VRDPAuthType_Guest: 550 550 { 551 551 guestJudgement = VRDPAuthGuestNotReacted; … … 590 590 } 591 591 592 if (authType == VRDPAuthType_ VRDPAuthExternal)592 if (authType == VRDPAuthType_External) 593 593 { 594 594 LogRel(("VRDPAUTH: Guest judgement %d.\n", guestJudgement)); … … 709 709 AssertComRC (hrc); 710 710 711 VRDPAuthType_T authType = VRDPAuthType_ VRDPAuthNull;711 VRDPAuthType_T authType = VRDPAuthType_Null; 712 712 hrc = mVRDPServer->COMGETTER(AuthType) (&authType); 713 713 AssertComRC (hrc); 714 714 715 if (authType == VRDPAuthType_ VRDPAuthExternal)715 if (authType == VRDPAuthType_External) 716 716 mConsoleVRDPServer->AuthDisconnect (uuid, u32ClientId); 717 717 … … 1266 1266 switch (netattach) 1267 1267 { 1268 case NetworkAttachmentType_HostInterface NetworkAttachment:1268 case NetworkAttachmentType_HostInterface: 1269 1269 { 1270 1270 #ifdef RT_OS_WINDOWS … … 1853 1853 switch (aDeviceType) 1854 1854 { 1855 case DeviceType_Floppy Device:1855 case DeviceType_Floppy: 1856 1856 { 1857 1857 for (unsigned i = 0; i < ELEMENTS(mapFDLeds); i++) … … 1860 1860 } 1861 1861 1862 case DeviceType_DVD Device:1862 case DeviceType_DVD: 1863 1863 { 1864 1864 SumLed.u32 |= readAndClearLed(mapIDELeds[2]); … … 1866 1866 } 1867 1867 1868 case DeviceType_HardDisk Device:1868 case DeviceType_HardDisk: 1869 1869 { 1870 1870 SumLed.u32 |= readAndClearLed(mapIDELeds[0]); … … 1874 1874 } 1875 1875 1876 case DeviceType_Network Device:1876 case DeviceType_Network: 1877 1877 { 1878 1878 for (unsigned i = 0; i < ELEMENTS(mapNetworkLeds); i++) … … 1881 1881 } 1882 1882 1883 case DeviceType_USB Device:1883 case DeviceType_USB: 1884 1884 { 1885 1885 SumLed.u32 |= readAndClearLed(mapUSBLed); … … 1887 1887 } 1888 1888 1889 case DeviceType_SharedFolder Device:1889 case DeviceType_SharedFolder: 1890 1890 { 1891 1891 SumLed.u32 |= readAndClearLed(mapSharedFolderLed); … … 1902 1902 { 1903 1903 case 0: 1904 *aDeviceActivity = DeviceActivity_ DeviceIdle;1904 *aDeviceActivity = DeviceActivity_Idle; 1905 1905 break; 1906 1906 case PDMLED_READING: 1907 *aDeviceActivity = DeviceActivity_ DeviceReading;1907 *aDeviceActivity = DeviceActivity_Reading; 1908 1908 break; 1909 1909 case PDMLED_WRITING: 1910 1910 case PDMLED_READING | PDMLED_WRITING: 1911 *aDeviceActivity = DeviceActivity_ DeviceWriting;1911 *aDeviceActivity = DeviceActivity_Writing; 1912 1912 break; 1913 1913 } … … 2111 2111 CallbackList::iterator it = mCallbacks.begin(); 2112 2112 while (it != mCallbacks.end()) 2113 (*it++)->OnSharedFolderChange (Scope_Session Scope);2113 (*it++)->OnSharedFolderChange (Scope_Session); 2114 2114 } 2115 2115 … … 2170 2170 CallbackList::iterator it = mCallbacks.begin(); 2171 2171 while (it != mCallbacks.end()) 2172 (*it++)->OnSharedFolderChange (Scope_Session Scope);2172 (*it++)->OnSharedFolderChange (Scope_Session); 2173 2173 } 2174 2174 … … 2369 2369 mMachineState); 2370 2370 2371 MachineState_T machineState = MachineState_ InvalidMachineState;2371 MachineState_T machineState = MachineState_Null; 2372 2372 HRESULT rc = mControl->DiscardSnapshot (this, aId, &machineState, aProgress); 2373 2373 CheckComRCReturnRC (rc); … … 2390 2390 mMachineState); 2391 2391 2392 MachineState_T machineState = MachineState_ InvalidMachineState;2392 MachineState_T machineState = MachineState_Null; 2393 2393 HRESULT rc = mControl->DiscardCurrentState (this, &machineState, aProgress); 2394 2394 CheckComRCReturnRC (rc); … … 2411 2411 mMachineState); 2412 2412 2413 MachineState_T machineState = MachineState_ InvalidMachineState;2413 MachineState_T machineState = MachineState_Null; 2414 2414 HRESULT rc = 2415 2415 mControl->DiscardCurrentSnapshotAndState (this, &machineState, aProgress); … … 3350 3350 CallbackList::iterator it = mCallbacks.begin(); 3351 3351 while (it != mCallbacks.end()) 3352 (*it++)->OnSharedFolderChange (aGlobal ? (Scope_T) Scope_GlobalScope3353 : (Scope_T) Scope_MachineScope);3352 (*it++)->OnSharedFolderChange (aGlobal ? (Scope_T) Scope_Global 3353 : (Scope_T) Scope_Machine); 3354 3354 } 3355 3355 … … 4244 4244 * can lead to various unexpected results (like the machine state being 4245 4245 * >= MachineState_Running on the server, while the session state is 4246 * already SessionState_ SessionClosed at the same time there).4246 * already SessionState_Closed at the same time there). 4247 4247 * 4248 4248 * Cross-lock conditions should be carefully watched out: calling … … 5140 5140 NetworkAttachmentType_T attachment; 5141 5141 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5142 Assert(attachment == NetworkAttachmentType_HostInterface NetworkAttachment);5142 Assert(attachment == NetworkAttachmentType_HostInterface); 5143 5143 #endif /* DEBUG */ 5144 5144 … … 5339 5339 NetworkAttachmentType_T attachment; 5340 5340 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5341 Assert(attachment == NetworkAttachmentType_HostInterface NetworkAttachment);5341 Assert(attachment == NetworkAttachmentType_HostInterface); 5342 5342 #endif /* DEBUG */ 5343 5343 … … 5449 5449 NetworkAttachmentType_T attachment; 5450 5450 networkAdapter->COMGETTER(AttachmentType)(&attachment); 5451 if (attachment == NetworkAttachmentType_HostInterface NetworkAttachment)5451 if (attachment == NetworkAttachmentType_HostInterface) 5452 5452 { 5453 5453 HRESULT rc2 = detachFromHostInterface(networkAdapter); … … 6127 6127 switch (enmCtl) 6128 6128 { 6129 case DiskControllerType_IDE0 Controller:6129 case DiskControllerType_IDE0: 6130 6130 i = 0; 6131 6131 break; 6132 case DiskControllerType_IDE1 Controller:6132 case DiskControllerType_IDE1: 6133 6133 i = 2; 6134 6134 break; -
trunk/src/VBox/Main/ConsoleImpl2.cpp
r6935 r7207 150 150 151 151 /* hardware virtualization extensions */ 152 T riStateBool_T hwVirtExEnabled;152 TSBool_T hwVirtExEnabled; 153 153 BOOL fHWVirtExEnabled; 154 154 hrc = pMachine->COMGETTER(HWVirtExEnabled)(&hwVirtExEnabled); H(); 155 if (hwVirtExEnabled == T riStateBool_TSDefault)155 if (hwVirtExEnabled == TSBool_Default) 156 156 { 157 157 /* check the default value */ … … 159 159 } 160 160 else 161 fHWVirtExEnabled = (hwVirtExEnabled == T riStateBool_TSTrue);161 fHWVirtExEnabled = (hwVirtExEnabled == TSBool_True); 162 162 #ifndef RT_OS_DARWIN /** @todo Implement HWVirtExt on darwin. See #1865. */ 163 163 if (fHWVirtExEnabled) … … 183 183 switch (controllerType) 184 184 { 185 case IDEControllerType_ IDEControllerPIIX3:185 case IDEControllerType_PIIX3: 186 186 fPIIX4 = FALSE; 187 187 break; 188 case IDEControllerType_ IDEControllerPIIX4:188 case IDEControllerType_PIIX4: 189 189 fPIIX4 = TRUE; 190 190 break; … … 267 267 switch (bootDevice) 268 268 { 269 case DeviceType_N oDevice:269 case DeviceType_Null: 270 270 pszBootDevice = "NONE"; 271 271 break; 272 case DeviceType_HardDisk Device:272 case DeviceType_HardDisk: 273 273 pszBootDevice = "IDE"; 274 274 break; 275 case DeviceType_DVD Device:275 case DeviceType_DVD: 276 276 pszBootDevice = "DVD"; 277 277 break; 278 case DeviceType_Floppy Device:278 case DeviceType_Floppy: 279 279 pszBootDevice = "FLOPPY"; 280 280 break; 281 case DeviceType_Network Device:281 case DeviceType_Network: 282 282 pszBootDevice = "LAN"; 283 283 break; … … 611 611 switch (enmCtl) 612 612 { 613 case DiskControllerType_IDE0 Controller:613 case DiskControllerType_IDE0: 614 614 i = 0; 615 615 break; 616 case DiskControllerType_IDE1 Controller:616 case DiskControllerType_IDE1: 617 617 i = 2; 618 618 break; … … 867 867 switch (adapterType) 868 868 { 869 case NetworkAdapterType_ NetworkAdapterAm79C970A:870 case NetworkAdapterType_ NetworkAdapterAm79C973:869 case NetworkAdapterType_Am79C970A: 870 case NetworkAdapterType_Am79C973: 871 871 pDev = pDevPCNet; 872 872 break; 873 873 #ifdef VBOX_WITH_E1000 874 case NetworkAdapterType_ NetworkAdapter82540EM:874 case NetworkAdapterType_I82540EM: 875 875 pDev = pDevE1000; 876 876 break; … … 899 899 switch (adapterType) 900 900 { 901 case NetworkAdapterType_ NetworkAdapterAm79C970A:901 case NetworkAdapterType_Am79C970A: 902 902 rc = CFGMR3InsertInteger(pCfg, "Am79C973", 0); RC_CHECK(); 903 903 break; 904 case NetworkAdapterType_ NetworkAdapterAm79C973:904 case NetworkAdapterType_Am79C973: 905 905 rc = CFGMR3InsertInteger(pCfg, "Am79C973", 1); RC_CHECK(); 906 906 break; … … 977 977 switch (networkAttachment) 978 978 { 979 case NetworkAttachmentType_N oNetworkAttachment:980 break; 981 982 case NetworkAttachmentType_NAT NetworkAttachment:979 case NetworkAttachmentType_Null: 980 break; 981 982 case NetworkAttachmentType_NAT: 983 983 { 984 984 if (fSniffer) … … 1015 1015 } 1016 1016 1017 case NetworkAttachmentType_HostInterface NetworkAttachment:1017 case NetworkAttachmentType_HostInterface: 1018 1018 { 1019 1019 /* … … 1126 1126 } 1127 1127 1128 case NetworkAttachmentType_Internal NetworkAttachment:1128 case NetworkAttachmentType_Internal: 1129 1129 { 1130 1130 hrc = networkAdapter->COMGETTER(InternalNetwork)(&str); H(); … … 1185 1185 rc = CFGMR3InsertInteger(pCfg, "IRQ", ulIRQ); RC_CHECK(); 1186 1186 rc = CFGMR3InsertInteger(pCfg, "IOBase", ulIOBase); RC_CHECK(); 1187 if (HostMode != PortMode_Disconnected Port)1187 if (HostMode != PortMode_Disconnected) 1188 1188 { 1189 1189 rc = CFGMR3InsertNode(pInst, "LUN#0", &pLunL0); RC_CHECK(); 1190 if (HostMode == PortMode_HostPipe Port)1190 if (HostMode == PortMode_HostPipe) 1191 1191 { 1192 1192 rc = CFGMR3InsertString(pLunL0, "Driver", "Char"); RC_CHECK(); … … 1197 1197 rc = CFGMR3InsertInteger(pLunL2, "IsServer", fServer); RC_CHECK(); 1198 1198 } 1199 else if (HostMode == PortMode_HostDevice Port)1199 else if (HostMode == PortMode_HostDevice) 1200 1200 { 1201 1201 rc = CFGMR3InsertString(pLunL0, "Driver", "Host Serial"); RC_CHECK(); … … 1335 1335 switch (audioDriver) 1336 1336 { 1337 case AudioDriverType_Null AudioDriver:1337 case AudioDriverType_Null: 1338 1338 { 1339 1339 rc = CFGMR3InsertString(pCfg, "AudioDriver", "null"); RC_CHECK(); … … 1342 1342 #ifdef RT_OS_WINDOWS 1343 1343 #ifdef VBOX_WITH_WINMM 1344 case AudioDriverType_WINMM AudioDriver:1344 case AudioDriverType_WINMM: 1345 1345 { 1346 1346 rc = CFGMR3InsertString(pCfg, "AudioDriver", "winmm"); RC_CHECK(); … … 1348 1348 } 1349 1349 #endif 1350 case AudioDriverType_DSOUND AudioDriver:1350 case AudioDriverType_DSOUND: 1351 1351 { 1352 1352 rc = CFGMR3InsertString(pCfg, "AudioDriver", "dsound"); RC_CHECK(); … … 1355 1355 #endif /* RT_OS_WINDOWS */ 1356 1356 #ifdef RT_OS_LINUX 1357 case AudioDriverType_OSS AudioDriver:1357 case AudioDriverType_OSS: 1358 1358 { 1359 1359 rc = CFGMR3InsertString(pCfg, "AudioDriver", "oss"); RC_CHECK(); … … 1361 1361 } 1362 1362 # ifdef VBOX_WITH_ALSA 1363 case AudioDriverType_ALSA AudioDriver:1363 case AudioDriverType_ALSA: 1364 1364 { 1365 1365 rc = CFGMR3InsertString(pCfg, "AudioDriver", "alsa"); RC_CHECK(); … … 1368 1368 # endif 1369 1369 # ifdef VBOX_WITH_PULSE 1370 case AudioDriverType_Pulse AudioDriver:1370 case AudioDriverType_Pulse: 1371 1371 { 1372 1372 rc = CFGMR3InsertString(pCfg, "AudioDriver", "pulse"); RC_CHECK(); … … 1376 1376 #endif /* RT_OS_LINUX */ 1377 1377 #ifdef RT_OS_DARWIN 1378 case AudioDriverType_Core AudioDriver:1378 case AudioDriverType_Core: 1379 1379 { 1380 1380 rc = CFGMR3InsertString(pCfg, "AudioDriver", "coreaudio"); RC_CHECK(); … … 1472 1472 */ 1473 1473 { 1474 ClipboardMode_T mode = ClipboardMode_ ClipDisabled;1474 ClipboardMode_T mode = ClipboardMode_Disabled; 1475 1475 hrc = pMachine->COMGETTER(ClipboardMode) (&mode); H(); 1476 1476 1477 if (mode != ClipboardMode_ ClipDisabled)1477 if (mode != ClipboardMode_Disabled) 1478 1478 { 1479 1479 /* Load the service */ … … 1496 1496 { 1497 1497 default: 1498 case ClipboardMode_ ClipDisabled:1498 case ClipboardMode_Disabled: 1499 1499 { 1500 1500 LogRel(("VBoxSharedClipboard mode: Off\n")); … … 1502 1502 break; 1503 1503 } 1504 case ClipboardMode_ ClipGuestToHost:1504 case ClipboardMode_GuestToHost: 1505 1505 { 1506 1506 LogRel(("VBoxSharedClipboard mode: Guest to Host\n")); … … 1508 1508 break; 1509 1509 } 1510 case ClipboardMode_ ClipHostToGuest:1510 case ClipboardMode_HostToGuest: 1511 1511 { 1512 1512 LogRel(("VBoxSharedClipboard mode: Host to Guest\n")); … … 1514 1514 break; 1515 1515 } 1516 case ClipboardMode_ ClipBidirectional:1516 case ClipboardMode_Bidirectional: 1517 1517 { 1518 1518 LogRel(("VBoxSharedClipboard mode: Bidirectional\n")); -
trunk/src/VBox/Main/DisplayImpl.cpp
r5999 r7207 242 242 /** 243 243 * Handles display resize event. 244 * Disables access to VGA device; 244 * Disables access to VGA device; 245 245 * calls the framebuffer RequestResize method; 246 246 * if framebuffer resizes synchronously, … … 282 282 break; 283 283 default: 284 pixelFormat = FramebufferPixelFormat_ PixelFormatOpaque;284 pixelFormat = FramebufferPixelFormat_Opaque; 285 285 bpp = cbLine = 0; 286 286 break; … … 331 331 { 332 332 LogFlowFunc(("\n")); 333 333 334 334 unsigned uScreenId; 335 335 for (uScreenId = 0; uScreenId < mcMonitors; uScreenId++) … … 350 350 /* Primary framebuffer has completed the resize. Update the connector data for VGA device. */ 351 351 updateDisplayData(); 352 352 353 353 /* Check the framebuffer pixel format to setup the rendering in VGA device. */ 354 354 BOOL usesGuestVRAM = FALSE; … … 542 542 prgn->pDisplay = pd; 543 543 prgn->pPort = pp; 544 544 545 545 unsigned uScreenId; 546 546 for (uScreenId = 0; uScreenId < cMonitors; uScreenId++) … … 794 794 ASMAtomicIncS32 (&mcVideoAccelVRDPRefs): 795 795 ASMAtomicDecS32 (&mcVideoAccelVRDPRefs); 796 796 797 797 Assert (c >= 0); 798 798 799 799 if (c == 0) 800 800 { 801 /* The last client has disconnected, and the accel can be 801 /* The last client has disconnected, and the accel can be 802 802 * disabled. 803 803 */ 804 804 Assert (fEnable == false); 805 805 806 806 mfVideoAccelVRDP = false; 807 807 mfu32SupportedOrders = 0; 808 808 809 809 vbvaSetMemoryFlags (mpVbvaMemory, mfVideoAccelEnabled, mfVideoAccelVRDP, mfu32SupportedOrders, maFramebuffers, mcMonitors); 810 810 811 811 LogRel(("VBVA: VRDP acceleration has been disabled.\n")); 812 812 } … … 814 814 && !mfVideoAccelVRDP) 815 815 { 816 /* The first client has connected. Enable the accel. 816 /* The first client has connected. Enable the accel. 817 817 */ 818 818 Assert (fEnable == true); 819 819 820 820 mfVideoAccelVRDP = true; 821 821 /* Supporting all orders. */ 822 822 mfu32SupportedOrders = ~0; 823 823 824 824 vbvaSetMemoryFlags (mpVbvaMemory, mfVideoAccelEnabled, mfVideoAccelVRDP, mfu32SupportedOrders, maFramebuffers, mcMonitors); 825 825 826 826 LogRel(("VBVA: VRDP acceleration has been requested.\n")); 827 827 } 828 828 else 829 829 { 830 /* A client is connected or disconnected but there is no change in the 830 /* A client is connected or disconnected but there is no change in the 831 831 * accel state. It remains enabled. 832 832 */ … … 1190 1190 phdr->w = (uint16_t)w; 1191 1191 phdr->h = (uint16_t)h; 1192 1192 1193 1193 DISPLAYFBINFO *pFBInfo = &maFramebuffers[uScreenId]; 1194 1194 … … 1212 1212 /* Forward the command to VRDP server. */ 1213 1213 mParent->consoleVRDPServer()->SendUpdate (uScreenId, phdr, cbCmd); 1214 1214 1215 1215 *phdr = hdrSaved; 1216 1216 } … … 2161 2161 uint8_t *pu8 = (uint8_t *)pvVRAM; 2162 2162 pu8 += u32VRAMSize - VBOX_VIDEO_ADAPTER_INFORMATION_SIZE; 2163 2163 2164 2164 // @todo 2165 2165 uint8_t *pu8End = pu8 + VBOX_VIDEO_ADAPTER_INFORMATION_SIZE; 2166 2166 2167 2167 VBOXVIDEOINFOHDR *pHdr; 2168 2168 2169 2169 for (;;) 2170 2170 { 2171 2171 pHdr = (VBOXVIDEOINFOHDR *)pu8; 2172 2172 pu8 += sizeof (VBOXVIDEOINFOHDR); 2173 2173 2174 2174 if (pu8 >= pu8End) 2175 2175 { … … 2218 2218 pConf32->u32Value = pDrv->pDisplay->mcMonitors; 2219 2219 } break; 2220 2220 2221 2221 case VBOX_VIDEO_QCI32_OFFSCREEN_HEAP_SIZE: 2222 2222 { … … 2224 2224 pConf32->u32Value = _1M; 2225 2225 } break; 2226 2226 2227 2227 default: 2228 2228 LogRel(("VBoxVideo: CONF32 %d not supported!!! Skipping.\n", pConf32->u32Index)); … … 2269 2269 uint8_t *pu8 = (uint8_t *)pvVRAM; 2270 2270 pu8 += pFBInfo->u32Offset + pFBInfo->u32MaxFramebufferSize; 2271 2271 2272 2272 // @todo 2273 2273 uint8_t *pu8End = pu8 + pFBInfo->u32InformationSize; 2274 2274 2275 2275 VBOXVIDEOINFOHDR *pHdr; 2276 2276 2277 2277 for (;;) 2278 2278 { 2279 2279 pHdr = (VBOXVIDEOINFOHDR *)pu8; 2280 2280 pu8 += sizeof (VBOXVIDEOINFOHDR); 2281 2281 2282 2282 if (pu8 >= pu8End) 2283 2283 { -
trunk/src/VBox/Main/HardDiskAttachmentImpl.cpp
r5999 r7207 28 28 HRESULT HardDiskAttachment::FinalConstruct() 29 29 { 30 mController = DiskControllerType_ InvalidController;30 mController = DiskControllerType_Null; 31 31 mDeviceNumber = 0; 32 32 -
trunk/src/VBox/Main/HardDiskImpl.cpp
r6461 r7207 102 102 103 103 mStorageType = HardDiskStorageType_VirtualDiskImage; 104 mType = HardDiskType_Normal HardDisk;104 mType = HardDiskType_Normal; 105 105 106 106 mBusy = false; … … 888 888 AutoLock chLock (childrenLock()); 889 889 890 if (mParent.isNull() && mType == HardDiskType_Normal HardDisk&&890 if (mParent.isNull() && mType == HardDiskType_Normal && 891 891 children().size() != 0) 892 892 { … … 1220 1220 const char *type = aHDNode.stringValue ("type"); 1221 1221 if (strcmp (type, "normal") == 0) 1222 mType = HardDiskType_Normal HardDisk;1222 mType = HardDiskType_Normal; 1223 1223 else if (strcmp (type, "immutable") == 0) 1224 mType = HardDiskType_Immutable HardDisk;1224 mType = HardDiskType_Immutable; 1225 1225 else if (strcmp (type, "writethrough") == 0) 1226 mType = HardDiskType_Writethrough HardDisk;1226 mType = HardDiskType_Writethrough; 1227 1227 else 1228 1228 ComAssertMsgFailedRet (("Invalid hard disk type '%s'\n", type), … … 1230 1230 } 1231 1231 else 1232 mType = HardDiskType_Normal HardDisk;1232 mType = HardDiskType_Normal; 1233 1233 1234 1234 HRESULT rc = mVirtualBox->registerHardDisk (this, VirtualBox::RHD_OnStartUp); … … 1279 1279 switch (mType) 1280 1280 { 1281 case HardDiskType_Normal HardDisk:1281 case HardDiskType_Normal: 1282 1282 type = "normal"; 1283 1283 break; 1284 case HardDiskType_Immutable HardDisk:1284 case HardDiskType_Immutable: 1285 1285 type = "immutable"; 1286 1286 break; 1287 case HardDiskType_Writethrough HardDisk:1287 case HardDiskType_Writethrough: 1288 1288 type = "writethrough"; 1289 1289 break; … … 2876 2876 CheckComRCBreakRC (rc); 2877 2877 2878 if (mType != HardDiskType_Writethrough HardDisk)2878 if (mType != HardDiskType_Writethrough) 2879 2879 { 2880 2880 rc = setError (E_FAIL, … … 2921 2921 mId.create(); 2922 2922 /* currently, all iSCSI hard disks are writethrough */ 2923 mType = HardDiskType_Writethrough HardDisk;2923 mType = HardDiskType_Writethrough; 2924 2924 mRegistered = FALSE; 2925 2925 } … … 3410 3410 */ 3411 3411 HRESULT HVMDKImage::init (VirtualBox *aVirtualBox, HardDisk *aParent, 3412 const settings::Key &aHDNode, 3412 const settings::Key &aHDNode, 3413 3413 const settings::Key &aVMDKNode) 3414 3414 { … … 3445 3445 CheckComRCBreakRC (rc); 3446 3446 3447 if (mType != HardDiskType_Writethrough HardDisk)3447 if (mType != HardDiskType_Writethrough) 3448 3448 { 3449 3449 rc = setError (E_FAIL, … … 3507 3507 3508 3508 /* currently, all VMDK hard disks are writethrough */ 3509 mType = HardDiskType_Writethrough HardDisk;3509 mType = HardDiskType_Writethrough; 3510 3510 3511 3511 Assert (mId.isEmpty()); … … 4334 4334 CheckComRCBreakRC (rc); 4335 4335 4336 if (mType != HardDiskType_Writethrough HardDisk)4336 if (mType != HardDiskType_Writethrough) 4337 4337 { 4338 4338 rc = setError (E_FAIL, … … 4396 4396 4397 4397 /* currently, all custom hard disks are writethrough */ 4398 mType = HardDiskType_Writethrough HardDisk;4398 mType = HardDiskType_Writethrough; 4399 4399 4400 4400 Assert (mId.isEmpty()); … … 5112 5112 */ 5113 5113 HRESULT HVHDImage::init (VirtualBox *aVirtualBox, HardDisk *aParent, 5114 const settings::Key &aHDNode, 5114 const settings::Key &aHDNode, 5115 5115 const settings::Key &aVHDNode) 5116 5116 { … … 5146 5146 CheckComRCBreakRC (rc); 5147 5147 5148 if (mType != HardDiskType_Writethrough HardDisk)5148 if (mType != HardDiskType_Writethrough) 5149 5149 { 5150 5150 rc = setError (E_FAIL, … … 5208 5208 5209 5209 /* currently, all VHD hard disks are writethrough */ 5210 mType = HardDiskType_Writethrough HardDisk;5210 mType = HardDiskType_Writethrough; 5211 5211 5212 5212 Assert (mId.isEmpty()); -
trunk/src/VBox/Main/HostImpl.cpp
r7104 r7207 1158 1158 1159 1159 USBDeviceFilterAction_T action; 1160 action = USBDeviceFilterAction_ USBDeviceFilterIgnore;1160 action = USBDeviceFilterAction_Ignore; 1161 1161 const char *actionStr = (*it).stringValue ("action"); 1162 1162 if (strcmp (actionStr, "Ignore") == 0) 1163 action = USBDeviceFilterAction_ USBDeviceFilterIgnore;1163 action = USBDeviceFilterAction_Ignore; 1164 1164 else 1165 1165 if (strcmp (actionStr, "Hold") == 0) 1166 action = USBDeviceFilterAction_ USBDeviceFilterHold;1166 action = USBDeviceFilterAction_Hold; 1167 1167 else 1168 1168 AssertMsgFailed (("Invalid action: '%s'\n", actionStr)); … … 1242 1242 1243 1243 /* action is mandatory */ 1244 if (data.mAction == USBDeviceFilterAction_ USBDeviceFilterIgnore)1244 if (data.mAction == USBDeviceFilterAction_Ignore) 1245 1245 filter.setStringValue ("action", "Ignore"); 1246 1246 else 1247 if (data.mAction == USBDeviceFilterAction_ USBDeviceFilterHold)1247 if (data.mAction == USBDeviceFilterAction_Hold) 1248 1248 filter.setStringValue ("action", "Hold"); 1249 1249 else … … 1283 1283 1284 1284 /* action is mandatory */ 1285 ULONG action = USBDeviceFilterAction_ InvalidUSBDeviceFilterAction;1285 ULONG action = USBDeviceFilterAction_Null; 1286 1286 (*it)->COMGETTER (Action) (&action); 1287 if (action == USBDeviceFilterAction_ USBDeviceFilterIgnore)1287 if (action == USBDeviceFilterAction_Ignore) 1288 1288 filter.setStringValue ("action", "Ignore"); 1289 else if (action == USBDeviceFilterAction_ USBDeviceFilterHold)1289 else if (action == USBDeviceFilterAction_Hold) 1290 1290 filter.setStringValue ("action", "Hold"); 1291 1291 else … … 1341 1341 device->name().raw(), id.raw()); 1342 1342 1343 if (device->state() == USBDeviceState_ USBDeviceNotSupported)1343 if (device->state() == USBDeviceState_NotSupported) 1344 1344 return setError (E_INVALIDARG, 1345 1345 tr ("USB device '%s' with UUID {%Vuuid} cannot be accessed by guest " … … 1347 1347 device->name().raw(), id.raw()); 1348 1348 1349 if (device->state() == USBDeviceState_U SBDeviceUnavailable)1349 if (device->state() == USBDeviceState_Unavailable) 1350 1350 return setError (E_INVALIDARG, 1351 1351 tr ("USB device '%s' with UUID {%Vuuid} is being exclusively used by the " … … 1353 1353 device->name().raw(), id.raw()); 1354 1354 1355 if (device->state() == USBDeviceState_ USBDeviceCaptured)1355 if (device->state() == USBDeviceState_Captured) 1356 1356 { 1357 1357 /* Machine::name() requires a read lock */ … … 1491 1491 continue; 1492 1492 1493 if (device->state() == USBDeviceState_ USBDeviceBusy ||1494 device->state() == USBDeviceState_ USBDeviceAvailable ||1495 device->state() == USBDeviceState_ USBDeviceHeld)1493 if (device->state() == USBDeviceState_Busy || 1494 device->state() == USBDeviceState_Available || 1495 device->state() == USBDeviceState_Held) 1496 1496 { 1497 1497 applyMachineUSBFilters (aMachine, device); … … 1536 1536 if (!device->isStatePending()) 1537 1537 { 1538 Assert (device->state() == USBDeviceState_ USBDeviceCaptured);1538 Assert (device->state() == USBDeviceState_Captured); 1539 1539 1540 1540 /* re-apply filters on the device before giving it back to the … … 2060 2060 AssertReturn (aDevice->isLockedOnCurrentThread(), E_FAIL); 2061 2061 2062 AssertReturn (aDevice->state() != USBDeviceState_ USBDeviceCaptured, E_FAIL);2062 AssertReturn (aDevice->state() != USBDeviceState_Captured, E_FAIL); 2063 2063 2064 2064 AssertReturn (aDevice->isStatePending() == false, E_FAIL); 2065 2065 2066 2066 /* ignore unsupported devices */ 2067 if (aDevice->state() == USBDeviceState_ USBDeviceNotSupported)2067 if (aDevice->state() == USBDeviceState_NotSupported) 2068 2068 return S_OK; 2069 2069 /* ignore unavailable devices as well */ 2070 if (aDevice->state() == USBDeviceState_U SBDeviceUnavailable)2070 if (aDevice->state() == USBDeviceState_Unavailable) 2071 2071 return S_OK; 2072 2072 … … 2089 2089 USBDeviceFilterAction_T action = data.mAction; 2090 2090 #else 2091 ULONG action = USBDeviceFilterAction_ InvalidUSBDeviceFilterAction;2091 ULONG action = USBDeviceFilterAction_Null; 2092 2092 (*it)->COMGETTER (Action) (&action); 2093 2093 #endif 2094 if (action == USBDeviceFilterAction_ USBDeviceFilterIgnore)2094 if (action == USBDeviceFilterAction_Ignore) 2095 2095 { 2096 2096 /* request to give the device back to the host*/ … … 2099 2099 return S_OK; 2100 2100 } 2101 if (action == USBDeviceFilterAction_ USBDeviceFilterHold)2101 if (action == USBDeviceFilterAction_Hold) 2102 2102 break; 2103 2103 } … … 2160 2160 AssertReturn (aDevice->isLockedOnCurrentThread(), false); 2161 2161 2162 AssertReturn (aDevice->state() != USBDeviceState_ USBDeviceNotSupported, false);2163 AssertReturn (aDevice->state() != USBDeviceState_U SBDeviceUnavailable, false);2162 AssertReturn (aDevice->state() != USBDeviceState_NotSupported, false); 2163 AssertReturn (aDevice->state() != USBDeviceState_Unavailable, false); 2164 2164 2165 2165 AssertReturn (aDevice->isStatePending() == false, false); … … 2282 2282 ComObjPtr <SessionMachine> machine (device->machine()); 2283 2283 device->handlePendingStateChange(); 2284 if (device->state() == USBDeviceState_ USBDeviceCaptured)2284 if (device->state() == USBDeviceState_Captured) 2285 2285 { 2286 2286 Log (("USB: running filters on async detached device\n")); … … 2291 2291 else 2292 2292 Log (("USB: async detached devices reappeared in stated %d instead of %d!\n", 2293 device->state(), USBDeviceState_ USBDeviceCaptured));2293 device->state(), USBDeviceState_Captured)); 2294 2294 } 2295 2295 else 2296 2296 device->handlePendingStateChange(); 2297 2297 } 2298 else if ( device->state() == USBDeviceState_ USBDeviceAvailable2299 || device->state() == USBDeviceState_ USBDeviceBusy)2298 else if ( device->state() == USBDeviceState_Available 2299 || device->state() == USBDeviceState_Busy) 2300 2300 { 2301 2301 /* The device has gone from being unavailable (not subject to filters) to being -
trunk/src/VBox/Main/HostUSBDeviceImpl.cpp
r5999 r7207 83 83 AssertMsgFailed(("aUsb->enmState=%d\n", aUsb->enmState)); 84 84 case USBDEVICESTATE_UNSUPPORTED: 85 mState = USBDeviceState_ USBDeviceNotSupported;85 mState = USBDeviceState_NotSupported; 86 86 break; 87 87 case USBDEVICESTATE_USED_BY_HOST: 88 mState = USBDeviceState_U SBDeviceUnavailable;88 mState = USBDeviceState_Unavailable; 89 89 break; 90 90 case USBDEVICESTATE_USED_BY_HOST_CAPTURABLE: 91 mState = USBDeviceState_ USBDeviceBusy;91 mState = USBDeviceState_Busy; 92 92 break; 93 93 case USBDEVICESTATE_UNUSED: 94 mState = USBDeviceState_ USBDeviceAvailable;94 mState = USBDeviceState_Available; 95 95 break; 96 96 case USBDEVICESTATE_HELD_BY_PROXY: 97 mState = USBDeviceState_ USBDeviceHeld;97 mState = USBDeviceState_Held; 98 98 break; 99 99 case USBDEVICESTATE_USED_BY_GUEST: … … 400 400 401 401 AssertReturn ( 402 mState == USBDeviceState_ USBDeviceBusy ||403 mState == USBDeviceState_ USBDeviceAvailable ||404 mState == USBDeviceState_ USBDeviceHeld,402 mState == USBDeviceState_Busy || 403 mState == USBDeviceState_Available || 404 mState == USBDeviceState_Held, 405 405 false); 406 406 407 if (mState == USBDeviceState_ USBDeviceHeld)407 if (mState == USBDeviceState_Held) 408 408 { 409 409 /* can perform immediate capture, inform the VM process */ … … 437 437 if (SUCCEEDED (rc)) 438 438 { 439 mState = mPendingState = USBDeviceState_ USBDeviceCaptured;439 mState = mPendingState = USBDeviceState_Captured; 440 440 mMachine = aMachine; 441 441 return true; … … 446 446 447 447 mIsStatePending = true; 448 mPendingState = USBDeviceState_ USBDeviceCaptured;448 mPendingState = USBDeviceState_Captured; 449 449 mPendingStateEx = kNothingPending; 450 450 mPendingSince = RTTimeNanoTS(); … … 475 475 476 476 AssertReturnVoid ( 477 mState == USBDeviceState_ USBDeviceBusy ||478 mState == USBDeviceState_ USBDeviceAvailable ||479 mState == USBDeviceState_ USBDeviceHeld);480 481 if (mState != USBDeviceState_ USBDeviceHeld)477 mState == USBDeviceState_Busy || 478 mState == USBDeviceState_Available || 479 mState == USBDeviceState_Held); 480 481 if (mState != USBDeviceState_Held) 482 482 return; 483 483 484 484 mIsStatePending = true; 485 mPendingState = USBDeviceState_ USBDeviceAvailable;485 mPendingState = USBDeviceState_Available; 486 486 mPendingStateEx = kNothingPending; 487 487 mPendingSince = RTTimeNanoTS(); … … 509 509 510 510 AssertReturnVoid ( 511 mState == USBDeviceState_ USBDeviceBusy ||512 mState == USBDeviceState_ USBDeviceAvailable ||513 mState == USBDeviceState_ USBDeviceHeld);511 mState == USBDeviceState_Busy || 512 mState == USBDeviceState_Available || 513 mState == USBDeviceState_Held); 514 514 515 515 mMachine.setNull(); 516 516 517 if (mState == USBDeviceState_ USBDeviceHeld)517 if (mState == USBDeviceState_Held) 518 518 return; 519 519 520 520 mIsStatePending = true; 521 mPendingState = USBDeviceState_ USBDeviceHeld;521 mPendingState = USBDeviceState_Held; 522 522 mPendingStateEx = kNothingPending; 523 523 mPendingSince = RTTimeNanoTS(); … … 538 538 AssertReturnVoid (isLockedOnCurrentThread()); 539 539 540 AssertReturnVoid (mState == USBDeviceState_ USBDeviceCaptured);541 AssertReturnVoid (mPendingState == USBDeviceState_ USBDeviceCaptured);540 AssertReturnVoid (mState == USBDeviceState_Captured); 541 AssertReturnVoid (mPendingState == USBDeviceState_Captured); 542 542 AssertReturnVoid (mIsStatePending == false); 543 543 544 mState = USBDeviceState_ USBDeviceHeld;544 mState = USBDeviceState_Held; 545 545 mMachine.setNull(); 546 546 } … … 559 559 AssertReturnVoid (isLockedOnCurrentThread()); 560 560 561 if (!mMachine.isNull() && mState == USBDeviceState_ USBDeviceCaptured)561 if (!mMachine.isNull() && mState == USBDeviceState_Captured) 562 562 { 563 563 /* the device is captured by a machine, instruct it to release */ … … 592 592 * matter what state we put it in. */ 593 593 mIsStatePending = false; 594 mState = mPendingState = USBDeviceState_ USBDeviceNotSupported;594 mState = mPendingState = USBDeviceState_NotSupported; 595 595 mPendingStateEx = kNothingPending; 596 596 mMachine.setNull(); … … 611 611 612 612 AssertReturnVoid (mIsStatePending == true); 613 AssertReturnVoid (mState != USBDeviceState_ USBDeviceCaptured || mPendingStateEx != kNothingPending);613 AssertReturnVoid (mState != USBDeviceState_Captured || mPendingStateEx != kNothingPending); 614 614 615 615 bool wasCapture = false; … … 623 623 switch (mPendingState) 624 624 { 625 case USBDeviceState_ USBDeviceCaptured:625 case USBDeviceState_Captured: 626 626 { 627 if (mState == USBDeviceState_ USBDeviceHeld)627 if (mState == USBDeviceState_Held) 628 628 { 629 629 if (!mMachine.isNull()) … … 633 633 /* it is a canceled capture request. Give the device back 634 634 * to the host. */ 635 mPendingState = USBDeviceState_ USBDeviceAvailable;635 mPendingState = USBDeviceState_Available; 636 636 mUSBProxyService->releaseDevice (this); 637 637 } … … 656 656 break; 657 657 } 658 case USBDeviceState_ USBDeviceAvailable:658 case USBDeviceState_Available: 659 659 { 660 660 Assert (mMachine.isNull()); 661 661 662 if (mState == USBDeviceState_ USBDeviceHeld)662 if (mState == USBDeviceState_Held) 663 663 { 664 664 /* couldn't release the device (give it back to the host). … … 674 674 break; 675 675 } 676 case USBDeviceState_ USBDeviceHeld:676 case USBDeviceState_Held: 677 677 { 678 if (mState == USBDeviceState_ USBDeviceHeld)678 if (mState == USBDeviceState_Held) 679 679 { 680 680 /* All right, the device is now held (due to some global … … 757 757 { 758 758 mIsStatePending = false; 759 mState = mPendingState = USBDeviceState_ USBDeviceCaptured;759 mState = mPendingState = USBDeviceState_Captured; 760 760 mPendingStateEx = kNothingPending; 761 761 return; … … 792 792 switch (mPendingState) 793 793 { 794 case USBDeviceState_ USBDeviceCaptured:794 case USBDeviceState_Captured: 795 795 /* reset mMachine to deassociate it from the filter and tell 796 796 * handlePendingStateChange() what to do */ … … 798 798 if (!aTimeout) 799 799 break; 800 case USBDeviceState_ USBDeviceAvailable:801 case USBDeviceState_ USBDeviceHeld:800 case USBDeviceState_Available: 801 case USBDeviceState_Held: 802 802 if (aTimeout) 803 803 { … … 1079 1079 AssertMsgFailed (("aDev->enmState=%d\n", aDev->enmState)); 1080 1080 case USBDEVICESTATE_UNSUPPORTED: 1081 Assert (mState == USBDeviceState_ USBDeviceNotSupported);1081 Assert (mState == USBDeviceState_NotSupported); 1082 1082 switch (mState) 1083 1083 { 1084 case USBDeviceState_ USBDeviceCaptured:1084 case USBDeviceState_Captured: 1085 1085 isImportant = mIsStatePending; 1086 1086 break; … … 1091 1091 switch (mState) 1092 1092 { 1093 case USBDeviceState_U SBDeviceUnavailable:1093 case USBDeviceState_Unavailable: 1094 1094 return false; 1095 1095 /* the following state changes don't require any action for now */ 1096 case USBDeviceState_ USBDeviceBusy:1097 case USBDeviceState_ USBDeviceAvailable:1096 case USBDeviceState_Busy: 1097 case USBDeviceState_Available: 1098 1098 isImportant = false; 1099 1099 break; 1100 1100 #ifndef RT_OS_WINDOWS /* Only windows really knows whether the device is unavailable or captured. */ 1101 case USBDeviceState_ USBDeviceCaptured:1101 case USBDeviceState_Captured: 1102 1102 if (!mIsStatePending) 1103 1103 return false; … … 1108 1108 } 1109 1109 LogFlowThisFunc (("%d -> %d\n", 1110 mState, USBDeviceState_U SBDeviceUnavailable));1111 mState = USBDeviceState_U SBDeviceUnavailable;1110 mState, USBDeviceState_Unavailable)); 1111 mState = USBDeviceState_Unavailable; 1112 1112 return isImportant; 1113 1113 … … 1115 1115 switch (mState) 1116 1116 { 1117 case USBDeviceState_ USBDeviceBusy:1117 case USBDeviceState_Busy: 1118 1118 return false; 1119 case USBDeviceState_ USBDeviceAvailable:1119 case USBDeviceState_Available: 1120 1120 isImportant = false; 1121 1121 break; 1122 case USBDeviceState_ USBDeviceCaptured:1122 case USBDeviceState_Captured: 1123 1123 #ifndef RT_OS_WINDOWS /* Only Windows really knows whether the device is busy or captured. */ 1124 1124 if (!mIsStatePending) … … 1133 1133 /* fall thru */ 1134 1134 default: 1135 /* USBDeviceState_U SBDeviceUnavailable: The device has become capturable, re-run filters. */1136 /* USBDeviceState_ USBDeviceHeld: Pending request. */1137 /* USBDeviceState_ USBDeviceCaptured: Pending request. */1138 /* USBDeviceState_ USBDeviceNotSupported: Something is broken. */1135 /* USBDeviceState_Unavailable: The device has become capturable, re-run filters. */ 1136 /* USBDeviceState_Held: Pending request. */ 1137 /* USBDeviceState_Captured: Pending request. */ 1138 /* USBDeviceState_NotSupported: Something is broken. */ 1139 1139 isImportant = true; 1140 1140 } 1141 1141 LogFlowThisFunc (("%d -> %d\n", 1142 mState, USBDeviceState_ USBDeviceBusy));1143 mState = USBDeviceState_ USBDeviceBusy;1142 mState, USBDeviceState_Busy)); 1143 mState = USBDeviceState_Busy; 1144 1144 return isImportant; 1145 1145 … … 1147 1147 switch (mState) 1148 1148 { 1149 case USBDeviceState_ USBDeviceAvailable:1149 case USBDeviceState_Available: 1150 1150 return false; 1151 1151 #if defined(RT_OS_LINUX) /* Hack for /proc/bus/usb/devices not necessarily putting up a driver. */ \ 1152 1152 || defined(RT_OS_DARWIN) /* We're a bit clueless as to the exact device state, just like linux. */ 1153 case USBDeviceState_ USBDeviceCaptured:1153 case USBDeviceState_Captured: 1154 1154 if ( !mIsStatePending 1155 1155 || mPendingStateEx != kNothingPending) … … 1159 1159 #endif 1160 1160 /* the following state changes don't require any action for now */ 1161 case USBDeviceState_ USBDeviceBusy:1161 case USBDeviceState_Busy: 1162 1162 isImportant = false; 1163 1163 break; 1164 1164 default: 1165 /* USBDeviceState_U SBDeviceUnavailable: The device has become available, re-run filters. */1166 /* USBDeviceState_ USBDeviceHeld: Pending request. */1167 /* USBDeviceState_ USBDeviceNotSupported: Something is broken. */1165 /* USBDeviceState_Unavailable: The device has become available, re-run filters. */ 1166 /* USBDeviceState_Held: Pending request. */ 1167 /* USBDeviceState_NotSupported: Something is broken. */ 1168 1168 isImportant = true; 1169 1169 } 1170 1170 LogFlowThisFunc (("%d -> %d\n", 1171 mState, USBDeviceState_ USBDeviceAvailable));1172 mState = USBDeviceState_ USBDeviceAvailable;1171 mState, USBDeviceState_Available)); 1172 mState = USBDeviceState_Available; 1173 1173 return isImportant; 1174 1174 … … 1176 1176 switch (mState) 1177 1177 { 1178 case USBDeviceState_ USBDeviceHeld:1178 case USBDeviceState_Held: 1179 1179 return false; 1180 case USBDeviceState_ USBDeviceCaptured:1180 case USBDeviceState_Captured: 1181 1181 if (!mIsStatePending) 1182 1182 return false; … … 1184 1184 default: 1185 1185 LogFlowThisFunc (("%d -> %d\n", 1186 mState, USBDeviceState_ USBDeviceHeld));1187 mState = USBDeviceState_ USBDeviceHeld;1186 mState, USBDeviceState_Held)); 1187 mState = USBDeviceState_Held; 1188 1188 return true; 1189 1189 } … … 1198 1198 switch (mState) 1199 1199 { 1200 case USBDeviceState_ USBDeviceCaptured:1200 case USBDeviceState_Captured: 1201 1201 /* the proxy may confuse following state(s) with captured */ 1202 case USBDeviceState_ USBDeviceHeld:1203 case USBDeviceState_ USBDeviceAvailable:1204 case USBDeviceState_ USBDeviceBusy:1202 case USBDeviceState_Held: 1203 case USBDeviceState_Available: 1204 case USBDeviceState_Busy: 1205 1205 return false; 1206 1206 default: 1207 1207 LogFlowThisFunc (("%d -> %d\n", 1208 mState, USBDeviceState_ USBDeviceHeld));1209 mState = USBDeviceState_ USBDeviceHeld;1208 mState, USBDeviceState_Held)); 1209 mState = USBDeviceState_Held; 1210 1210 return true; 1211 1211 } -
trunk/src/VBox/Main/MachineImpl.cpp
r6965 r7207 127 127 128 128 mSession.mPid = NIL_RTPROCESS; 129 mSession.mState = SessionState_ SessionClosed;129 mSession.mState = SessionState_Closed; 130 130 } 131 131 … … 169 169 mVRAMSize = 8; 170 170 mMonitorCount = 1; 171 mHWVirtExEnabled = T riStateBool_TSFalse;171 mHWVirtExEnabled = TSBool_False; 172 172 173 173 /* default boot order: floppy - DVD - HDD */ 174 mBootOrder [0] = DeviceType_Floppy Device;175 mBootOrder [1] = DeviceType_DVD Device;176 mBootOrder [2] = DeviceType_HardDisk Device;174 mBootOrder [0] = DeviceType_Floppy; 175 mBootOrder [1] = DeviceType_DVD; 176 mBootOrder [2] = DeviceType_HardDisk; 177 177 for (size_t i = 3; i < ELEMENTS (mBootOrder); i++) 178 mBootOrder [i] = DeviceType_N oDevice;179 180 mClipboardMode = ClipboardMode_ ClipBidirectional;178 mBootOrder [i] = DeviceType_Null; 179 180 mClipboardMode = ClipboardMode_Bidirectional; 181 181 } 182 182 … … 1079 1079 } 1080 1080 1081 STDMETHODIMP Machine::COMGETTER(HWVirtExEnabled)(T riStateBool_T *enabled)1081 STDMETHODIMP Machine::COMGETTER(HWVirtExEnabled)(TSBool_T *enabled) 1082 1082 { 1083 1083 if (!enabled) … … 1094 1094 } 1095 1095 1096 STDMETHODIMP Machine::COMSETTER(HWVirtExEnabled)(T riStateBool_T enable)1096 STDMETHODIMP Machine::COMSETTER(HWVirtExEnabled)(TSBool_T enable) 1097 1097 { 1098 1098 AutoCaller autoCaller (this); … … 1551 1551 aPosition, SchemaDefs::MaxBootPosition); 1552 1552 1553 if (aDevice == DeviceType_USB Device)1553 if (aDevice == DeviceType_USB) 1554 1554 return setError (E_FAIL, 1555 1555 tr ("Booting from USB devices is not currently supported")); … … 1592 1592 1593 1593 if (id.isEmpty() || 1594 aCtl == DiskControllerType_ InvalidController||1594 aCtl == DiskControllerType_Null || 1595 1595 aDev < 0 || aDev > 1) 1596 1596 return E_INVALIDARG; … … 1647 1647 switch (hd->type()) 1648 1648 { 1649 case HardDiskType_Immutable HardDisk:1649 case HardDiskType_Immutable: 1650 1650 { 1651 1651 Assert (hd->machineId().isEmpty()); … … 1659 1659 break; 1660 1660 } 1661 case HardDiskType_Writethrough HardDisk:1661 case HardDiskType_Writethrough: 1662 1662 { 1663 1663 Assert (hd->children().size() == 0); … … 1665 1665 /* fall through */ 1666 1666 } 1667 case HardDiskType_Normal HardDisk:1667 case HardDiskType_Normal: 1668 1668 { 1669 1669 if (hd->machineId().isEmpty()) … … 1722 1722 { 1723 1723 /* 1724 * here we go when the HardDiskType_Normal HardDisk1724 * here we go when the HardDiskType_Normal 1725 1725 * is attached to some VM (probably to this one, too) 1726 1726 * at some particular snapshot, so we can create a diff … … 1758 1758 LONG aDev, IHardDisk **aHardDisk) 1759 1759 { 1760 if (aCtl == DiskControllerType_ InvalidController||1760 if (aCtl == DiskControllerType_Null || 1761 1761 aDev < 0 || aDev > 1) 1762 1762 return E_INVALIDARG; … … 1787 1787 STDMETHODIMP Machine::DetachHardDisk (DiskControllerType_T aCtl, LONG aDev) 1788 1788 { 1789 if (aCtl == DiskControllerType_ InvalidController||1789 if (aCtl == DiskControllerType_Null || 1790 1790 aDev < 0 || aDev > 1) 1791 1791 return E_INVALIDARG; … … 1821 1821 switch (hd->type()) 1822 1822 { 1823 case HardDiskType_Immutable HardDisk:1823 case HardDiskType_Immutable: 1824 1824 { 1825 1825 /* decrease readers increased in AttachHardDisk() */ … … 1828 1828 break; 1829 1829 } 1830 case HardDiskType_Writethrough HardDisk:1830 case HardDiskType_Writethrough: 1831 1831 { 1832 1832 /* deassociate from this machine */ … … 1835 1835 break; 1836 1836 } 1837 case HardDiskType_Normal HardDisk:1837 case HardDiskType_Normal: 1838 1838 { 1839 1839 if (hd->snapshotId().isEmpty()) … … 2454 2454 AutoReaderLock alock (this); 2455 2455 2456 if (mData->mSession.mState != SessionState_ SessionOpen)2456 if (mData->mSession.mState != SessionState_Open) 2457 2457 return setError (E_FAIL, 2458 2458 tr ("Machine session is not open (session state: %d)"), … … 2482 2482 AutoReaderLock alock (this); 2483 2483 2484 if (mData->mSession.mState != SessionState_ SessionOpen)2484 if (mData->mSession.mState != SessionState_Open) 2485 2485 return setError (E_FAIL, 2486 2486 tr ("Machine session is not open (session state: %d)"), … … 2522 2522 sm = mData->mSession.mMachine; 2523 2523 Assert (!sm.isNull() || 2524 mData->mSession.mState != SessionState_ SessionOpen);2524 mData->mSession.mState != SessionState_Open); 2525 2525 2526 2526 return sm; … … 2689 2689 } 2690 2690 2691 if (!(aUsage & ResourceUsage_Permanent Usage))2691 if (!(aUsage & ResourceUsage_Permanent)) 2692 2692 d [0] = NULL; 2693 if (!(aUsage & ResourceUsage_Temporary Usage))2693 if (!(aUsage & ResourceUsage_Temporary)) 2694 2694 d [1] = NULL; 2695 2695 … … 2709 2709 2710 2710 /* then, check snapshots if any */ 2711 if (aUsage & ResourceUsage_Permanent Usage)2711 if (aUsage & ResourceUsage_Permanent) 2712 2712 { 2713 2713 if (!mData->mFirstSnapshot.isNull() && … … 2765 2765 } 2766 2766 2767 if (!(aUsage & ResourceUsage_Permanent Usage))2767 if (!(aUsage & ResourceUsage_Permanent)) 2768 2768 d [0] = NULL; 2769 if (!(aUsage & ResourceUsage_Temporary Usage))2769 if (!(aUsage & ResourceUsage_Temporary)) 2770 2770 d [1] = NULL; 2771 2771 … … 2785 2785 2786 2786 /* then, check snapshots if any */ 2787 if (aUsage & ResourceUsage_Permanent Usage)2787 if (aUsage & ResourceUsage_Permanent) 2788 2788 { 2789 2789 if (!mData->mFirstSnapshot.isNull() && … … 2817 2817 LogFlowThisFunc (("mSession.mState=%d\n", mData->mSession.mState)); 2818 2818 2819 if (mData->mSession.mState == SessionState_ SessionOpen ||2820 mData->mSession.mState == SessionState_ SessionClosing)2819 if (mData->mSession.mState == SessionState_Open || 2820 mData->mSession.mState == SessionState_Closing) 2821 2821 return setError (E_ACCESSDENIED, 2822 2822 tr ("A session for the machine '%ls' is currently open " … … 2833 2833 Assert (pid != NIL_RTPROCESS); 2834 2834 2835 if (mData->mSession.mState == SessionState_S essionSpawning)2835 if (mData->mSession.mState == SessionState_Spawning) 2836 2836 { 2837 2837 /* This machine is awaiting for a spawning session to be opened, so … … 2865 2865 */ 2866 2866 SessionState_T origState = mData->mSession.mState; 2867 mData->mSession.mState = SessionState_S essionSpawning;2867 mData->mSession.mState = SessionState_Spawning; 2868 2868 2869 2869 /* … … 2888 2888 tr ("Failed to assign the machine to the session")); 2889 2889 2890 if (SUCCEEDED (rc) && origState == SessionState_S essionSpawning)2890 if (SUCCEEDED (rc) && origState == SessionState_Spawning) 2891 2891 { 2892 2892 /* complete the remote session initialization */ … … 2933 2933 2934 2934 /* finalize spawning amyway (this is why we don't return on errors above) */ 2935 if (mData->mSession.mState == SessionState_S essionSpawning)2935 if (mData->mSession.mState == SessionState_Spawning) 2936 2936 { 2937 2937 /* Note that the progress object is finalized later */ … … 2946 2946 * and reset session state to Closed. */ 2947 2947 mData->mSession.mRemoteControls.clear(); 2948 mData->mSession.mState = SessionState_ SessionClosed;2948 mData->mSession.mState = SessionState_Closed; 2949 2949 } 2950 2950 } … … 2960 2960 /* memorize the direct session control and cache IUnknown for it */ 2961 2961 mData->mSession.mDirectControl = aControl; 2962 mData->mSession.mState = SessionState_ SessionOpen;2962 mData->mSession.mState = SessionState_Open; 2963 2963 /* associate the SessionMachine with this Machine */ 2964 2964 mData->mSession.mMachine = sessionMachine; … … 3011 3011 LogFlowThisFunc (("mSession.mState=%d\n", mData->mSession.mState)); 3012 3012 3013 if (mData->mSession.mState == SessionState_ SessionOpen ||3014 mData->mSession.mState == SessionState_S essionSpawning ||3015 mData->mSession.mState == SessionState_ SessionClosing)3013 if (mData->mSession.mState == SessionState_Open || 3014 mData->mSession.mState == SessionState_Spawning || 3015 mData->mSession.mState == SessionState_Closing) 3016 3016 return setError (E_ACCESSDENIED, 3017 3017 tr ("A session for the machine '%ls' is currently open " … … 3172 3172 { 3173 3173 /* restore the session state */ 3174 mData->mSession.mState = SessionState_ SessionClosed;3174 mData->mSession.mState = SessionState_Closed; 3175 3175 /* The failure may w/o any error info (from RPC), so provide one */ 3176 3176 return setError (rc, … … 3183 3183 mData->mSession.mProgress = aProgress; 3184 3184 mData->mSession.mPid = pid; 3185 mData->mSession.mState = SessionState_S essionSpawning;3185 mData->mSession.mState = SessionState_Spawning; 3186 3186 mData->mSession.mType = type; 3187 3187 … … 3211 3211 LogFlowThisFunc (("mSession.state=%d\n", mData->mSession.mState)); 3212 3212 3213 if (mData->mSession.mState != SessionState_ SessionOpen)3213 if (mData->mSession.mState != SessionState_Open) 3214 3214 return setError (E_ACCESSDENIED, 3215 3215 tr ("The machine '%ls' does not have an open session"), … … 3258 3258 3259 3259 /* need to revalidate the state after entering the lock again */ 3260 if (mData->mSession.mState != SessionState_ SessionOpen)3260 if (mData->mSession.mState != SessionState_Open) 3261 3261 { 3262 3262 aControl->Uninitialize(); … … 3349 3349 mUserData->mName.raw(), snapshotCount); 3350 3350 3351 if (mData->mSession.mState != SessionState_ SessionClosed)3351 if (mData->mSession.mState != SessionState_Closed) 3352 3352 return setError (E_FAIL, 3353 3353 tr ("Cannot unregister the machine '%ls' because it has an " … … 4140 4140 { 4141 4141 /* default value in case the node is not there */ 4142 mHWData->mHWVirtExEnabled = T riStateBool_TSDefault;4142 mHWData->mHWVirtExEnabled = TSBool_Default; 4143 4143 4144 4144 Key cpuNode = aNode.findKey ("CPU"); … … 4150 4150 const char *enabled = hwVirtExNode.stringValue ("enabled"); 4151 4151 if (strcmp (enabled, "false") == 0) 4152 mHWData->mHWVirtExEnabled = T riStateBool_TSFalse;4152 mHWData->mHWVirtExEnabled = TSBool_False; 4153 4153 else if (strcmp (enabled, "true") == 0) 4154 mHWData->mHWVirtExEnabled = T riStateBool_TSTrue;4154 mHWData->mHWVirtExEnabled = TSBool_True; 4155 4155 else 4156 mHWData->mHWVirtExEnabled = T riStateBool_TSDefault;4156 mHWData->mHWVirtExEnabled = TSBool_Default; 4157 4157 } 4158 4158 } … … 4170 4170 /* reset all boot order positions to NoDevice */ 4171 4171 for (size_t i = 0; i < ELEMENTS (mHWData->mBootOrder); i++) 4172 mHWData->mBootOrder [i] = DeviceType_N oDevice;4172 mHWData->mBootOrder [i] = DeviceType_Null; 4173 4173 4174 4174 Key bootNode = aNode.key ("Boot"); … … 4187 4187 const char *device = (*it).stringValue ("device"); 4188 4188 if (strcmp (device, "None") == 0) 4189 mHWData->mBootOrder [position] = DeviceType_N oDevice;4189 mHWData->mBootOrder [position] = DeviceType_Null; 4190 4190 else if (strcmp (device, "Floppy") == 0) 4191 mHWData->mBootOrder [position] = DeviceType_Floppy Device;4191 mHWData->mBootOrder [position] = DeviceType_Floppy; 4192 4192 else if (strcmp (device, "DVD") == 0) 4193 mHWData->mBootOrder [position] = DeviceType_DVD Device;4193 mHWData->mBootOrder [position] = DeviceType_DVD; 4194 4194 else if (strcmp (device, "HardDisk") == 0) 4195 mHWData->mBootOrder [position] = DeviceType_HardDisk Device;4195 mHWData->mBootOrder [position] = DeviceType_HardDisk; 4196 4196 else if (strcmp (device, "Network") == 0) 4197 mHWData->mBootOrder [position] = DeviceType_Network Device;4197 mHWData->mBootOrder [position] = DeviceType_Network; 4198 4198 else 4199 4199 ComAssertMsgFailed (("Invalid device: %s\n", device)); … … 4331 4331 { 4332 4332 /* default value in case if the node is not there */ 4333 mHWData->mClipboardMode = ClipboardMode_ ClipDisabled;4333 mHWData->mClipboardMode = ClipboardMode_Disabled; 4334 4334 4335 4335 Key clipNode = aNode.findKey ("Clipboard"); … … 4338 4338 const char *mode = clipNode.stringValue ("mode"); 4339 4339 if (strcmp (mode, "Disabled") == 0) 4340 mHWData->mClipboardMode = ClipboardMode_ ClipDisabled;4340 mHWData->mClipboardMode = ClipboardMode_Disabled; 4341 4341 else if (strcmp (mode, "HostToGuest") == 0) 4342 mHWData->mClipboardMode = ClipboardMode_ ClipHostToGuest;4342 mHWData->mClipboardMode = ClipboardMode_HostToGuest; 4343 4343 else if (strcmp (mode, "GuestToHost") == 0) 4344 mHWData->mClipboardMode = ClipboardMode_ ClipGuestToHost;4344 mHWData->mClipboardMode = ClipboardMode_GuestToHost; 4345 4345 else if (strcmp (mode, "Bidirectional") == 0) 4346 mHWData->mClipboardMode = ClipboardMode_ ClipBidirectional;4346 mHWData->mClipboardMode = ClipboardMode_Bidirectional; 4347 4347 else 4348 4348 AssertMsgFailed (("Invalid clipboard mode '%s'\n", mode)); … … 4430 4430 } 4431 4431 4432 if (hd->type() == HardDiskType_Immutable HardDisk)4432 if (hd->type() == HardDiskType_Immutable) 4433 4433 { 4434 4434 return setError (E_FAIL, … … 4440 4440 4441 4441 /* attach the device */ 4442 DiskControllerType_T ctl = DiskControllerType_ InvalidController;4442 DiskControllerType_T ctl = DiskControllerType_Null; 4443 4443 LONG dev = -1; 4444 4444 4445 4445 if (strcmp (bus, "ide0") == 0) 4446 4446 { 4447 ctl = DiskControllerType_IDE0 Controller;4447 ctl = DiskControllerType_IDE0; 4448 4448 if (strcmp (device, "master") == 0) 4449 4449 dev = 0; … … 4456 4456 else if (strcmp (bus, "ide1") == 0) 4457 4457 { 4458 ctl = DiskControllerType_IDE1 Controller;4458 ctl = DiskControllerType_IDE1; 4459 4459 if (strcmp (device, "master") == 0) 4460 4460 rc = setError (E_FAIL, tr("Could not attach a disk as a master " … … 5528 5528 switch (mHWData->mHWVirtExEnabled) 5529 5529 { 5530 case T riStateBool_TSFalse:5530 case TSBool_False: 5531 5531 value = "false"; 5532 5532 break; 5533 case T riStateBool_TSTrue:5533 case TSBool_True: 5534 5534 value = "true"; 5535 5535 break; 5536 case T riStateBool_TSDefault:5536 case TSBool_Default: 5537 5537 value = "default"; 5538 5538 } … … 5555 5555 switch (mHWData->mBootOrder [pos]) 5556 5556 { 5557 case DeviceType_N oDevice:5557 case DeviceType_Null: 5558 5558 /* skip, this is allowed for <Order> nodes 5559 5559 * when loading, the default value NoDevice will remain */ 5560 5560 continue; 5561 case DeviceType_Floppy Device:device = "Floppy"; break;5562 case DeviceType_DVD Device:device = "DVD"; break;5563 case DeviceType_HardDisk Device:device = "HardDisk"; break;5564 case DeviceType_Network Device:device = "Network"; break;5561 case DeviceType_Floppy: device = "Floppy"; break; 5562 case DeviceType_DVD: device = "DVD"; break; 5563 case DeviceType_HardDisk: device = "HardDisk"; break; 5564 case DeviceType_Network: device = "Network"; break; 5565 5565 default: 5566 5566 { … … 5679 5679 switch (mHWData->mClipboardMode) 5680 5680 { 5681 case ClipboardMode_ ClipDisabled:5681 case ClipboardMode_Disabled: 5682 5682 /* already assigned */ 5683 5683 break; 5684 case ClipboardMode_ ClipHostToGuest:5684 case ClipboardMode_HostToGuest: 5685 5685 modeStr = "HostToGuest"; 5686 5686 break; 5687 case ClipboardMode_ ClipGuestToHost:5687 case ClipboardMode_GuestToHost: 5688 5688 modeStr = "GuestToHost"; 5689 5689 break; 5690 case ClipboardMode_ ClipBidirectional:5690 case ClipboardMode_Bidirectional: 5691 5691 modeStr = "Bidirectional"; 5692 5692 break; … … 5742 5742 switch (att->controller()) 5743 5743 { 5744 case DiskControllerType_IDE0 Controller: bus = "ide0"; break;5745 case DiskControllerType_IDE1 Controller: bus = "ide1"; break;5744 case DiskControllerType_IDE0: bus = "ide0"; break; 5745 case DiskControllerType_IDE1: bus = "ide1"; break; 5746 5746 default: 5747 5747 ComAssertFailedRet (E_FAIL); … … 5956 5956 switch (hd->type()) 5957 5957 { 5958 case HardDiskType_Immutable HardDisk:5958 case HardDiskType_Immutable: 5959 5959 { 5960 5960 /* decrease readers increased in AttachHardDisk() */ … … 5965 5965 break; 5966 5966 } 5967 case HardDiskType_Writethrough HardDisk:5967 case HardDiskType_Writethrough: 5968 5968 { 5969 5969 /* reset the dirty flag */ … … 5972 5972 break; 5973 5973 } 5974 case HardDiskType_Normal HardDisk:5974 case HardDiskType_Normal: 5975 5975 { 5976 5976 if (hd->snapshotId().isEmpty()) … … 6236 6236 switch (hd->type()) 6237 6237 { 6238 case HardDiskType_Immutable HardDisk:6238 case HardDiskType_Immutable: 6239 6239 { 6240 6240 /* decrease readers increased in AttachHardDisk() */ … … 6243 6243 break; 6244 6244 } 6245 case HardDiskType_Writethrough HardDisk:6245 case HardDiskType_Writethrough: 6246 6246 { 6247 6247 /* deassociate from this machine */ … … 6250 6250 break; 6251 6251 } 6252 case HardDiskType_Normal HardDisk:6252 case HardDiskType_Normal: 6253 6253 { 6254 6254 if (hd->snapshotId().isEmpty()) … … 6324 6324 AutoLock hdLock (hd); 6325 6325 6326 ComAssertMsgBreak (hd->type() == HardDiskType_Normal HardDisk,6326 ComAssertMsgBreak (hd->type() == HardDiskType_Normal, 6327 6327 ("Invalid hard disk type %d\n", hd->type()), 6328 6328 rc = E_FAIL); … … 6394 6394 { 6395 6395 // checked in the first pass 6396 Assert (hd->type() == HardDiskType_Normal HardDisk);6396 Assert (hd->type() == HardDiskType_Normal); 6397 6397 6398 6398 aProgress->advanceOperation (Bstr (Utf8StrFmt ( … … 6434 6434 { 6435 6435 // associate the snapshot id with the old hard disk 6436 if (hd->type() != HardDiskType_Writethrough HardDisk&& aSnapshotId)6436 if (hd->type() != HardDiskType_Writethrough && aSnapshotId) 6437 6437 hd->setSnapshotId (*aSnapshotId); 6438 6438 … … 7317 7317 /* this must be null here (see #OnSessionEnd()) */ 7318 7318 Assert (mData->mSession.mDirectControl.isNull()); 7319 Assert (mData->mSession.mState == SessionState_ SessionClosing);7319 Assert (mData->mSession.mState == SessionState_Closing); 7320 7320 Assert (!mData->mSession.mProgress.isNull()); 7321 7321 … … 7330 7330 /* reset the rest of session data */ 7331 7331 mData->mSession.mMachine.setNull(); 7332 mData->mSession.mState = SessionState_ SessionClosed;7332 mData->mSession.mState = SessionState_Closed; 7333 7333 mData->mSession.mType.setNull(); 7334 7334 … … 7351 7351 7352 7352 /* fire an event */ 7353 mParent->onSessionStateChange (mData->mUuid, SessionState_ SessionClosed);7353 mParent->onSessionStateChange (mData->mUuid, SessionState_Closed); 7354 7354 7355 7355 uninitDataAndChildObjects(); … … 7547 7547 /* go to the closing state (essential for all open*Session() calls and 7548 7548 * for #checkForDeath()) */ 7549 Assert (mData->mSession.mState == SessionState_ SessionOpen);7550 mData->mSession.mState = SessionState_ SessionClosing;7549 Assert (mData->mSession.mState == SessionState_Open); 7550 mData->mSession.mState = SessionState_Closing; 7551 7551 7552 7552 /* set direct control to NULL to release the remote instance */ … … 7604 7604 7605 7605 AssertReturn (mData->mMachineState == MachineState_Paused && 7606 mSnapshotData.mLastState == MachineState_ InvalidMachineState&&7606 mSnapshotData.mLastState == MachineState_Null && 7607 7607 mSnapshotData.mProgressId.isEmpty() && 7608 7608 mSnapshotData.mStateFilePath.isNull(), … … 7652 7652 7653 7653 AssertReturn (mData->mMachineState == MachineState_Saving && 7654 mSnapshotData.mLastState != MachineState_ InvalidMachineState&&7654 mSnapshotData.mLastState != MachineState_Null && 7655 7655 !mSnapshotData.mProgressId.isEmpty() && 7656 7656 !mSnapshotData.mStateFilePath.isNull(), … … 7727 7727 AssertReturn ((mData->mMachineState < MachineState_Running || 7728 7728 mData->mMachineState == MachineState_Paused) && 7729 mSnapshotData.mLastState == MachineState_ InvalidMachineState&&7729 mSnapshotData.mLastState == MachineState_Null && 7730 7730 mSnapshotData.mSnapshot.isNull() && 7731 7731 mSnapshotData.mServerProgress.isNull() && … … 7753 7753 ComObjPtr <HardDisk> hd = (*it)->hardDisk(); 7754 7754 AutoLock hdLock (hd); 7755 if (hd->type() == HardDiskType_Writethrough HardDisk)7755 if (hd->type() == HardDiskType_Writethrough) 7756 7756 return setError (E_FAIL, 7757 7757 tr ("Cannot take a snapshot when there is a Writethrough hard " … … 7887 7887 AssertReturn (!aSuccess || 7888 7888 (mData->mMachineState == MachineState_Saving && 7889 mSnapshotData.mLastState != MachineState_ InvalidMachineState&&7889 mSnapshotData.mLastState != MachineState_Null && 7890 7890 !mSnapshotData.mSnapshot.isNull() && 7891 7891 !mSnapshotData.mServerProgress.isNull() && … … 8187 8187 * (see Session::uninit() for details). 8188 8188 */ 8189 reason = mData->mSession.mState == SessionState_ SessionClosing ?8189 reason = mData->mSession.mState == SessionState_Closing ? 8190 8190 Uninit::Normal : 8191 8191 Uninit::Abnormal; … … 8539 8539 8540 8540 /* clear out the temporary saved state data */ 8541 mSnapshotData.mLastState = MachineState_ InvalidMachineState;8541 mSnapshotData.mLastState = MachineState_Null; 8542 8542 mSnapshotData.mProgressId.clear(); 8543 8543 mSnapshotData.mStateFilePath.setNull(); … … 8622 8622 8623 8623 /* clear out the snapshot data */ 8624 mSnapshotData.mLastState = MachineState_ InvalidMachineState;8624 mSnapshotData.mLastState = MachineState_Null; 8625 8625 mSnapshotData.mSnapshot.setNull(); 8626 8626 mSnapshotData.mServerProgress.setNull(); … … 8800 8800 } 8801 8801 8802 if (hd->type() == HardDiskType_Normal HardDisk)8802 if (hd->type() == HardDiskType_Normal) 8803 8803 { 8804 8804 AutoLock hdChildrenLock (hd->childrenLock()); … … 8916 8916 } 8917 8917 } 8918 else if (hd->type() == HardDiskType_Normal HardDisk)8918 else if (hd->type() == HardDiskType_Normal) 8919 8919 { 8920 8920 /* … … 9599 9599 * and simply do nothing here. */ 9600 9600 9601 if (mData->mSession.mState == SessionState_ SessionClosing)9601 if (mData->mSession.mState == SessionState_Closing) 9602 9602 return S_OK; 9603 9603 -
trunk/src/VBox/Main/NetworkAdapterImpl.cpp
r6344 r7207 68 68 69 69 /* default to Am79C973 */ 70 mData->mAdapterType = NetworkAdapterType_ NetworkAdapterAm79C973;70 mData->mAdapterType = NetworkAdapterType_Am79C973; 71 71 72 72 /* generate the MAC address early to guarantee it is the same both after … … 199 199 switch (aAdapterType) 200 200 { 201 case NetworkAdapterType_ NetworkAdapterAm79C970A:202 case NetworkAdapterType_ NetworkAdapterAm79C973:201 case NetworkAdapterType_Am79C970A: 202 case NetworkAdapterType_Am79C973: 203 203 #ifdef VBOX_WITH_E1000 204 case NetworkAdapterType_ NetworkAdapter82540EM:204 case NetworkAdapterType_I82540EM: 205 205 #endif 206 206 break; … … 631 631 /* if an empty string is to be set, internal networking must be turned off */ 632 632 if ( (aInternalNetwork == Bstr("")) 633 && (mData->mAttachmentType = NetworkAttachmentType_Internal NetworkAttachment))633 && (mData->mAttachmentType = NetworkAttachmentType_Internal)) 634 634 { 635 635 return setError (E_FAIL, tr ("Empty internal network name is not valid")); … … 821 821 AutoLock alock (this); 822 822 823 if (mData->mAttachmentType != NetworkAttachmentType_NAT NetworkAttachment)823 if (mData->mAttachmentType != NetworkAttachmentType_NAT) 824 824 { 825 825 mData.backup(); … … 827 827 detach(); 828 828 829 mData->mAttachmentType = NetworkAttachmentType_NAT NetworkAttachment;829 mData->mAttachmentType = NetworkAttachmentType_NAT; 830 830 831 831 /* leave the lock before informing callbacks */ … … 850 850 851 851 /* don't do anything if we're already host interface attached */ 852 if (mData->mAttachmentType != NetworkAttachmentType_HostInterface NetworkAttachment)852 if (mData->mAttachmentType != NetworkAttachmentType_HostInterface) 853 853 { 854 854 mData.backup(); … … 857 857 detach(); 858 858 859 mData->mAttachmentType = NetworkAttachmentType_HostInterface NetworkAttachment;859 mData->mAttachmentType = NetworkAttachmentType_HostInterface; 860 860 861 861 /* leave the lock before informing callbacks */ … … 880 880 881 881 /* don't do anything if we're already internal network attached */ 882 if (mData->mAttachmentType != NetworkAttachmentType_Internal NetworkAttachment)882 if (mData->mAttachmentType != NetworkAttachmentType_Internal) 883 883 { 884 884 mData.backup(); … … 896 896 } 897 897 898 mData->mAttachmentType = NetworkAttachmentType_Internal NetworkAttachment;898 mData->mAttachmentType = NetworkAttachmentType_Internal; 899 899 900 900 /* leave the lock before informing callbacks */ … … 918 918 AutoLock alock (this); 919 919 920 if (mData->mAttachmentType != NetworkAttachmentType_N oNetworkAttachment)920 if (mData->mAttachmentType != NetworkAttachmentType_Null) 921 921 { 922 922 mData.backup(); … … 939 939 * Loads settings from the given adapter node. 940 940 * May be called once right after this object creation. 941 * 941 * 942 942 * @param aAdapterNode <Adapter> node. 943 * 944 * @note Locks this object for writing. 943 * 944 * @note Locks this object for writing. 945 945 */ 946 946 HRESULT NetworkAdapter::loadSettings (const settings::Key &aAdapterNode) … … 964 964 * place when a setting of a newly created object must default to A while 965 965 * the same setting of an object loaded from the old settings file must 966 * default to B. */ 966 * default to B. */ 967 967 968 968 HRESULT rc = S_OK; … … 972 972 973 973 if (strcmp (adapterType, "Am79C970A") == 0) 974 mData->mAdapterType = NetworkAdapterType_ NetworkAdapterAm79C970A;974 mData->mAdapterType = NetworkAdapterType_Am79C970A; 975 975 else if (strcmp (adapterType, "Am79C973") == 0) 976 mData->mAdapterType = NetworkAdapterType_ NetworkAdapterAm79C973;976 mData->mAdapterType = NetworkAdapterType_Am79C973; 977 977 else if (strcmp (adapterType, "82540EM") == 0) 978 mData->mAdapterType = NetworkAdapterType_ NetworkAdapter82540EM;978 mData->mAdapterType = NetworkAdapterType_I82540EM; 979 979 else 980 980 ComAssertMsgFailedRet (("Invalid adapter type '%s'", adapterType), … … 1047 1047 } 1048 1048 1049 /** 1049 /** 1050 1050 * Saves settings to the given adapter node. 1051 * 1051 * 1052 1052 * Note that the given Adapter node is comletely empty on input. 1053 1053 * 1054 1054 * @param aAdapterNode <Adapter> node. 1055 * 1056 * @note Locks this object for reading. 1055 * 1056 * @note Locks this object for reading. 1057 1057 */ 1058 1058 HRESULT NetworkAdapter::saveSettings (settings::Key &aAdapterNode) … … 1081 1081 switch (mData->mAdapterType) 1082 1082 { 1083 case NetworkAdapterType_ NetworkAdapterAm79C970A:1083 case NetworkAdapterType_Am79C970A: 1084 1084 typeStr = "Am79C970A"; 1085 1085 break; 1086 case NetworkAdapterType_ NetworkAdapterAm79C973:1086 case NetworkAdapterType_Am79C973: 1087 1087 typeStr = "Am79C973"; 1088 1088 break; 1089 case NetworkAdapterType_ NetworkAdapter82540EM:1089 case NetworkAdapterType_I82540EM: 1090 1090 typeStr = "82540EM"; 1091 1091 break; … … 1099 1099 switch (mData->mAttachmentType) 1100 1100 { 1101 case NetworkAttachmentType_N oNetworkAttachment:1101 case NetworkAttachmentType_Null: 1102 1102 { 1103 1103 /* do nothing -- empty content */ 1104 1104 break; 1105 1105 } 1106 case NetworkAttachmentType_NAT NetworkAttachment:1106 case NetworkAttachmentType_NAT: 1107 1107 { 1108 1108 Key attachmentNode = aAdapterNode.createKey ("NAT"); 1109 1109 break; 1110 1110 } 1111 case NetworkAttachmentType_HostInterface NetworkAttachment:1111 case NetworkAttachmentType_HostInterface: 1112 1112 { 1113 1113 Key attachmentNode = aAdapterNode.createKey ("HostInterface"); … … 1129 1129 break; 1130 1130 } 1131 case NetworkAttachmentType_Internal NetworkAttachment:1131 case NetworkAttachmentType_Internal: 1132 1132 { 1133 1133 Key attachmentNode = aAdapterNode.createKey ("InternalNetwork"); … … 1234 1234 switch (mData->mAttachmentType) 1235 1235 { 1236 case NetworkAttachmentType_N oNetworkAttachment:1236 case NetworkAttachmentType_Null: 1237 1237 { 1238 1238 /* nothing to do here */ 1239 1239 break; 1240 1240 } 1241 case NetworkAttachmentType_NAT NetworkAttachment:1241 case NetworkAttachmentType_NAT: 1242 1242 { 1243 1243 break; 1244 1244 } 1245 case NetworkAttachmentType_HostInterface NetworkAttachment:1245 case NetworkAttachmentType_HostInterface: 1246 1246 { 1247 1247 /* reset handle and device name */ … … 1255 1255 break; 1256 1256 } 1257 case NetworkAttachmentType_Internal NetworkAttachment:1257 case NetworkAttachmentType_Internal: 1258 1258 { 1259 1259 mData->mInternalNetwork.setNull(); … … 1262 1262 } 1263 1263 1264 mData->mAttachmentType = NetworkAttachmentType_N oNetworkAttachment;1264 mData->mAttachmentType = NetworkAttachmentType_Null; 1265 1265 } 1266 1266 -
trunk/src/VBox/Main/RemoteUSBDeviceImpl.cpp
r5999 r7207 73 73 mPortVersion = mVersion; /** @todo fix this */ 74 74 75 mState = USBDeviceState_ USBDeviceAvailable;75 mState = USBDeviceState_Available; 76 76 77 77 mDirty = false; -
trunk/src/VBox/Main/SerialPortImpl.cpp
r6168 r7207 160 160 //////////////////////////////////////////////////////////////////////////////// 161 161 162 /** 162 /** 163 163 * Loads settings from the given port node. 164 164 * May be called once right after this object creation. 165 * 165 * 166 166 * @param aPortNode <Port> node. 167 * 168 * @note Locks this object for writing. 167 * 168 * @note Locks this object for writing. 169 169 */ 170 170 HRESULT SerialPort::loadSettings (const settings::Key &aPortNode) … … 188 188 * place when a setting of a newly created object must default to A while 189 189 * the same setting of an object loaded from the old settings file must 190 * default to B. */ 190 * default to B. */ 191 191 192 192 /* enabled (required) */ … … 199 199 const char *mode = aPortNode.stringValue ("hostMode"); 200 200 if (strcmp (mode, "HostPipe") == 0) 201 mData->mHostMode = PortMode_HostPipe Port;201 mData->mHostMode = PortMode_HostPipe; 202 202 else if (strcmp (mode, "HostDevice") == 0) 203 mData->mHostMode = PortMode_HostDevice Port;203 mData->mHostMode = PortMode_HostDevice; 204 204 else if (strcmp (mode, "Disconnected") == 0) 205 mData->mHostMode = PortMode_Disconnected Port;205 mData->mHostMode = PortMode_Disconnected; 206 206 else 207 207 ComAssertMsgFailedRet (("Invalid port mode '%s'\n", mode), E_FAIL); … … 225 225 * 226 226 * @param aPortNode <Port> node. 227 * 227 * 228 228 * @note Locks this object for reading. 229 229 */ … … 246 246 switch (mData->mHostMode) 247 247 { 248 case PortMode_Disconnected Port:248 case PortMode_Disconnected: 249 249 mode = "Disconnected"; 250 250 break; 251 case PortMode_HostPipe Port:251 case PortMode_HostPipe: 252 252 mode = "HostPipe"; 253 253 break; 254 case PortMode_HostDevice Port:254 case PortMode_HostDevice: 255 255 mode = "HostDevice"; 256 256 break; … … 261 261 } 262 262 aPortNode.setStringValue ("hostMode", mode); 263 263 264 264 /* Always save non-null mPath and mServer to preserve the user values for 265 265 * later use. Note that 'server' is false by default in XML so we don't … … 273 273 } 274 274 275 /** 275 /** 276 276 * @note Locks this object for writing. 277 277 */ … … 297 297 } 298 298 299 /** 299 /** 300 300 * @note Locks this object for writing, together with the peer object (also 301 301 * for writing) if there is one. … … 325 325 } 326 326 327 /** 327 /** 328 328 * @note Locks this object for writing, together with the peer object 329 329 * represented by @a aThat (locked for reading). … … 426 426 switch (aHostMode) 427 427 { 428 case PortMode_HostPipe Port:428 case PortMode_HostPipe: 429 429 if (mData->mPath.isEmpty()) 430 430 return setError (E_INVALIDARG, … … 433 433 mData->mSlot); 434 434 break; 435 case PortMode_HostDevice Port:435 case PortMode_HostDevice: 436 436 if (mData->mPath.isEmpty()) 437 437 return setError (E_INVALIDARG, … … 440 440 mData->mSlot); 441 441 break; 442 case PortMode_Disconnected Port:442 case PortMode_Disconnected: 443 443 break; 444 444 } … … 601 601 } 602 602 603 /** 603 /** 604 604 * Validates COMSETTER(Path) arguments. 605 605 */ … … 608 608 AssertReturn (isLockedOnCurrentThread(), E_FAIL); 609 609 610 if ((mData->mHostMode == PortMode_HostDevice Port||611 mData->mHostMode == PortMode_HostPipe Port) &&610 if ((mData->mHostMode == PortMode_HostDevice || 611 mData->mHostMode == PortMode_HostPipe) && 612 612 (aPath == NULL || *aPath == '\0')) 613 613 return setError (E_INVALIDARG, -
trunk/src/VBox/Main/SessionImpl.cpp
r5999 r7207 48 48 #define CHECK_OPEN() \ 49 49 do { \ 50 if (mState != SessionState_ SessionOpen) \50 if (mState != SessionState_Open) \ 51 51 return setError (E_UNEXPECTED, \ 52 52 tr ("The session is not open")); \ … … 84 84 LogFlowThisFuncEnter(); 85 85 86 mState = SessionState_ SessionClosed;87 mType = SessionType_ InvalidSessionType;86 mState = SessionState_Closed; 87 mType = SessionType_Null; 88 88 89 89 #if defined(RT_OS_WINDOWS) … … 128 128 AutoLock alock (this); 129 129 130 if (mState != SessionState_ SessionClosed)131 { 132 Assert (mState == SessionState_ SessionOpen ||133 mState == SessionState_S essionSpawning);130 if (mState != SessionState_Closed) 131 { 132 Assert (mState == SessionState_Open || 133 mState == SessionState_Spawning); 134 134 135 135 HRESULT rc = close (aFinalRelease, false /* aFromServer */); … … 265 265 AutoReaderLock alock (this); 266 266 267 AssertReturn (mState == SessionState_ SessionOpen, E_FAIL);268 269 AssertMsgReturn (mType == SessionType_Direct Session&& !!mConsole,267 AssertReturn (mState == SessionState_Open, E_FAIL); 268 269 AssertMsgReturn (mType == SessionType_Direct && !!mConsole, 270 270 ("This is not a direct session!\n"), E_FAIL); 271 271 … … 285 285 AutoLock alock (this); 286 286 287 AssertReturn (mState == SessionState_ SessionClosed, E_FAIL);287 AssertReturn (mState == SessionState_Closed, E_FAIL); 288 288 289 289 if (!aMachine) … … 296 296 */ 297 297 298 AssertReturn (mType == SessionType_ InvalidSessionType, E_FAIL);299 mType = SessionType_Remote Session;300 mState = SessionState_S essionSpawning;298 AssertReturn (mType == SessionType_Null, E_FAIL); 299 mType = SessionType_Remote; 300 mState = SessionState_Spawning; 301 301 302 302 LogFlowThisFuncLeave(); … … 327 327 if (SUCCEEDED (rc)) 328 328 { 329 mType = SessionType_Direct Session;330 mState = SessionState_ SessionOpen;329 mType = SessionType_Direct; 330 mState = SessionState_Open; 331 331 } 332 332 else … … 356 356 AutoLock alock (this); 357 357 358 AssertReturn (mState == SessionState_ SessionClosed ||359 mState == SessionState_S essionSpawning, E_FAIL);358 AssertReturn (mState == SessionState_Closed || 359 mState == SessionState_Spawning, E_FAIL); 360 360 361 361 HRESULT rc = E_FAIL; … … 396 396 * argument is NULL (a special case) 397 397 */ 398 if (mType != SessionType_Remote Session)399 mType = SessionType_Existing Session;398 if (mType != SessionType_Remote) 399 mType = SessionType_Existing; 400 400 else 401 Assert (mState == SessionState_S essionSpawning);402 403 mState = SessionState_ SessionOpen;401 Assert (mState == SessionState_Spawning); 402 403 mState = SessionState_Open; 404 404 } 405 405 else … … 433 433 AutoReaderLock alock (this); 434 434 435 if (mState == SessionState_ SessionClosing)435 if (mState == SessionState_Closing) 436 436 { 437 437 LogFlowThisFunc (("Already being closed.\n")); … … 439 439 } 440 440 441 AssertReturn (mState == SessionState_ SessionOpen &&442 mType == SessionType_Direct Session, E_FAIL);441 AssertReturn (mState == SessionState_Open && 442 mType == SessionType_Direct, E_FAIL); 443 443 444 444 AssertReturn (!mControl.isNull(), E_FAIL); … … 462 462 LogFlowThisFunc (("mState=%d, mType=%d\n", mState, mType)); 463 463 464 if (mState == SessionState_ SessionClosing)464 if (mState == SessionState_Closing) 465 465 { 466 466 LogFlowThisFunc (("Already being closed.\n")); … … 468 468 } 469 469 470 AssertReturn (mState == SessionState_ SessionOpen, E_FAIL);470 AssertReturn (mState == SessionState_Open, E_FAIL); 471 471 472 472 /* close ourselves */ … … 501 501 502 502 AutoReaderLock alock (this); 503 AssertReturn (mState == SessionState_ SessionOpen &&504 mType == SessionType_Direct Session, E_FAIL);503 AssertReturn (mState == SessionState_Open && 504 mType == SessionType_Direct, E_FAIL); 505 505 506 506 return mConsole->onDVDDriveChange(); … … 515 515 516 516 AutoReaderLock alock (this); 517 AssertReturn (mState == SessionState_ SessionOpen &&518 mType == SessionType_Direct Session, E_FAIL);517 AssertReturn (mState == SessionState_Open && 518 mType == SessionType_Direct, E_FAIL); 519 519 520 520 return mConsole->onFloppyDriveChange(); … … 529 529 530 530 AutoReaderLock alock (this); 531 AssertReturn (mState == SessionState_ SessionOpen &&532 mType == SessionType_Direct Session, E_FAIL);531 AssertReturn (mState == SessionState_Open && 532 mType == SessionType_Direct, E_FAIL); 533 533 534 534 return mConsole->onNetworkAdapterChange(networkAdapter); … … 543 543 544 544 AutoReaderLock alock (this); 545 AssertReturn (mState == SessionState_ SessionOpen &&546 mType == SessionType_Direct Session, E_FAIL);545 AssertReturn (mState == SessionState_Open && 546 mType == SessionType_Direct, E_FAIL); 547 547 548 548 return mConsole->onSerialPortChange(serialPort); … … 557 557 558 558 AutoReaderLock alock (this); 559 AssertReturn (mState == SessionState_ SessionOpen &&560 mType == SessionType_Direct Session, E_FAIL);559 AssertReturn (mState == SessionState_Open && 560 mType == SessionType_Direct, E_FAIL); 561 561 562 562 return mConsole->onParallelPortChange(parallelPort); … … 571 571 572 572 AutoReaderLock alock (this); 573 AssertReturn (mState == SessionState_ SessionOpen &&574 mType == SessionType_Direct Session, E_FAIL);573 AssertReturn (mState == SessionState_Open && 574 mType == SessionType_Direct, E_FAIL); 575 575 576 576 return mConsole->onVRDPServerChange(); … … 585 585 586 586 AutoReaderLock alock (this); 587 AssertReturn (mState == SessionState_ SessionOpen &&588 mType == SessionType_Direct Session, E_FAIL);587 AssertReturn (mState == SessionState_Open && 588 mType == SessionType_Direct, E_FAIL); 589 589 590 590 return mConsole->onUSBControllerChange(); … … 599 599 600 600 AutoReaderLock alock (this); 601 AssertReturn (mState == SessionState_ SessionOpen &&602 mType == SessionType_Direct Session, E_FAIL);601 AssertReturn (mState == SessionState_Open && 602 mType == SessionType_Direct, E_FAIL); 603 603 604 604 return mConsole->onSharedFolderChange (aGlobal); … … 615 615 616 616 AutoReaderLock alock (this); 617 AssertReturn (mState == SessionState_ SessionOpen &&618 mType == SessionType_Direct Session, E_FAIL);617 AssertReturn (mState == SessionState_Open && 618 mType == SessionType_Direct, E_FAIL); 619 619 620 620 return mConsole->onUSBDeviceAttach (aDevice, aError, aMaskedIfs); … … 630 630 631 631 AutoReaderLock alock (this); 632 AssertReturn (mState == SessionState_ SessionOpen &&633 mType == SessionType_Direct Session, E_FAIL);632 AssertReturn (mState == SessionState_Open && 633 mType == SessionType_Direct, E_FAIL); 634 634 635 635 return mConsole->onUSBDeviceDetach (aId, aError); … … 642 642 643 643 AutoReaderLock alock (this); 644 AssertReturn (mState == SessionState_ SessionOpen &&645 mType == SessionType_Direct Session, E_FAIL);644 AssertReturn (mState == SessionState_Open && 645 mType == SessionType_Direct, E_FAIL); 646 646 647 647 return mConsole->onShowWindow (aCheck, aCanShow, aWinId); … … 673 673 LogFlowThisFunc (("mState=%d, mType=%d\n", mState, mType)); 674 674 675 if (mState != SessionState_ SessionOpen)676 { 677 Assert (mState == SessionState_S essionSpawning);675 if (mState != SessionState_Open) 676 { 677 Assert (mState == SessionState_Spawning); 678 678 679 679 /* The session object is going to be uninitialized by the client before … … 685 685 AssertFailed(); 686 686 687 mState = SessionState_ SessionClosed;688 mType = SessionType_ InvalidSessionType;687 mState = SessionState_Closed; 688 mType = SessionType_Null; 689 689 #if defined(RT_OS_WINDOWS) 690 690 Assert (!mIPCSem && !mIPCThreadSem); … … 702 702 703 703 /* go to the closing state */ 704 mState = SessionState_ SessionClosing;705 706 if (mType == SessionType_Direct Session)704 mState = SessionState_Closing; 705 706 if (mType == SessionType_Direct) 707 707 { 708 708 mConsole->uninit(); … … 734 734 * direct session has initiated a closure just a bit before us) so 735 735 * we need to release the lock to avoid deadlocks. The state is already 736 * SessionState_ SessionClosing here, so it's safe.736 * SessionState_Closing here, so it's safe. 737 737 */ 738 738 alock.leave(); … … 748 748 * been closed, we're just too late with our notification and nothing more 749 749 */ 750 if (mType != SessionType_Direct Session&& rc == E_UNEXPECTED)750 if (mType != SessionType_Direct && rc == E_UNEXPECTED) 751 751 rc = S_OK; 752 752 … … 756 756 mControl.setNull(); 757 757 758 if (mType == SessionType_Direct Session)758 if (mType == SessionType_Direct) 759 759 { 760 760 releaseIPCSemaphore(); … … 772 772 } 773 773 774 mState = SessionState_ SessionClosed;775 mType = SessionType_ InvalidSessionType;774 mState = SessionState_Closed; 775 mType = SessionType_Null; 776 776 777 777 /* release the VirtualBox instance as the very last step */ -
trunk/src/VBox/Main/USBDeviceFilterImpl.cpp
r5999 r7207 1301 1301 mData->mActive = FALSE; 1302 1302 #ifndef VBOX_WITH_USBFILTER 1303 mData->mAction = USBDeviceFilterAction_ USBDeviceFilterIgnore;1303 mData->mAction = USBDeviceFilterAction_Ignore; 1304 1304 #endif /* !VBOX_WITH_USBFILTER */ 1305 1305 … … 1864 1864 switch (USBFilterGetFilterType (&mData->mUSBFilter)) 1865 1865 { 1866 case USBFILTERTYPE_IGNORE: *aAction = USBDeviceFilterAction_ USBDeviceFilterIgnore; break;1867 case USBFILTERTYPE_CAPTURE: *aAction = USBDeviceFilterAction_ USBDeviceFilterHold; break;1868 default: *aAction = USBDeviceFilterAction_ InvalidUSBDeviceFilterAction; break;1866 case USBFILTERTYPE_IGNORE: *aAction = USBDeviceFilterAction_Ignore; break; 1867 case USBFILTERTYPE_CAPTURE: *aAction = USBDeviceFilterAction_Hold; break; 1868 default: *aAction = USBDeviceFilterAction_Null; break; 1869 1869 } 1870 1870 #endif /* VBOX_WITH_USBFILTER */ … … 1895 1895 switch (aAction) 1896 1896 { 1897 case USBDeviceFilterAction_ USBDeviceFilterIgnore: filterType = USBFILTERTYPE_IGNORE; break;1898 case USBDeviceFilterAction_ USBDeviceFilterHold: filterType = USBFILTERTYPE_CAPTURE; break;1899 case USBDeviceFilterAction_ InvalidUSBDeviceFilterAction:1897 case USBDeviceFilterAction_Ignore: filterType = USBFILTERTYPE_IGNORE; break; 1898 case USBDeviceFilterAction_Hold: filterType = USBFILTERTYPE_CAPTURE; break; 1899 case USBDeviceFilterAction_Null: 1900 1900 return setError (E_INVALIDARG, 1901 1901 tr ("Action value InvalidUSBDeviceFilterAction is not permitted")); -
trunk/src/VBox/Main/USBProxyService.cpp
r5999 r7207 511 511 * quite logical because the proxy doesn't know anything about guest VMs. We use HELD_BY_PROXY 512 512 * instead -- it is sufficient and is what Main expects. */ 513 case USBDeviceState_ USBDeviceCaptured: aUSBDevice->enmState = USBDEVICESTATE_HELD_BY_PROXY; break;514 case USBDeviceState_ USBDeviceHeld: aUSBDevice->enmState = USBDEVICESTATE_HELD_BY_PROXY; break;515 case USBDeviceState_ USBDeviceAvailable: aUSBDevice->enmState = USBDEVICESTATE_UNUSED; break;516 case USBDeviceState_U SBDeviceUnavailable: aUSBDevice->enmState = USBDEVICESTATE_USED_BY_HOST; break;517 case USBDeviceState_ USBDeviceBusy: aUSBDevice->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; break;513 case USBDeviceState_Captured: aUSBDevice->enmState = USBDEVICESTATE_HELD_BY_PROXY; break; 514 case USBDeviceState_Held: aUSBDevice->enmState = USBDEVICESTATE_HELD_BY_PROXY; break; 515 case USBDeviceState_Available: aUSBDevice->enmState = USBDEVICESTATE_UNUSED; break; 516 case USBDeviceState_Unavailable: aUSBDevice->enmState = USBDEVICESTATE_USED_BY_HOST; break; 517 case USBDeviceState_Busy: aUSBDevice->enmState = USBDEVICESTATE_USED_BY_HOST_CAPTURABLE; break; 518 518 default: 519 519 AssertMsgFailed(("%d\n", aDevice->pendingState())); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r6935 r7207 1347 1347 if (!aMachineIDs) 1348 1348 return E_POINTER; 1349 if (aUsage == ResourceUsage_ InvalidUsage)1349 if (aUsage == ResourceUsage_Null) 1350 1350 return E_INVALIDARG; 1351 1351 … … 1386 1386 CheckComRCReturnRC (rc); 1387 1387 1388 if (!getDVDImageUsage (aId, ResourceUsage_All Usage))1388 if (!getDVDImageUsage (aId, ResourceUsage_All)) 1389 1389 { 1390 1390 /* remove from the collection */ … … 1516 1516 if (!aMachineIDs) 1517 1517 return E_POINTER; 1518 if (aUsage == ResourceUsage_ InvalidUsage)1518 if (aUsage == ResourceUsage_Null) 1519 1519 return E_INVALIDARG; 1520 1520 … … 1555 1555 CheckComRCReturnRC (rc); 1556 1556 1557 if (!getFloppyImageUsage (aId, ResourceUsage_All Usage))1557 if (!getFloppyImageUsage (aId, ResourceUsage_All)) 1558 1558 { 1559 1559 /* remove from the collection */ … … 1918 1918 CheckComRCReturnRC (rc); 1919 1919 1920 if (state != SessionState_ SessionClosed)1920 if (state != SessionState_Closed) 1921 1921 return setError (E_INVALIDARG, 1922 1922 tr ("The given session is already open or being opened")); … … 1938 1938 1939 1939 /* fire an event */ 1940 onSessionStateChange (aMachineId, SessionState_ SessionOpen);1940 onSessionStateChange (aMachineId, SessionState_Open); 1941 1941 } 1942 1942 … … 1972 1972 CheckComRCReturnRC (rc); 1973 1973 1974 if (state != SessionState_ SessionClosed)1974 if (state != SessionState_Closed) 1975 1975 return setError (E_INVALIDARG, 1976 1976 tr ("The given session is already open or being opened")); … … 1995 1995 1996 1996 /* fire an event */ 1997 onSessionStateChange (aMachineId, SessionState_S essionSpawning);1997 onSessionStateChange (aMachineId, SessionState_Spawning); 1998 1998 } 1999 1999 … … 2024 2024 CheckComRCReturnRC (rc); 2025 2025 2026 if (state != SessionState_ SessionClosed)2026 if (state != SessionState_Closed) 2027 2027 return setError (E_INVALIDARG, 2028 2028 tr ("The given session is already open or being opened")); -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r6965 r7207 98 98 99 99 <enum 100 name="TriStateBool"101 102 100 name="TSBool" 101 uuid="523ff64d-842a-4b1a-80e7-c311b028cb3a" 102 > 103 103 <desc> 104 This represents a boolean variable having a third state, default.104 Boolean variable having a third state, default. 105 105 </desc> 106 106 107 <const name=" TSFalse" value="0"/>108 <const name="T STrue" value="1"/>109 <const name=" TSDefault" value="2"/>107 <const name="False" value="0"/> 108 <const name="True" value="1"/> 109 <const name="Default" value="2"/> 110 110 </enum> 111 111 112 112 <enum 113 114 115 113 name="MachineState" 114 uuid="73bf04d0-7c4f-4684-9abf-d65a9ad74343" 115 > 116 116 <desc> 117 117 Virtual machine execution state. This enumeration represents possible … … 119 119 </desc> 120 120 121 <const name="InvalidMachineState" value="0"> 122 <desc> 123 Invalid machine state. This state is never used by the virtual machine 124 and may be used as a <tt>null</tt> value for state 125 variables. 126 </desc> 121 <const name="Null" value="0"> 122 <desc><tt>null</tt> value. Never used by the API.</desc> 127 123 </const> 128 124 <const name="PoweredOff" value="1"> … … 228 224 229 225 <enum 230 231 232 226 name="SessionState" 227 uuid="CF2700C0-EA4B-47ae-9725-7810114B94D8" 228 > 233 229 <desc> 234 230 Session state. This enumeration represents possible values of … … 238 234 </desc> 239 235 240 <const name="InvalidSessionState" value="0"/> 241 <const name="SessionClosed" value="1"> 236 <const name="Null" value="0"> 237 <desc><tt>null</tt> value. Never used by the API.</desc> 238 </const> 239 <const name="Closed" value="1"> 242 240 <desc> 243 241 The machine has no open sessions (<link to="IMachine::sessionState"/>); … … 245 243 </desc> 246 244 </const> 247 <const name=" SessionOpen"value="2">245 <const name="Open" value="2"> 248 246 <desc> 249 247 The machine has an open direct session (<link to="IMachine::sessionState"/>); … … 251 249 </desc> 252 250 </const> 253 <const name="S essionSpawning"value="3">251 <const name="Spawning" value="3"> 254 252 <desc> 255 253 A new (direct) session is being opened for the machine … … 261 259 </desc> 262 260 </const> 263 <const name=" SessionClosing"value="4">261 <const name="Closing" value="4"> 264 262 <desc> 265 263 The direct session is being closed (<link to="IMachine::sessionState"/>); … … 270 268 271 269 <enum 272 273 274 270 name="SessionType" 271 uuid="A13C02CB-0C2C-421E-8317-AC0E8AAA153A" 272 > 275 273 <desc> 276 274 Session type. This enumeration represents possible values of the … … 278 276 </desc> 279 277 280 <const name="InvalidSessionType" value="0"/> 281 <const name="DirectSession" value="1"> 278 <const name="Null" value="0"> 279 <desc><tt>null</tt> value. Never used by the API.</desc> 280 </const> 281 <const name="Direct" value="1"> 282 282 <desc> 283 283 Direct session … … 285 285 </desc> 286 286 </const> 287 <const name="Remote Session"value="2">287 <const name="Remote" value="2"> 288 288 <desc> 289 289 Remote session … … 291 291 </desc> 292 292 </const> 293 <const name="Existing Session"value="3">293 <const name="Existing" value="3"> 294 294 <desc> 295 295 Existing session … … 300 300 301 301 <enum 302 303 304 302 name="DeviceType" 303 uuid="6d9420f7-0b56-4636-99f9-7346f1b01e57" 304 > 305 305 <desc> 306 306 Device type. 307 307 </desc> 308 <const name="NoDevice" value="0"> 309 <desc> 310 No Device. This value is not used by 311 <link to="IConsole::getDeviceActivity"/> 308 <const name="Null" value="0"> 309 <desc> 310 <tt>null</tt> value which may also mean "no device". 311 <note> 312 This value is not allowed for 313 <link to="IConsole::getDeviceActivity"/> 314 </note> 312 315 </desc> 313 316 </const> 314 <const name="Floppy Device"value="1">317 <const name="Floppy" value="1"> 315 318 <desc>Floppy device.</desc> 316 319 </const> 317 <const name="DVD Device"value="2">320 <const name="DVD" value="2"> 318 321 <desc>CD/DVD-ROM device.</desc> 319 322 </const> 320 <const name="HardDisk Device"value="3">323 <const name="HardDisk" value="3"> 321 324 <desc>Hard disk device.</desc> 322 325 </const> 323 <const name="Network Device"value="4">326 <const name="Network" value="4"> 324 327 <desc>Network device.</desc> 325 328 </const> 326 <const name="USB Device"value="5">329 <const name="USB" value="5"> 327 330 <desc>USB device.</desc> 328 331 </const> 329 <const name="SharedFolder Device"value="6">332 <const name="SharedFolder" value="6"> 330 333 <desc>Shared folder device.</desc> 331 334 </const> … … 333 336 334 337 <enum 335 name="DeviceActivity" 336 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707" 337 > 338 <const name="InvalidActivity" value="0"/> 339 <const name="DeviceIdle" value="1"/> 340 <const name="DeviceReading" value="2"/> 341 <const name="DeviceWriting" value="3"/> 338 name="DeviceActivity" 339 uuid="6FC8AEAA-130A-4eb5-8954-3F921422D707" 340 > 341 <desc> 342 Device activity for <link to="IConsole::getDeviceActivity"/>. 343 </desc> 344 345 <const name="Null" value="0"/> 346 <const name="Idle" value="1"/> 347 <const name="Reading" value="2"/> 348 <const name="Writing" value="3"/> 342 349 </enum> 343 350 344 351 <enum 345 346 347 352 name="ResourceUsage" 353 uuid="FC56E4B6-B195-48e2-A5E1-A667B0D9F809" 354 > 348 355 <desc> 349 356 Usage type constants for … … 351 358 <link to="IVirtualBox::getFloppyImageUsage"/>. 352 359 </desc> 353 <const name="InvalidUsage" value="0"/> 354 <const name="PermanentUsage" value="1"> 360 361 <const name="Null" value="0"> 362 <desc><tt>null</tt> value. Never used by the API.</desc> 363 </const> 364 <const name="Permanent" value="1"> 355 365 <desc> 356 366 Scopes the VMs that use the resource permanently … … 359 369 </desc> 360 370 </const> 361 <const name="Temporary Usage"value="2">371 <const name="Temporary" value="2"> 362 372 <desc> 363 373 Scopes the VMs that are temporarily using the resource … … 367 377 </desc> 368 378 </const> 369 <const name="All Usage"value="3">370 <desc> 371 Combines Permanent Usage and TemporaryUsage.379 <const name="All" value="3"> 380 <desc> 381 Combines Permanent and Temporary. 372 382 </desc> 373 383 </const> … … 375 385 376 386 <enum 377 name="DiskControllerType" 378 uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48" 379 > 380 <const name="InvalidController" value="0"/> 381 <const name="IDE0Controller" value="1"/> 382 <const name="IDE1Controller" value="2"/> 387 name="DiskControllerType" 388 uuid="1115b810-2ee7-4ebd-8b39-92e98c9a2b48" 389 > 390 <desc> 391 Disk controller type for hard disk attachments. 392 </desc> 393 394 <const name="Null" value="0"> 395 <desc><tt>null</tt> value. Never used by the API.</desc> 396 </const> 397 <const name="IDE0" value="1"/> 398 <const name="IDE1" value="2"/> 383 399 </enum> 384 400 385 401 <enum 386 name="ClipboardMode" 387 uuid="33364716-4008-4701-8f14-be0fa3d62950" 388 > 389 <const name="ClipDisabled" value="0"/> 390 <const name="ClipHostToGuest" value="1"/> 391 <const name="ClipGuestToHost" value="2"/> 392 <const name="ClipBidirectional" value="3"/> 402 name="ClipboardMode" 403 uuid="33364716-4008-4701-8f14-be0fa3d62950" 404 > 405 <desc> 406 Host-Guest clipboard interchange mode. 407 </desc> 408 409 <const name="Disabled" value="0"/> 410 <const name="HostToGuest" value="1"/> 411 <const name="GuestToHost" value="2"/> 412 <const name="Bidirectional" value="3"/> 393 413 </enum> 394 414 395 415 <enum 396 397 398 416 name="Scope" 417 uuid="7c91096e-499e-4eca-9f9b-9001438d7855" 418 > 399 419 <desc> 400 420 Scope of the operation. … … 403 423 argument scope. 404 424 </desc> 405 <const name="GlobalScope" value="0"/> 406 <const name="MachineScope" value="1"/> 407 <const name="SessionScope" value="2"/> 425 426 <const name="Global" value="0"/> 427 <const name="Machine" value="1"/> 428 <const name="Session" value="2"/> 408 429 </enum> 409 430 410 431 <enum 411 name="GuestStatisticType" 412 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55" 413 > 432 name="GuestStatisticType" 433 uuid="aa7c1d71-aafe-47a8-9608-27d2d337cf55" 434 > 435 <desc> 436 Statistics type for <link to="IGuest::getStatistic"/>. 437 </desc> 438 414 439 <const name="CPULoad_Idle" value="0"> 415 440 <desc> … … 498 523 </const> 499 524 <const name="MaxVal" value="17"/> 525 </enum> 526 527 <enum 528 name="BIOSBootMenuMode" 529 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5" 530 > 531 <desc> 532 BIOS boot menu mode. 533 </desc> 534 535 <const name="Disabled" value="0"/> 536 <const name="MenuOnly" value="1"/> 537 <const name="MessageAndMenu" value="2"/> 538 </enum> 539 540 <enum 541 name="IDEControllerType" 542 uuid="445330e3-202a-4dab-854f-ce22e6cb9715" 543 > 544 <desc> 545 IDE controller type. 546 </desc> 547 548 <const name="Null" value="0"> 549 <desc><tt>null</tt> value. Never used by the API.</desc> 550 </const> 551 <const name="PIIX3" value="1"/> 552 <const name="PIIX4" value="2"/> 553 </enum> 554 555 <enum 556 name="DriveState" 557 uuid="cb7233b7-c519-42a5-8310-1830953cacbc" 558 > 559 <const name="Null" value="0"> 560 <desc><tt>null</tt> value. Never used by the API.</desc> 561 </const> 562 <const name="NotMounted" value="1"/> 563 <const name="ImageMounted" value="2"/> 564 <const name="HostDriveCaptured" value="3"/> 500 565 </enum> 501 566 … … 699 764 values are: 700 765 701 - <link to=" HardDiskDevice"/>: the media is a hard disk766 - <link to="DeviceType::HardDisk"/>: the media is a hard disk 702 767 that, if registered, can be obtained using the 703 768 <link to="IVirtualBox::getHardDisk"/> call. 704 - <link to="D VDDevice"/>: the media is a CD/DVD image769 - <link to="DeviceType::DVD"/>: the media is a CD/DVD image 705 770 that, if registered, can be obtained using the 706 771 <link to="IVirtualBox::getDVDImage"/> call. 707 - <link to=" FloppyDevice"/>: the media is a Floppy image772 - <link to="DeviceType::Floppy"/>: the media is a Floppy image 708 773 that, if registered, can be obtained using the 709 774 <link to="IVirtualBox::getFloppyImage"/> call. … … 811 876 812 877 <interface 813 814 815 816 878 name="IVirtualBox" extends="$dispatched" 879 uuid="64f652cb-7fdf-482d-ae19-4dbb289a5ca0" 880 wsmap="managed" 881 > 817 882 <desc> 818 883 The IVirtualBox interface represents the main interface exposed by the … … 820 885 821 886 An instance of IVirtualBox is required for the product to do anything 822 useful. Even though the interface does not expose this, internally, IVirtualBox 823 is implemented as a singleton and actually lives in the process of the 824 VirtualBox server (VBoxSVC.exe). This makes sure that IVirtualBox can 825 track the state of all virtual machines on a particular host, regardless 826 of which frontend started them. 827 828 To enumerate all the virtual machines on the host, use the <link to="IVirtualBox::machines" /> 829 attribute.</desc> 887 useful. Even though the interface does not expose this, internally, 888 IVirtualBox is implemented as a singleton and actually lives in the 889 process of the VirtualBox server (VBoxSVC.exe). This makes sure that 890 IVirtualBox can track the state of all virtual machines on a particular 891 host, regardless of which frontend started them. 892 893 To enumerate all the virtual machines on the host, use the 894 <link to="IVirtualBox::machines"/> attribute. 895 </desc> 830 896 831 897 <attribute name="version" type="wstring" readonly="yes"> … … 1428 1494 by spaces. A null string means that the image is not used. 1429 1495 <note> 1430 When the usage type is <link to="ResourceUsage::AllUsage"/> 1431 and the image is used by the VM both permanently 1432 and temporarily, the VM's UUID will be present only 1433 once in the list. 1496 When the usage type is <link to="ResourceUsage::All"/> and the image 1497 is used by the VM both permanently and temporarily, the VM's UUID 1498 will be present only once in the list. 1434 1499 </note> 1435 1500 </desc> … … 1543 1608 by spaces. A null string means that the image is not used. 1544 1609 <note> 1545 When the usage type is <link to="ResourceUsage::AllUsage"/> 1546 and the image is used by the VM both permanently 1547 and temporarily, the VM's UUID will be present only 1548 once in the list. 1610 When the usage type is <link to="ResourceUsage::All"/> and the image 1611 is used by the VM both permanently and temporarily, the VM's UUID 1612 will be present only once in the list. 1549 1613 </note> 1550 1614 </desc> … … 2178 2242 2179 2243 </interface> 2180 2181 <enum2182 name="BIOSBootMenuMode"2183 uuid="ae4fb9f7-29d2-45b4-b2c7-d579603135d5"2184 >2185 <desc>2186 This represents the BIOS boot menu state.2187 </desc>2188 2189 <const name="Disabled" value="0"/>2190 <const name="MenuOnly" value="1"/>2191 <const name="MessageAndMenu" value="2"/>2192 </enum>2193 2194 <enum2195 name="IDEControllerType"2196 uuid="445330e3-202a-4dab-854f-ce22e6cb9715"2197 >2198 <const name="InvalidIDEControllerType" value="0"/>2199 <const name="IDEControllerPIIX3" value="1"/>2200 <const name="IDEControllerPIIX4" value="2"/>2201 </enum>2202 2244 2203 2245 <interface … … 2484 2526 </attribute> 2485 2527 2486 <attribute name="HWVirtExEnabled" type="T riStateBool">2528 <attribute name="HWVirtExEnabled" type="TSBool"> 2487 2529 <desc> 2488 2530 This setting determines whether VirtualBox will try to make use of … … 2730 2772 2731 2773 To indicate that no device is associated with the given position, 2732 <link to="DeviceType::N oDevice"/> should be used.2774 <link to="DeviceType::Null"/> should be used. 2733 2775 2734 2776 @todo setHardDiskBootOrder(), setNetworkBootOrder() … … 2759 2801 2760 2802 If here are no devices at the given position, then 2761 <link to="DeviceType::N oDevice"/> is returned.2803 <link to="DeviceType::Null"/> is returned. 2762 2804 2763 2805 @todo getHardDiskBootOrder(), getNetworkBootOrder() … … 3362 3404 The @a scope argument defines one of three scopes: 3363 3405 <link to="IVirtualBox::sharedFolders">global shared folders</link> 3364 (<link to="Scope::Global Scope">GlobalScope</link>),3406 (<link to="Scope::Global">Global</link>), 3365 3407 <link to="IMachine::sharedFolders">permanent shared folders</link> of 3366 the machine (<link to="Scope::MachineScope">MachineScope</link>) 3367 or <link to="IConsole::sharedFolders">transient shared folders</link> 3368 of the machine 3369 (<link to="Scope::SessionScope">SessionScope</link>). Interested 3370 callees should use query the corresponding collections to find out 3371 what has changed. 3408 the machine (<link to="Scope::Machine">Machine</link>) or <link 3409 to="IConsole::sharedFolders">transient shared folders</link> of the 3410 machine (<link to="Scope::Session">Session</link>). Interested callees 3411 should use query the corresponding collections to find out what has 3412 changed. 3372 3413 </desc> 3373 3414 <param name="scope" type="Scope" dir="in"> … … 3887 3928 3888 3929 The device needs to be in one of the following states: 3889 <link to="USBDeviceState:: USBDeviceBusy">USBDeviceBusy</link>,3890 <link to="USBDeviceState:: USBDeviceAvailable">USBDeviceAvailable</link> or3891 <link to="USBDeviceState:: USBDeviceHeld">USBDeviceHeld</link>,3930 <link to="USBDeviceState::Busy">Busy</link>, 3931 <link to="USBDeviceState::Available">Available</link> or 3932 <link to="USBDeviceState::Held">Held</link>, 3892 3933 otherwise an error is immediately returned. 3893 3934 3894 3935 When the device state is 3895 <link to="USBDeviceState::USBDeviceBusy">USBDeviceBusy</link>, 3896 an error may also be returned if the host computer 3897 refuses to release it for some reason. 3936 <link to="USBDeviceState::Busy">Busy</link>, an error may also 3937 be returned if the host computer refuses to release it for some reason. 3898 3938 3899 3939 <see>IUSBController::deviceFilters, USBDeviceState</see> … … 4017 4057 4018 4058 You cannot discard the snapshot if it 4019 stores <link to="HardDiskType::NormalHardDisk">normal</link> 4020 (non-differencing) hard disks that have differencing hard disks based 4021 on them. Snapshots of such kind can be discarded only when every 4022 normal hard disk has either no children at all or exactly one 4023 child. In the former case, the normal hard disk simply becomes unused 4024 (i.e. not attached to any VM). In the latter case, it receives all the 4025 changes strored in the child hard disk, and then it replaces the child 4026 hard disk in the configuration of the corresponding snapshot or 4027 machine. 4059 stores <link to="HardDiskType::Normal">normal</link> (non-differencing) 4060 hard disks that have differencing hard disks based on them. Snapshots of 4061 such kind can be discarded only when every normal hard disk has either 4062 no children at all or exactly one child. In the former case, the normal 4063 hard disk simply becomes unused (i.e. not attached to any VM). In the 4064 latter case, it receives all the changes strored in the child hard disk, 4065 and then it replaces the child hard disk in the configuration of the 4066 corresponding snapshot or machine. 4028 4067 4029 4068 Also, you cannot discard the snapshot if it stores hard disks … … 5331 5370 5332 5371 <enum 5333 5334 5335 5372 name="HardDiskStorageType" 5373 uuid="48138584-ad99-479d-a36f-eb82a7663685" 5374 > 5336 5375 <desc> 5337 5376 Virtual hard disk storage type. 5338 5377 <see>IHardDisk</see> 5339 5378 </desc> 5340 <const name="VirtualDiskImage" value="0"> 5379 5380 <const name="VirtualDiskImage" value="0"> 5341 5381 <desc> 5342 5382 Virtual Disk Image, VDI (a regular file in the file … … 5344 5384 </desc> 5345 5385 </const> 5346 <const name="ISCSIHardDisk" value="1">5386 <const name="ISCSIHardDisk" value="1"> 5347 5387 <desc> 5348 5388 iSCSI Remote Disk (a disk accessed via the Internet … … 5351 5391 </desc> 5352 5392 </const> 5353 <const name="VMDKImage" value="2">5393 <const name="VMDKImage" value="2"> 5354 5394 <desc> 5355 5395 VMware Virtual Machine Disk image (a regular file in the file … … 5357 5397 </desc> 5358 5398 </const> 5359 <const name="CustomHardDisk" value="3">5399 <const name="CustomHardDisk" value="3"> 5360 5400 <desc> 5361 5401 Disk formats supported through plugins (see … … 5363 5403 </desc> 5364 5404 </const> 5365 <const name="VHDImage" value="4">5405 <const name="VHDImage" value="4"> 5366 5406 <desc> 5367 5407 Virtual PC Virtual Machine Disk image (a regular file in the file … … 5372 5412 5373 5413 <enum 5374 5375 5376 5414 name="HardDiskType" 5415 uuid="a348fafd-a64e-4643-ba65-eb3896bd7e0a" 5416 > 5377 5417 <desc> 5378 5418 Virtual hard disk type. 5379 5419 <see>IHardDisk</see> 5380 5420 </desc> 5381 <const name="NormalHardDisk" value="0"> 5421 5422 <const name="Normal" value="0"> 5382 5423 <desc> 5383 5424 Normal hard disk (attached directly or indirectly, preserved … … 5385 5426 </desc> 5386 5427 </const> 5387 <const name="Immutable HardDisk"value="1">5428 <const name="Immutable" value="1"> 5388 5429 <desc> 5389 5430 Immutable hard disk (attached indirectly, changes are wiped out … … 5391 5432 </desc> 5392 5433 </const> 5393 <const name="Writethrough HardDisk"value="2">5434 <const name="Writethrough" value="2"> 5394 5435 <desc> 5395 5436 Write through hard disk (attached directly, ignored when … … 5793 5834 5794 5835 Type (behavior) of this hard disk. For a newly created or opened hard 5795 disk, this value is <link to="HardDiskType::Normal HardDisk"/>.5836 disk, this value is <link to="HardDiskType::Normal"/>. 5796 5837 5797 5838 <note> … … 6185 6226 <note> 6186 6227 In the current imlementation, the type of all iSCSI hard disks 6187 is <link to="HardDiskType::Writethrough HardDisk">Writethrough</link>6228 is <link to="HardDiskType::Writethrough">Writethrough</link> 6188 6229 and cannot be changed. 6189 6230 </note> … … 6291 6332 <note> 6292 6333 In the current imlementation, the type of all VMDK hard disks 6293 is <link to="HardDiskType::Writethrough HardDisk">Writethrough</link>6294 and cannotbe changed.6334 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot 6335 be changed. 6295 6336 </note> 6296 6337 … … 6616 6657 <note> 6617 6658 In the current imlementation, the type of all VHD hard disks 6618 is <link to="HardDiskType::Writethrough HardDisk">Writethrough</link>6619 and cannotbe changed.6659 is <link to="HardDiskType::Writethrough">Writethrough</link> and cannot 6660 be changed. 6620 6661 </note> 6621 6662 … … 6840 6881 ///////////////////////////////////////////////////////////////////////// 6841 6882 --> 6842 6843 <enum6844 name="DriveState"6845 uuid="cb7233b7-c519-42a5-8310-1830953cacbc"6846 >6847 <const name="InvalidDriveState" value="0"/>6848 <const name="NotMounted" value="1"/>6849 <const name="ImageMounted" value="2"/>6850 <const name="HostDriveCaptured" value="3"/>6851 </enum>6852 6883 6853 6884 <interface … … 7093 7124 7094 7125 <enum 7095 name="MouseButtonState" 7096 uuid="03131722-2EC5-4173-9794-0DACA46673EF" 7097 > 7126 name="MouseButtonState" 7127 uuid="03131722-2EC5-4173-9794-0DACA46673EF" 7128 > 7129 <desc> 7130 Mouse button state. 7131 </desc> 7132 7098 7133 <const name="LeftButton" value="0x01"/> 7099 7134 <const name="RightButton" value="0x02"/> … … 7227 7262 7228 7263 <enum 7229 name="FramebufferAccelerationOperation" 7230 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8" 7231 > 7264 name="FramebufferAccelerationOperation" 7265 uuid="f0e5ebbe-dc8e-4e2d-916e-53baa3844df8" 7266 > 7267 <desc> 7268 Framebuffer acceleration operation. 7269 </desc> 7270 7232 7271 <const name="SolidFillAcceleration" value="1"/> 7233 7272 <const name="ScreenCopyAcceleration" value="2"/> … … 7235 7274 7236 7275 <enum 7237 7238 7239 7276 name="FramebufferPixelFormat" 7277 uuid="6b27d1fc-4f2c-4e9c-a166-01d06540305d" 7278 > 7240 7279 <desc> 7241 7280 Format of the video memory buffer. Constants represented by this enum can … … 7246 7285 See also www.fourcc.org for more informantion about FOURCC pixel formats. 7247 7286 </desc> 7248 <const name="PixelFormatOpaque" value="0xFFFFFFFF"> 7287 7288 <const name="Opaque" value="0xFFFFFFFF"> 7249 7289 <desc> 7250 7290 Unknown buffer format. The user may not assume any particular … … 7299 7339 <note> 7300 7340 This attribute must never return <link 7301 to="PixelFormat:: PixelFormatOpaque"/> -- the format of the buffer7341 to="PixelFormat::Opaque"/> -- the format of the buffer 7302 7342 <link to="#address"/> points to must be always known. 7303 7343 </note> … … 7399 7439 The @a pixelFormat parameter defines whether the direct mode is 7400 7440 available or not. If @a pixelFormat is <link 7401 to="PixelFormat:: PixelFormatOpaque"/> then direct access to the guest7441 to="PixelFormat::Opaque"/> then direct access to the guest 7402 7442 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a 7403 7443 bytesPerLine parameters must be ignored and the implementation must use … … 7440 7480 value must always correlate with <link to="#pixelFormat"/>. Note that 7441 7481 the <link to="#pixelFormat"/> attribute must never return <link 7442 to="PixelFormat:: PixelFormatOpaque"/> regardless of the selected mode.7482 to="PixelFormat::Opaque"/> regardless of the selected mode. 7443 7483 7444 7484 <note> … … 7811 7851 7812 7852 <enum 7813 name="NetworkAttachmentType" 7814 uuid="8730d899-d036-4925-bc63-e58f3486f4bf" 7815 > 7816 <const name="NoNetworkAttachment" value="0"/> 7817 <const name="NATNetworkAttachment" value="1"/> 7818 <const name="HostInterfaceNetworkAttachment" value="2"/> 7819 <const name="InternalNetworkAttachment" value="3"/> 7853 name="NetworkAttachmentType" 7854 uuid="8730d899-d036-4925-bc63-e58f3486f4bf" 7855 > 7856 <desc> 7857 Network attachment type. 7858 </desc> 7859 7860 <const name="Null" value="0"> 7861 <desc><tt>null</tt> value. Also means "not attached".</desc> 7862 </const> 7863 <const name="NAT" value="1"/> 7864 <const name="HostInterface" value="2"/> 7865 <const name="Internal" value="3"/> 7820 7866 </enum> 7821 7867 7822 7868 <enum 7823 name="NetworkAdapterType" 7824 uuid="156b17b9-5d61-4d54-be90-62e37dda848d" 7825 > 7826 <const name="InvalidNetworkAdapterType" value="0"/> 7827 <const name="NetworkAdapterAm79C970A" value="1"/> 7828 <const name="NetworkAdapterAm79C973" value="2"/> 7829 <const name="NetworkAdapter82540EM" value="3"/> 7869 name="NetworkAdapterType" 7870 uuid="156b17b9-5d61-4d54-be90-62e37dda848d" 7871 > 7872 <desc> 7873 Network adapter type. 7874 </desc> 7875 7876 <const name="Null" value="0"> 7877 <desc><tt>null</tt> value. Never used by the API.</desc> 7878 </const> 7879 <const name="Am79C970A" value="1"/> 7880 <const name="Am79C973" value="2"/> 7881 <const name="I82540EM" value="3"/> 7830 7882 </enum> 7831 7883 … … 7973 8025 7974 8026 <enum 7975 7976 7977 8027 name="PortMode" 8028 uuid="b266f43c-2e93-46b3-812b-c20e600e867b" 8029 > 7978 8030 <desc> 7979 8031 The PortMode enumeration represents possible communicaton modes for … … 7981 8033 </desc> 7982 8034 7983 <const name="Disconnected Port" value="0">8035 <const name="Disconnected" value="0"> 7984 8036 <desc>Virtual device is not attached to any real host device.</desc> 7985 8037 </const> 7986 <const name="HostPipe Port" value="1">8038 <const name="HostPipe" value="1"> 7987 8039 <desc>Virtual device is attached to a host pipe.</desc> 7988 8040 </const> 7989 <const name="HostDevice Port" value="2">8041 <const name="HostDevice" value="2"> 7990 8042 <desc>Virtual device is attached to a host device.</desc> 7991 8043 </const> … … 8269 8321 They are run against a list of all currently available USB 8270 8322 devices (in states 8271 <link to="USBDeviceState:: USBDeviceAvailable">USBDeviceAvailable</link>,8272 <link to="USBDeviceState:: USBDeviceBusy">USBDeviceBusy</link>,8273 <link to="USBDeviceState:: USBDeviceHeld">USBDeviceHeld</link>)8274 that were not previouslyignored by global filters.8323 <link to="USBDeviceState::Available">Available</link>, 8324 <link to="USBDeviceState::Busy">Busy</link>, 8325 <link to="USBDeviceState::Held">Held</link>) that were not previously 8326 ignored by global filters. 8275 8327 8276 8328 If at least one filter matches the USB device in question, this … … 8690 8742 Once a supported USB device is attached to the host, global USB 8691 8743 filters (<link to="IHost::USBDeviceFilters"/>) are activated. They can 8692 either ignore the device, or put ot to # USBDeviceHeld state, or do8693 nothing. Unless the device is ignored by global filters, filters of8694 all currently running guests (<link to="IUSBController::deviceFilters"/>)8695 are activated that can put it to #USBDeviceCaptured state.8744 either ignore the device, or put ot to #Held state, or do nothing. Unless 8745 the device is ignored by global filters, filters of all currently running 8746 guests (<link to="IUSBController::deviceFilters"/>) are activated that can 8747 put it to #Captured state. 8696 8748 8697 8749 If the device was ignored by global filters, or didn't match 8698 8750 any filters at all (including guest ones), it is handled by the host 8699 8751 in a normal way. In this case, the device state is determined by 8700 the host and can be one of #U SBDeviceUnavailable, #USBDeviceBusy or8701 #USBDeviceAvailable, depending onthe current device usage.8752 the host and can be one of #Unavailable, #Busy or #Available, depending on 8753 the current device usage. 8702 8754 8703 8755 Besides auto-capturing based on filters, the device can be manually 8704 8756 captured by guests (<link to="IConsole::attachUSBDevice()"/>) if its 8705 state is # USBDeviceBusy, #USBDeviceAvailable or #USBDeviceHeld.8757 state is #Busy, #Available or #Held. 8706 8758 8707 8759 <note> 8708 8760 Due to differences in USB stack implementations in Linux and Win32, 8709 states # USBDeviceBusy and #USBDeviceAvailable are applicable8710 only to the Linux version of the product. This also means that8711 (<link to="IConsole::attachUSBDevice()"/>) can only succeed8712 on Win32 ifthe device state is #USBDeviceHeld.8761 states #Busy and #Available are applicable only to the Linux version of 8762 the product. This also means that (<link 8763 to="IConsole::attachUSBDevice()"/>) can only succeed on Win32 if 8764 the device state is #USBDeviceHeld. 8713 8765 </note> 8714 8766 … … 8716 8768 </desc> 8717 8769 8718 <const name=" USBDeviceNotSupported"value="0">8770 <const name="NotSupported" value="0"> 8719 8771 <desc> 8720 8772 Not supported by the VirtualBox server, not available to guests. 8721 8773 </desc> 8722 8774 </const> 8723 <const name="U SBDeviceUnavailable"value="1">8775 <const name="Unavailable" value="1"> 8724 8776 <desc> 8725 8777 Being used by the host computer exclusively, … … 8727 8779 </desc> 8728 8780 </const> 8729 <const name=" USBDeviceBusy"value="2">8781 <const name="Busy" value="2"> 8730 8782 <desc> 8731 8783 Being used by the host computer, potentially available to guests. 8732 8784 </desc> 8733 8785 </const> 8734 <const name=" USBDeviceAvailable"value="3">8786 <const name="Available" value="3"> 8735 8787 <desc> 8736 8788 Not used by the host computer, available to guests. … … 8738 8790 </desc> 8739 8791 </const> 8740 <const name=" USBDeviceHeld"value="4">8792 <const name="Held" value="4"> 8741 8793 <desc> 8742 8794 Held by the VirtualBox server (ignored by the host computer), … … 8744 8796 </desc> 8745 8797 </const> 8746 <const name=" USBDeviceCaptured"value="5">8798 <const name="Captured" value="5"> 8747 8799 <desc> 8748 8800 Captured by one of the guest computers, not available … … 8836 8888 8837 8889 <enum 8838 8839 8840 8890 name="USBDeviceFilterAction" 8891 uuid="cbc30a49-2f4e-43b5-9da6-121320475933" 8892 > 8841 8893 <desc> 8842 8894 Actions for host USB device filters. … … 8844 8896 </desc> 8845 8897 8846 <const name="InvalidUSBDeviceFilterAction" value="0"/> 8847 <const name="USBDeviceFilterIgnore" value="1"> 8898 <const name="Null" value="0"> 8899 <desc><tt>null</tt> value. Never used by the API.</desc> 8900 </const> 8901 <const name="Ignore" value="1"> 8848 8902 <desc>Ignore the matched USB device.</desc> 8849 8903 </const> 8850 <const name=" USBDeviceFilterHold"value="2">8904 <const name="Hold" value="2"> 8851 8905 <desc>Hold the matched USB device.</desc> 8852 8906 </const> … … 8903 8957 8904 8958 <enum 8905 name="AudioDriverType" 8906 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" 8907 > 8908 <const name="NullAudioDriver" value="0"/> 8909 <const name="WINMMAudioDriver" value="1"/> 8910 <const name="OSSAudioDriver" value="2"/> 8911 <const name="ALSAAudioDriver" value="3"/> 8912 <const name="DSOUNDAudioDriver" value="4"/> 8913 <const name="CoreAudioDriver" value="5"/> 8914 <const name="MMPMAudioDriver" value="6"/> 8915 <const name="PulseAudioDriver" value="7"/> 8959 name="AudioDriverType" 8960 uuid="4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" 8961 > 8962 <desc> 8963 Host audio driver type. 8964 </desc> 8965 8966 <const name="Null" value="0"> 8967 <desc><tt>null</tt> value. Also means "dummy audio driver".</desc> 8968 </const> 8969 <const name="WINMM" value="1"/> 8970 <const name="OSS" value="2"/> 8971 <const name="ALSA" value="3"/> 8972 <const name="DSOUND" value="4"/> 8973 <const name="Core" value="5"/> 8974 <const name="MMPM" value="6"/> 8975 <const name="Pulse" value="7"/> 8916 8976 </enum> 8917 8977 … … 8919 8979 name="AudioControllerType" 8920 8980 uuid="7afd395c-42c3-444e-8788-3ce80292f36c" 8921 > 8981 > 8982 <desc> 8983 Virtual audio controller type. 8984 </desc> 8985 8922 8986 <const name="AC97" value="0"/> 8923 8987 <const name="SB16" value="1"/> … … 8960 9024 8961 9025 <enum 8962 name="VRDPAuthType" 8963 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a" 8964 > 8965 <const name="VRDPAuthNull" value="0"/> 8966 <const name="VRDPAuthExternal" value="1"/> 8967 <const name="VRDPAuthGuest" value="2"/> 9026 name="VRDPAuthType" 9027 uuid="3d91887a-b67f-4b33-85bf-2da7ab1ea83a" 9028 > 9029 <desc> 9030 VRDP authentication type. 9031 </desc> 9032 9033 <const name="Null" value="0"> 9034 <desc><tt>null</tt> value. Also means "no authentication".</desc> 9035 </const> 9036 <const name="External" value="1"/> 9037 <const name="Guest" value="2"/> 8968 9038 </enum> 8969 9039 -
trunk/src/VBox/Main/idl/midl.xsl
r6851 r7207 379 379 <xsl:for-each select="const"> 380 380 <xsl:text> </xsl:text> 381 <xsl:value-of select=" @name"/> = <xsl:value-of select="@value"/>381 <xsl:value-of select="concat(../@name,'_',@name)"/> = <xsl:value-of select="@value"/> 382 382 <xsl:choose> 383 383 <xsl:when test="position()!=last()"><xsl:text>,
</xsl:text></xsl:when> … … 392 392 <xsl:value-of select="concat('cpp_quote("#define ', @name, '_T', ' ', 393 393 @name, '")

')"/> 394 <xsl:text>cpp_quote("")
</xsl:text>395 <!-- -->396 <xsl:value-of select="concat('/* cross-platform constants for ', @name, ' */
')"/>397 <xsl:for-each select="const">398 <xsl:value-of select="concat('cpp_quote("#define ', ../@name, '_', @name, ' ',399 @name, '")
')"/>400 <xsl:choose>401 <xsl:when test="position()=last()"><xsl:text>cpp_quote("")
</xsl:text></xsl:when>402 </xsl:choose>403 </xsl:for-each>404 394 <xsl:text>

</xsl:text> 405 395 </xsl:template> -
trunk/src/VBox/Main/include/AudioAdapterImpl.h
r6597 r7207 37 37 Data() { 38 38 mEnabled = false; 39 mAudioDriver = AudioDriverType_Null AudioDriver;39 mAudioDriver = AudioDriverType_Null; 40 40 mAudioController = AudioControllerType_AC97; 41 41 } -
trunk/src/VBox/Main/include/BIOSSettingsImpl.h
r6076 r7207 45 45 mPXEDebugEnabled = false; 46 46 mTimeOffset = 0; 47 mIDEControllerType = IDEControllerType_ IDEControllerPIIX4;47 mIDEControllerType = IDEControllerType_PIIX4; 48 48 } 49 49 -
trunk/src/VBox/Main/include/HardDiskImpl.h
r6174 r7207 102 102 bool isDifferencing() const 103 103 { 104 return mType == HardDiskType_Normal HardDisk&&104 return mType == HardDiskType_Normal && 105 105 mStorageType == HardDiskStorageType_VirtualDiskImage && 106 106 !mParent.isNull(); … … 109 109 { 110 110 AutoLock parentLock (mParent); 111 return !mParent.isNull() && mParent->type() == HardDiskType_Immutable HardDisk;111 return !mParent.isNull() && mParent->type() == HardDiskType_Immutable; 112 112 } 113 113 … … 306 306 307 307 State mState; 308 308 309 309 RTSEMEVENTMULTI mStateCheckSem; 310 310 ULONG mStateCheckWaiters; … … 521 521 522 522 State mState; 523 523 524 524 RTSEMEVENTMULTI mStateCheckSem; 525 525 ULONG mStateCheckWaiters; … … 632 632 633 633 State mState; 634 634 635 635 RTSEMEVENTMULTI mStateCheckSem; 636 636 ULONG mStateCheckWaiters; … … 653 653 654 654 //////////////////////////////////////////////////////////////////////////////// 655 655 656 656 class ATL_NO_VTABLE HVHDImage : 657 657 public HardDisk, … … 746 746 747 747 State mState; 748 748 749 749 RTSEMEVENTMULTI mStateCheckSem; 750 750 ULONG mStateCheckWaiters; -
trunk/src/VBox/Main/include/MachineImpl.h
r6965 r7207 227 227 ULONG mVRAMSize; 228 228 ULONG mMonitorCount; 229 T riStateBool_TmHWVirtExEnabled;229 TSBool_T mHWVirtExEnabled; 230 230 231 231 DeviceType_T mBootOrder [SchemaDefs::MaxBootPosition]; … … 300 300 AutoStateDependency (Machine *aThat) 301 301 : mThat (aThat), mRC (S_OK) 302 , mMachineState (MachineState_ InvalidMachineState)302 , mMachineState (MachineState_Null) 303 303 , mRegistered (FALSE) 304 304 { … … 454 454 STDMETHOD(COMSETTER(MonitorCount))(ULONG monitorCount); 455 455 STDMETHOD(COMGETTER(BIOSSettings))(IBIOSSettings **biosSettings); 456 STDMETHOD(COMGETTER(HWVirtExEnabled))(T riStateBool_T *enabled);457 STDMETHOD(COMSETTER(HWVirtExEnabled))(T riStateBool_T enabled);456 STDMETHOD(COMGETTER(HWVirtExEnabled))(TSBool_T *enabled); 457 STDMETHOD(COMSETTER(HWVirtExEnabled))(TSBool_T enabled); 458 458 STDMETHOD(COMGETTER(SnapshotFolder))(BSTR *aSavedStateFolder); 459 459 STDMETHOD(COMSETTER(SnapshotFolder))(INPTR BSTR aSavedStateFolder); … … 821 821 struct SnapshotData 822 822 { 823 SnapshotData() : mLastState (MachineState_ InvalidMachineState) {}823 SnapshotData() : mLastState (MachineState_Null) {} 824 824 825 825 MachineState_T mLastState; -
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r6076 r7207 38 38 Data() 39 39 : mSlot (0), mEnabled (FALSE) 40 , mAttachmentType (NetworkAttachmentType_N oNetworkAttachment)40 , mAttachmentType (NetworkAttachmentType_Null) 41 41 , mCableConnected (TRUE), mLineSpeed (0), mTraceEnabled (FALSE) 42 42 #ifdef RT_OS_WINDOWS -
trunk/src/VBox/Main/include/RemoteUSBDeviceImpl.h
r5999 r7207 77 77 uint32_t clientId (void) { return mClientId; } 78 78 79 bool captured (void) { return mState == USBDeviceState_ USBDeviceCaptured; }79 bool captured (void) { return mState == USBDeviceState_Captured; } 80 80 void captured (bool aCaptured) 81 81 { 82 82 if (aCaptured) 83 83 { 84 Assert(mState == USBDeviceState_ USBDeviceAvailable);85 mState = USBDeviceState_ USBDeviceCaptured;84 Assert(mState == USBDeviceState_Available); 85 mState = USBDeviceState_Captured; 86 86 } 87 87 else 88 88 { 89 Assert(mState == USBDeviceState_ USBDeviceCaptured);90 mState = USBDeviceState_ USBDeviceAvailable;89 Assert(mState == USBDeviceState_Captured); 90 mState = USBDeviceState_Available; 91 91 } 92 92 } -
trunk/src/VBox/Main/include/SerialPortImpl.h
r6076 r7207 40 40 , mIRQ (4) 41 41 , mIOBase (0x3f8) 42 , mHostMode (PortMode_Disconnected Port)42 , mHostMode (PortMode_Disconnected) 43 43 , mServer (FALSE) 44 44 {} -
trunk/src/VBox/Main/include/USBDeviceFilterImpl.h
r5999 r7207 239 239 { 240 240 #ifndef VBOX_WITH_USBFILTER 241 Data() : mAction (USBDeviceFilterAction_ USBDeviceFilterIgnore) {}241 Data() : mAction (USBDeviceFilterAction_Ignore) {} 242 242 USBDeviceFilterAction_T mAction; 243 243 #else /* VBOX_WITH_USBFILTER */ -
trunk/src/VBox/Main/testcase/tstAPI.cpp
r6922 r7207 733 733 Guid mid; 734 734 CHECK_RC_BREAK ( 735 virtualBox->GetHardDiskUsage (id, ResourceUsage_All Usage,735 virtualBox->GetHardDiskUsage (id, ResourceUsage_All, 736 736 mid.asOutParam()) 737 737 ); … … 762 762 Bstr mIDs; 763 763 CHECK_RC_BREAK ( 764 virtualBox->GetDVDImageUsage (id, ResourceUsage_All Usage,764 virtualBox->GetDVDImageUsage (id, ResourceUsage_All, 765 765 mIDs.asOutParam()) 766 766 ); -
trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp
r5999 r7207 366 366 hardDisk->GetId(&vdiUUID); 367 367 rc = machine->AttachHardDisk(*vdiUUID, 368 DiskControllerType::IDE0 Controller, // controler identifier369 0); 368 DiskControllerType::IDE0, // controler identifier 369 0); // device number on the controller 370 370 nsMemory::Free(vdiUUID); 371 371 if (NS_FAILED(rc)) … … 424 424 * Last step: tell the VM to boot from the CD. 425 425 */ 426 rc = machine->SetBootOrder (1, DeviceType::DVD Device);426 rc = machine->SetBootOrder (1, DeviceType::DVD); 427 427 if (NS_FAILED(rc)) 428 428 {
Note:
See TracChangeset
for help on using the changeset viewer.