VirtualBox

Ignore:
Timestamp:
Feb 28, 2008 6:43:08 PM (17 years ago)
Author:
vboxsync
Message:

Main: Reworked enums to avoid 1) weird duplication of enum name when referring to enum values in cross-platform code; 2) possible clashes on Win32 due to putting identifiers like Paused or Disabled to the global namespace (via C enums). In the new style, enums are used like this: a) USBDeviceState_T v = USBDeviceState_Busy from cross-platform non-Qt code; b) KUSBDeviceState v = KUSBDeviceState_Busy from Qt code; c) USBDeviceState v = USBDeviceState_Busy from plain Win32 and d) PRUInt32 USBDeviceState v = USBDeviceState::Busy from plain XPCOM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/testcase/tstVBoxAPILinux.cpp

    r5999 r7207  
    366366                    hardDisk->GetId(&vdiUUID);
    367367                    rc = machine->AttachHardDisk(*vdiUUID,
    368                                                 DiskControllerType::IDE0Controller, // controler identifier
    369                                                 0);                                 // device number on the controller
     368                                                DiskControllerType::IDE0, // controler identifier
     369                                                0);                       // device number on the controller
    370370                    nsMemory::Free(vdiUUID);
    371371                    if (NS_FAILED(rc))
     
    424424                 * Last step: tell the VM to boot from the CD.
    425425                 */
    426                 rc = machine->SetBootOrder (1, DeviceType::DVDDevice);
     426                rc = machine->SetBootOrder (1, DeviceType::DVD);
    427427                if (NS_FAILED(rc))
    428428                {
Note: See TracChangeset for help on using the changeset viewer.

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