Hi,
I'd like to get the name of an arbitrary FireWire Device.
Do they have names?
I tried a D-Link Webcam, and my iPod - but they don't appear to have names (I looked in IORegExplorer)
They often have Vendor Names, but even the iPod doesn't have a name -- have I got this wrong?
Code:
io_object_t thisObject = nil;
while (thisObject = IOIteratorNext( iterator ))
{
NSLog(@"got one new object.");
// kern_return_t nameResult;
// io_name_t deviceNameChars;
// This works with USB devices...
// but apparently not firewire
// nameResult = IORegistryEntryGetName( thisObject, deviceNameChars );
// NSLog(@"name? : %s" , deviceNameChars);
id returnedPropertyObject =
IORegistryEntrySearchCFProperty(thisObject,
kIOFireWirePlane,
@"FireWire Vendor Name",
nil,
kIORegistryIterateRecursively);
NSLog(@"prop: %@", returnedPropertyObject);
IOObjectRelease(thisObject);
}