VirtualBox

Changeset 66211 in vbox


Ignore:
Timestamp:
Mar 22, 2017 7:44:19 PM (8 years ago)
Author:
vboxsync
Message:

vdmedia.h,++: Rename VDTYPE_DVD to VDTYPE_OPTICAL_DISC

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vdmedia.h

    r66210 r66211  
    3535    /** HardDisk */
    3636    VDTYPE_HDD,
    37     /** DVD */
    38     VDTYPE_DVD,
     37    /** Any kind of optical disc (CD/DVD etc.). */
     38    VDTYPE_OPTICAL_DISC,
    3939    /** Floppy. */
    4040    VDTYPE_FLOPPY
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r66193 r66211  
    44144414        return VDTYPE_FLOPPY;
    44154415    else if (enmType == PDMMEDIATYPE_DVD || enmType == PDMMEDIATYPE_CDROM)
    4416         return VDTYPE_DVD;
     4416        return VDTYPE_OPTICAL_DISC;
    44174417    else if (enmType == PDMMEDIATYPE_HARD_DISK)
    44184418        return VDTYPE_HDD;
  • trunk/src/VBox/Main/src-server/MediumFormatImpl.cpp

    r60608 r66211  
    8383                    devType = DeviceType_HardDisk;
    8484                    break;
    85                 case VDTYPE_DVD:
     85                case VDTYPE_OPTICAL_DISC:
    8686                    devType = DeviceType_DVD;
    8787                    break;
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r65390 r66211  
    74127412            break;
    74137413        case DeviceType_DVD:
    7414             enmType = VDTYPE_DVD;
     7414            enmType = VDTYPE_OPTICAL_DISC;
    74157415            break;
    74167416        case DeviceType_Floppy:
     
    74367436            devType = DeviceType_HardDisk;
    74377437            break;
    7438         case VDTYPE_DVD:
     7438        case VDTYPE_OPTICAL_DISC:
    74397439            devType = DeviceType_DVD;
    74407440            break;
  • trunk/src/VBox/Storage/CUE.cpp

    r66197 r66211  
    225225static const VDFILEEXTENSION s_aCueFileExtensions[] =
    226226{
    227     {"cue", VDTYPE_DVD},
     227    {"cue", VDTYPE_OPTICAL_DISC},
    228228    {NULL, VDTYPE_INVALID}
    229229};
     
    14271427
    14281428        if (RT_SUCCESS(rc))
    1429             *penmType = VDTYPE_DVD;
     1429            *penmType = VDTYPE_OPTICAL_DISC;
    14301430        else
    14311431            rc = VERR_VD_GEN_INVALID_HEADER;
     
    14511451    AssertReturn(!(uOpenFlags & ~VD_OPEN_FLAGS_MASK), VERR_INVALID_PARAMETER);
    14521452    AssertReturn((VALID_PTR(pszFilename) && *pszFilename), VERR_INVALID_PARAMETER);
    1453     AssertReturn(enmType == VDTYPE_DVD, VERR_NOT_SUPPORTED);
     1453    AssertReturn(enmType == VDTYPE_OPTICAL_DISC, VERR_NOT_SUPPORTED);
    14541454
    14551455    pThis = (PCUEIMAGE)RTMemAllocZ(sizeof(CUEIMAGE));
  • trunk/src/VBox/Storage/DMG.cpp

    r66110 r66211  
    424424static const VDFILEEXTENSION s_aDmgFileExtensions[] =
    425425{
    426     {"dmg", VDTYPE_DVD},
     426    {"dmg", VDTYPE_OPTICAL_DISC},
    427427    {NULL, VDTYPE_INVALID}
    428428};
     
    17931793                {
    17941794                    rc = VINF_SUCCESS;
    1795                     *penmType = VDTYPE_DVD;
     1795                    *penmType = VDTYPE_OPTICAL_DISC;
    17961796                }
    17971797                else
  • trunk/src/VBox/Storage/RAW.cpp

    r66110 r66211  
    8888static const VDFILEEXTENSION s_aRawFileExtensions[] =
    8989{
    90     {"iso", VDTYPE_DVD},
    91     {"cdr", VDTYPE_DVD},
     90    {"iso", VDTYPE_OPTICAL_DISC},
     91    {"cdr", VDTYPE_OPTICAL_DISC},
    9292    {"img", VDTYPE_FLOPPY},
    9393    {"ima", VDTYPE_FLOPPY},
     
    332332                else
    333333                {
    334                     *penmType = VDTYPE_DVD;
     334                    *penmType = VDTYPE_OPTICAL_DISC;
    335335                    rc = VINF_SUCCESS;
    336336                }
     
    393393        if (RT_SUCCESS(rc))
    394394        {
    395             if (enmType == VDTYPE_DVD)
     395            if (enmType == VDTYPE_OPTICAL_DISC)
    396396                pImage->cbSector = 2048;
    397397            else
     
    425425    /* Check the VD container type. Yes, hard disk must be allowed, otherwise
    426426     * various tools using this backend for hard disk images will fail. */
    427     if (enmType != VDTYPE_HDD && enmType != VDTYPE_DVD && enmType != VDTYPE_FLOPPY)
     427    if (enmType != VDTYPE_HDD && enmType != VDTYPE_OPTICAL_DISC && enmType != VDTYPE_FLOPPY)
    428428        return VERR_VD_INVALID_TYPE;
    429429
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