VirtualBox

Changeset 16302 in vbox


Ignore:
Timestamp:
Jan 28, 2009 12:25:59 PM (16 years ago)
Author:
vboxsync
Message:

OVF: spelling in constants

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

Legend:

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

    r16299 r16302  
    163163
    164164    CIMOSType_T         cimos;
    165     string              strVirtualSystemType;
     165    string              strVirtualSystemType;   // generic hardware description; OVF says this can be something like "vmx-4" or "xen";
     166                                                // VMware Workstation 6.5 is "vmx-07"
    166167
    167168    HardwareItemsMap    mapHardwareItems;       // map of virtual hardware items, sorted by unique instance ID
     
    11861187                        else if (!RTStrICmp(hdc.strControllerType.c_str(), "PIIX4"))
    11871188                            hdcController = IDEControllerType_PIIX4;
    1188                         vsd->addEntry(VirtualSystemDescriptionType_HarddiskControllerIDE, toString<uint32_t>(hdc.idController), hdc.strControllerType, toString<ULONG>(hdcController));
     1189                        vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerIDE, toString<uint32_t>(hdc.idController), hdc.strControllerType, toString<ULONG>(hdcController));
    11891190                        break;
    11901191                    }
     
    11941195                        // @todo: figure out the SATA types
    11951196                        /* We only support a plain AHCI controller, so use them always */
    1196                         vsd->addEntry(VirtualSystemDescriptionType_HarddiskControllerSATA, toString<uint32_t>(hdc.idController), hdc.strControllerType, "AHCI");
     1197                        vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerSATA, toString<uint32_t>(hdc.idController), hdc.strControllerType, "AHCI");
    11971198                        break;
    11981199                    }
     
    12171218                            hdcController = "BusLogic";
    12181219# endif /* VBOX_WITH_BUSLOGIC */
    1219                         vsd->addEntry(VirtualSystemDescriptionType_HarddiskControllerSCSI, toString<uint32_t>(hdc.idController), hdc.strControllerType, hdcController);
     1220                        vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerSCSI, toString<uint32_t>(hdc.idController), hdc.strControllerType, hdcController);
    12201221                        break;
    12211222                    }
     
    12641265                    /* Make the path unique to the VBox installation */
    12651266                    searchUniqueDiskImageFilePath(path);
    1266                     vsd->addEntry(VirtualSystemDescriptionType_Harddisk, hd.strDiskId, di.strHref, path);
     1267                    vsd->addEntry(VirtualSystemDescriptionType_HardDiskImage, hd.strDiskId, di.strHref, path);
    12671268                }
    12681269            }
     
    13961397
    13971398        /* Hard disk controller IDE */
    1398         list<VirtualSystemDescriptionEntry> vsdeHDCIDE = vsd->findByType(VirtualSystemDescriptionType_HarddiskControllerIDE);
     1399        list<VirtualSystemDescriptionEntry> vsdeHDCIDE = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerIDE);
    13991400        /* @todo: we support one IDE controller only */
    14001401        if (vsdeHDCIDE.size() > 0)
     
    14111412#ifdef VBOX_WITH_AHCI
    14121413        /* Hard disk controller SATA */
    1413         list<VirtualSystemDescriptionEntry> vsdeHDCSATA = vsd->findByType(VirtualSystemDescriptionType_HarddiskControllerSATA);
     1414        list<VirtualSystemDescriptionEntry> vsdeHDCSATA = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerSATA);
    14141415        /* @todo: we support one SATA controller only */
    14151416        if (vsdeHDCSATA.size() > 0)
     
    14331434#ifdef VBOX_WITH_SCSI
    14341435        /* Hard disk controller SCSI */
    1435         list<VirtualSystemDescriptionEntry> vsdeHDCSCSI = vsd->findByType(VirtualSystemDescriptionType_HarddiskControllerSCSI);
     1436        list<VirtualSystemDescriptionEntry> vsdeHDCSCSI = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerSCSI);
    14361437        /* @todo: do we support more than one SCSI controller? */
    14371438        if (vsdeHDCSCSI.size() > 0)
     
    14471448
    14481449        /* Create the hard disks & connect them to the appropriate controllers. */
    1449         list<VirtualSystemDescriptionEntry> vsdeHD = vsd->findByType(VirtualSystemDescriptionType_Harddisk);
     1450        list<VirtualSystemDescriptionEntry> vsdeHD = vsd->findByType(VirtualSystemDescriptionType_HardDiskImage);
    14501451        if (vsdeHD.size() > 0)
    14511452        {
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r16298 r16302  
    29922992    <const name="CPU" value="3" />
    29932993    <const name="Memory" value="4" />
    2994     <const name="HarddiskControllerIDE" value="5" />
    2995     <const name="HarddiskControllerSATA" value="6" />
    2996     <const name="HarddiskControllerSCSI" value="7" />
    2997     <const name="Harddisk" value="8" />
    2998     <const name="NetworkAdapter" value="9" />
     2994    <const name="HardDiskControllerIDE" value="5" />
     2995    <const name="HardDiskControllerSATA" value="6" />
     2996    <const name="HardDiskControllerSCSI" value="7" />
     2997    <const name="HardDiskImage" value="8" />
     2998    <const name="CDROM" value="9" />
     2999    <const name="Floppy" value="10" />
     3000    <const name="NetworkAdapter" value="11" />
    29993001
    30003002  </enum>
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