Re: Replacements for deprecated APIs?
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Thanks, Ken Ecamm Network On 16.10.2009, at 16:48, Camille Troillard wrote: Hi! I have asked the same question on the ADC member discussion forums two days ago and still got no response. I find it very depressing that Apple provides a poor documentation on the bluetooth API. Apparently IOBluetoothLocalDeviceAvailable() is same as [IOBluetoothHostController defaultController] == nil, but there is no replacement for IOBluetoothLocalDeviceGetPowerState(). Best Regards, Petteri Kamppuri petteri.kamppuri@karppinen.fi MK&C http://www.karppinen.fi/ _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... As far as I know, IOBluetoothLocalDeviceGetPowerState() checks the HCIControllerPowerIsOn property of the IOBluetoothHCIController in the IORegistry. I suppose you could check it manually using IORegistryEntryCreateCFProperties if you need to. This email sent to site_archiver@lists.apple.com
participants (1)
-
Ken Aspeslagh