IOBluetoothUtilities.h

Overview

See the Overview section above for header-level documentation.

Overview

Included Headers

  • <stdio.h>

  • <stdlib.h>

  • <string.h>

  • <sysexits.h>

  • <sys/errno.h>

  • <unistd.h>

  • <IOBluetooth/Bluetooth.h>

  • <IOKit/IOReturn.h>

  • <IOBluetooth/IOBluetoothUserLib.h>

Topics

Miscellaneous

func IOBluetoothFindNumberOfRegistryEntriesOfClassName(UnsafePointer<Int8>!) -> Int

Returns total number of registry entries with the provided device classname. For example, IOHIPointing.

func IOBluetoothIsFileAppleDesignatedPIMData(String!) -> Bool

Apple designated PIM data is classified as: .vcard, .vcal, .vcf, .vnote, .vmsg, .vcs

func IOBluetoothNSStringFromDeviceAddress(UnsafePointer<BluetoothDeviceAddress>!) -> String!

Convenience routine to take a device address structure and create an NSString.

func IOBluetoothNSStringToDeviceAddress(String!, UnsafeMutablePointer<BluetoothDeviceAddress>!) -> IOReturn

Convenience routine to take an NSString and turn it into a BluetoothDeviceAddress structure.

func IOBluetoothNumberOfAvailableHIDDevices() -> Int

Returns total number of HID devices on the system (Bluetooth + USB)

func IOBluetoothNumberOfKeyboardHIDDevices() -> Int

Returns number of keyboard HID devices on the system (Bluetooth + USB)

func IOBluetoothNumberOfPointingHIDDevices() -> Int

Returns number of "pointing" HID devices on the system (Bluetooth + USB)

func IOBluetoothNumberOfTabletHIDDevices() -> Int

Returns number of "Tablet" HID devices on the system (Bluetooth + USB)