ADC Home > Reference Library > Reference > Hardware & Drivers > I/O Kit Framework Reference

 


IOCDMedia.h

Include Path:

<IOKit/storage/IOCDMedia.h>

Path:

/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/storage/IOCDMedia.h

Includes:

Overview

This header contains the IOCDMedia class definition. The IOCDMedia class is a random-access disk device abstraction for CDs.



Classes

IOCDMedia

The IOCDMedia class is a random-access disk device abstraction for CDs.



#defines


kIOCDMediaClass


kIOCDMediaClass is the name of the IOCDMedia class.

#define kIOCDMediaClass "IOCDMedia" 
Discussion

kIOCDMediaClass is the name of the IOCDMedia class.


kIOCDMediaTOCKey


kIOCDMediaTOCKey is a property of IOCDMedia objects. It has an OSData value and a CDTOC structure.

#define kIOCDMediaTOCKey "TOC" 
Discussion

The kIOCDMediaTOCKey property contains the CD's full table of contents, formatted as a CDTOC structure. The CDTOC structure is same as what is returned by a READ TOC command, format 0x02. All fields in the TOC are guaranteed to be binary-encoded (no BCD-encoded numbers are ever passed).


kIOCDMediaTypeKey


kIOCDMediaTypeKey is a property of IOCDMedia objects. It has an OSString value.

#define kIOCDMediaTypeKey "Type" 
Discussion

The kIOCDMediaTypeKey property identifies the CD media type (CD-ROM, CD-R, CD-RW, etc). See the kIOCDMediaType contants for possible values.


kIOCDMediaTypeR


#define kIOCDMediaTypeR "CD-R" 
Discussion

The kIOCDMediaTypeKey constant for CD Recordable (CD-R) media.


kIOCDMediaTypeROM


#define kIOCDMediaTypeROM "CD-ROM" 
Discussion

The kIOCDMediaTypeKey constant for CD-ROM media (inclusive of the CD-I, CD-ROM XA, and CD Audio standards, and mixed mode combinations thereof).


kIOCDMediaTypeRW


#define kIOCDMediaTypeRW "CD-RW" 
Discussion

The kIOCDMediaTypeKey constant for CD ReWritable (CD-RW) media.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.

 

Last Updated: 2009-02-23