VirtualBox

Changeset 66210 in vbox


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

vdmedia.h: Introduce VDMEDIUMTYPE enum to be able to differentiate VDTYPE further later on

File:
1 edited

Legend:

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

    r66192 r66210  
    4141} VDTYPE;
    4242/** @}*/
     43
     44/** @name VD medium type.
     45 * @{
     46 */
     47typedef enum VDMEDIUMTYPE
     48{
     49    /** Invalid. */
     50    VDMEDIUMTYPE_INVALID = 0,
     51    /** HardDisk (spinning platter or SSD). */
     52    VDMEDIUMTYPE_HDD,
     53    /** CD-ROM */
     54    VDMEDIUMTYPE_CDROM,
     55    /** DVD-ROM */
     56    VDMEDIUMTYPE_DVDROM,
     57    /** BluRay. */
     58    VDMEDIUMTYPE_BD,
     59    /** 360KB 5 1/4" floppy. */
     60    VDMEDIUMTYPE_FLOPPY_360,
     61    /** 720KB 3 1/2" floppy. */
     62    VDMEDIUMTYPE_FLOPPY_720,
     63    /** 1.2MB 5 1/4" floppy. */
     64    VDMEDIUMTYPE_FLOPPY_1_20,
     65    /** 1.44MB 3 1/2" floppy. */
     66    VDMEDIUMTYPE_FLOPPY_1_44,
     67    /** 2.88MB 3 1/2" floppy. */
     68    VDMEDIUMTYPE_FLOPPY_2_88,
     69    /** Fake disk that can take up to 15.6 MB images.
     70     * C=255, H=2, S=63.  */
     71    VDMEDIUMTYPE_FLOPPY_FAKE_15_6,
     72    /** Fake disk that can take up to 63.5 MB images.
     73     * C=255, H=2, S=255.  */
     74    VDMEDIUMTYPE_FLOPPY_FAKE_63_5
     75} VDMEDIUMTYPE;
     76/** @} */
     77
     78/** Check if the given medium type is a floppy. */
     79#define VDMEDIUMTYPE_IS_FLOPPY(a_enmType) ( (a_enmType) >= VDMEDIUMTYPE_FLOPPY_360 && (a_enmType) <= VDMEDIUMTYPE_FLOPPY_2_88 )
    4380
    4481/**
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