74 |
|
// has a property with key kIOMediaEjectable. We limit |
75 |
|
// the match only to those CDs that are actually ejectable |
76 |
|
CFDictionarySetValue(classesToMatch, |
77 |
< |
CFSTR(kIOMediaEjectable), kCFBooleanTrue); |
77 |
> |
CFSTR(kIOMediaEjectableKey), kCFBooleanTrue); |
78 |
|
} |
79 |
|
|
80 |
|
if ( IOServiceGetMatchingServices(masterPort, |
90 |
|
{ |
91 |
|
char bsdPath[MAXPATHLEN]; |
92 |
|
CFTypeRef bsdPathAsCFString = |
93 |
< |
IORegistryEntryCreateCFProperty(nextCD, CFSTR(kIOBSDName), |
94 |
< |
kCFAllocatorDefault, 0); |
93 |
> |
IORegistryEntryCreateCFProperty(nextCD, |
94 |
> |
CFSTR(kIOBSDNameKey), |
95 |
> |
kCFAllocatorDefault, 0); |
96 |
|
*bsdPath = '\0'; |
97 |
|
if ( bsdPathAsCFString ) |
98 |
|
{ |