VirtualBox

Ignore:
Timestamp:
Oct 25, 2023 3:37:09 PM (14 months ago)
Author:
vboxsync
Message:

doc/manual,Frontends/VBoxManage,Main/{Global,GuestOSType,VirtualBox.xidl}:
Revisit the OS guest OS changes which added a new 'variant' field to the
Global::sOSTypes[] table along with a new VBoxManage subcommand and
IVirtualBox methods for accessing the guest OS variant information
(r159137). After discussion with the documentation team the identifier
'variant' is being changed to the clearer 'subtype' which also doesn't
overlap with the 'variant' terminology used with medium management
(IMedium::variant(), the MediumVariant enum, etc.). bugref:5936

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r101289 r101593  
    823823        guestOS->COMGETTER(FamilyDescription)(familyDescription.asOutParam());
    824824        RTPrintf(List::tr("Family Desc: %ls\n"), familyDescription.raw());
    825         Bstr guestOSVariant;
    826         guestOS->COMGETTER(Variant)(guestOSVariant.asOutParam());
    827         if (guestOSVariant.isNotEmpty())
    828             RTPrintf(List::tr("OS Variant:  %ls\n"), guestOSVariant.raw());
     825        Bstr guestOSSubtype;
     826        guestOS->COMGETTER(Subtype)(guestOSSubtype.asOutParam());
     827        if (guestOSSubtype.isNotEmpty())
     828            RTPrintf(List::tr("OS Subtype:  %ls\n"), guestOSSubtype.raw());
    829829        BOOL is64Bit;
    830830        guestOS->COMGETTER(Is64Bit)(&is64Bit);
     
    20622062    kListRunningVMs,
    20632063    kListOsTypes,
    2064     kListOsVariants,
     2064    kListOsSubtypes,
    20652065    kListHostDvds,
    20662066    kListHostFloppies,
     
    22082208        }
    22092209
    2210         case kListOsVariants:
     2210        case kListOsSubtypes:
    22112211        {
    22122212            com::SafeArray<BSTR> GuestOSFamilies;
     
    22172217                {
    22182218                    const Bstr bstrOSFamily = GuestOSFamilies[i];
    2219                     com::SafeArray<BSTR> GuestOSVariants;
     2219                    com::SafeArray<BSTR> GuestOSSubtypes;
    22202220                    CHECK_ERROR(pVirtualBox,
    2221                                 GetGuestOSVariantsByFamilyId(bstrOSFamily.raw(),
    2222                                                              ComSafeArrayAsOutParam(GuestOSVariants)));
     2221                                GetGuestOSSubtypesByFamilyId(bstrOSFamily.raw(),
     2222                                                             ComSafeArrayAsOutParam(GuestOSSubtypes)));
    22232223                    if (SUCCEEDED(hrc))
    22242224                    {
    22252225                        RTPrintf("%ls\n", bstrOSFamily.raw());
    2226                         for (size_t j = 0; j < GuestOSVariants.size(); ++j)
     2226                        for (size_t j = 0; j < GuestOSSubtypes.size(); ++j)
    22272227                        {
    2228                             RTPrintf("\t%ls\n", GuestOSVariants[j]);
     2228                            RTPrintf("\t%ls\n", GuestOSSubtypes[j]);
    22292229                            com::SafeArray<BSTR> GuestOSDescs;
    2230                             const Bstr bstrOSVariant = GuestOSVariants[j];
     2230                            const Bstr bstrOSSubtype = GuestOSSubtypes[j];
    22312231                            CHECK_ERROR(pVirtualBox,
    2232                                         GetGuestOSDescsByVariant(bstrOSVariant.raw(),
     2232                                        GetGuestOSDescsBySubtype(bstrOSSubtype.raw(),
    22332233                                                                 ComSafeArrayAsOutParam(GuestOSDescs)));
    22342234                            if (SUCCEEDED(hrc))
     
    24782478        { "runningvms",         kListRunningVMs,         RTGETOPT_REQ_NOTHING },
    24792479        { "ostypes",            kListOsTypes,            RTGETOPT_REQ_NOTHING },
    2480         { "osvariants",         kListOsVariants,         RTGETOPT_REQ_NOTHING },
     2480        { "ossubtypes",         kListOsSubtypes,         RTGETOPT_REQ_NOTHING },
    24812481        { "hostdvds",           kListHostDvds,           RTGETOPT_REQ_NOTHING },
    24822482        { "hostfloppies",       kListHostFloppies,       RTGETOPT_REQ_NOTHING },
     
    25452545            case kListRunningVMs:
    25462546            case kListOsTypes:
    2547             case kListOsVariants:
     2547            case kListOsSubtypes:
    25482548            case kListHostDvds:
    25492549            case kListHostFloppies:
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