7 |
|
* |
8 |
|
* Based on Apple's CDROMSample.c and Evan Jones' cd-discid.c patches |
9 |
|
* |
10 |
< |
* Basilisk II (C) 1997-2003 Christian Bauer |
10 |
> |
* Basilisk II (C) 1997-2004 Christian Bauer |
11 |
|
* |
12 |
|
* This program is free software; you can redistribute it and/or modify |
13 |
|
* it under the terms of the GNU General Public License as published by |
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 |
|
{ |