|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Hardware & Drivers > Bluetooth > Bluetooth Framework Reference
|
IOBluetoothUserLib.h |
| Include Path: | <IOBluetooth/IOBluetoothUserLib.h> |
| Path: | /System/Library/Frameworks/IOBluetooth.framework/Versions/A/Headers/IOBluetoothUserLib.h |
| See Also: | |
| Includes: |
This header contains the public interfaces for Apple's implementation of Bluetooth technology.
Technology-specific typedefs and information are contained in the documentation for Bluetooth.h.
For more information about accessing Bluetooth devices, see Working With Bluetooth Devices.
IOBluetoothAddSCOAudioDevice |
Creates a persistent audio driver that will route audio data to/from the specified device.
extern IOReturn IOBluetoothAddSCOAudioDevice( IOBluetoothDeviceRef device, CFDictionaryRef configDict ) AVAILABLE_BLUETOOTH_VERSION_1_6_AND_LATER;
Teh Bluetooth device must be paired before it can be added.
The Bluetooth hardware must also support SCO connections for devices to be added.
When a client attempts to use the audio driver, it will automatically open the baseband connection
and the SCO connection if necessary. Once they are open, it will route audio data to/from the
audio system. The audio driver will continue to exist (even through reboots) until IOBluetoothRemoveAudioDevice
is called.
Currently, the only recognized entry in the configDict is "IOAudioControls". That entry will be an NSArray of
NSDictionary objects where each dictionary represents a single audio control. Following is a description of the mandatory
and optional entries in each control dictionary.
Mandatory entries:
kIOAudioControlTypeKey = Four-char-code representing the control type (see IOAudioTypes.h)
Possible values:
kIOAudioControlTypeLevel
kIOAudioControlTypeToggle
kIOAudioControlTypeSelector
kIOAudioControlSubTypeKey = Four-char-code representing the control subtype. The value is dependent on the control type.
Following are common subtypes for each control type:
kIOAudioControlTypeLevel:
kIOAudioLevelControlSubTypeVolume
kIOAudioControlTypeToggle:
kIOAudioToggleControlSubTypeMute
kIOAudioControlTypeSelector:
kIOAudioSelectorControlSubTypeOutput
kIOAudioSelectorControlSubTypeInput
kIOAudioControlUsageKey = Four-char-code representing the usage of the control (i.e. what part of the I/O chain the control
affects - input, output, pass-thru, ...) (see IOAudioTypes.h)
Possible values:
kIOAudioControlUsageOutput
kIOAudioControlUsageInput
kIOAudioControlUsagePassThru
kIOAudioControlChannelIDKey = channel ID for the channel(s) the control acts on (see IOAudioControl.h and IOAudioTypes.h for more info)
kIOAudioControlChannelNameKey = name for the channel (see IOAudioControl.h and IOAudioDefines.h for more info)
kIOAudioControlValueKey = Initial value of the control - as an NSNumber
Optional entries:
kIOAudioControlIDKey = Optional developer-defined ID field used to uniquely identify each control.
Level control-specific entries (see IOAudioDefines.h)
kIOAudioLevelControlMinValueKey = Min value for the range for the level control
kIOAudioLevelControlMaxValueKey = Max value for the range for the level control
kIOAudioLevelControlMinDBKey = Min value in db for the range for the level control. Value is a fixed-point 16.16 number
represented as an integer in an NSNumber.
kIOAudioLevelControlMaxDBKey = Max value in db for the range for the level control. Value is a fixed-point 16.16 number
represented as an integer in an NSNumber.
For a more detailed description of these attributes and how IOAudioControls work, see the headerdoc for IOAudioControl, IOAudioLevelControl,
IOAudioToggleControl and IOAudioSelectorControl in the Kernel.framework.
@param device A paired Bluetooth audio device
@param configDict Configuration dictionary containing a description of the audio controls to be attached to the driver. Passing NULL will result in default controls
@result Returns kIOReturnSuccess if the audio driver was successfully created, error if hardware does not support SCO or device is not paired.
IOBluetoothAddServiceDict |
Adds a service to the local SDP server.
extern IOReturn IOBluetoothAddServiceDict( CFDictionaryRef serviceDict, IOBluetoothSDPServiceRecordRef *outServiceRecord);
serviceDictoutServiceRecordReturns kIOReturnSuccess if successful.
Each entry in the dictionary representing the service contains the individual attributes. Each
attribute in the dict is keyed by a string that must begin with a hex number representing the
attribute ID. The key string may contain additional characters if desired as long as they
follow a space after the ID hex string. The attribute value must follow the dictionary format
described by IOBluetoothSDPDataElement. This dictionary format allows a service dict to be
created as a plist file and then loaded into the system rather than built up in code. See the
example code for an example of how can be done.
If the service record handle, L2CAP PSM or RFCOMM channel ID specified in the dictionary are in
use, an alternate one will be assigned.
In addition to attributes that represent the service itself, additional attributes may be specified
that control the local behavior of the service. To specify these local attributes, an additional
property titled "LocalAttributes" may be added to the root of the service dict. The value of this
property must be a dictionary that contains the individual local attributes.
Currently, only two local attributes are supported: "Persistent" and "TargetApplication".
The "Persistent" local attribute must be either a boolean or number representing whether the service
should be persistent. A persistent service will be saved off and restored any time the Bluetooth
hardware is present. It will persist through reboots and can only be removed by calling
IOBluetoothRemoveServiceWithRecordHandle(). This attribute is optional. By default, if no
"Persistent" local property is present, the service will only exist temporarily. It will
be removed either when IOBluetoothRemoveServiceWithRecordHandle() is called or when the client
application exits.
The "TargetApplication" local attribute is used to specify an application to be launched when a
remote device attempts to connect to the service (by opening either an L2CAP or RFCOMM channel of
the type specified in the service). This value must be a string representing the absolute path to
the target executable (not just the .app wrapper - i.e.
/System/Library/CoreServices/OBEXAgent.app/Contents/MacOS/OBEXAgent). This attribute is optional.
If no "TargetApplication" local attribute is specified, no special action will take place when an
incoming connection to the service is created. It is up to the client to be monitoring for the
connection and to do the right thing when one appears.
The "LocalAttributes" property is optional. If it is not specified, by default the created service
is transient and will be removed when the client exits.
Additional local attributes to further control incoming services will be added in the future.
IOBluetoothDeviceAddToFavorites |
Adds the target device to the user's list of favorite devices.
extern IOReturn IOBluetoothDeviceAddToFavorites( IOBluetoothDeviceRef device) AVAILABLE_BLUETOOTH_VERSION_1_2_AND_LATER;
deviceReturns kIOReturnSuccess if the device was successfully added to the user's list of favorite devices.
NOTE: This function is only available in Mac OS X 10.2.5 (Bluetooth v1.2) or later.
IOBluetoothDeviceCloseConnection |
Closes down the baseband connection to the device.
extern IOReturn IOBluetoothDeviceCloseConnection( IOBluetoothDeviceRef btDevice);
btDeviceReturns kIOReturnSuccess if the connection has successfully been closed.
This method is synchronous and will not return until the connection has been closed (or the command failed). In the future this API will be changed to allow asynchronous operation.
IOBluetoothDeviceCreateWithAddress |
Returns the IOBluetoothDeviceRef for the given BluetoothDeviceAddress.
extern IOBluetoothDeviceRef IOBluetoothDeviceCreateWithAddress( BluetoothDeviceAddress *bdAddr);
bdAddrReturns the IOBluetoothDeviceRef for the given BluetoothDeviceAddress.
Within a single application, there will be only one IOBluetoothDeviceRef for a given remote device address. This function will return that shared device object. The IOBluetoothDeviceRef MUST be released by the caller (by calling IOBluetoothObjectRelease()).
IOBluetoothDeviceGetAddress |
Gets the Bluetooth device address for the target device.
extern const BluetoothDeviceAddress *IOBluetoothDeviceGetAddress( IOBluetoothDeviceRef device);
deviceReturns a pointer to the Bluetooth device address of the target device.
IOBluetoothDeviceGetAddressString |
Gets a string containing the Bluetooth device address for the target device.
extern CFStringRef IOBluetoothDeviceGetAddressString( IOBluetoothDeviceRef device) AVAILABLE_BLUETOOTH_VERSION_1_2_AND_LATER;
deviceReturns a pointer to a CFStringRef containing the Bluetooth device address of the target device. The returned string MUST be released by the caller by calling CFRelease().
Because this function may have to create a new string object, the resulting
string must be released by the caller (by calling CFRelease()).
NOTE: This function is only available in Mac OS X 10.2.5 (Bluetooth v1.2) or later.
IOBluetoothDeviceGetClassOfDevice |
Gets the full class of device value for the remote device.
extern BluetoothClassOfDevice IOBluetoothDeviceGetClassOfDevice( IOBluetoothDeviceRef device);
deviceReturns the class of device for the remote device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetClockOffset |
Gets the clock offset value of the device.
extern BluetoothClockOffset IOBluetoothDeviceGetClockOffset( IOBluetoothDeviceRef device);
deviceReturns the clock offset value for the device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetConnectionHandle |
Gets the connection handle for the baseband connection.
extern BluetoothConnectionHandle IOBluetoothDeviceGetConnectionHandle( IOBluetoothDeviceRef device);
deviceReturns the connection handle for the baseband connection. If no baseband connection is present, kBluetoothConnectionHandleNone is returned.
This method only returns a valid result if a baseband connection is present (IOBluetoothDeviceIsConnected() returns TRUE).
IOBluetoothDeviceGetDeviceClassMajor |
Gets the major device class of the device.
extern BluetoothDeviceClassMajor IOBluetoothDeviceGetDeviceClassMajor( IOBluetoothDeviceRef device);
deviceReturns the major device class of the remote device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetDeviceClassMinor |
Gets the minor service class of the device.
extern BluetoothDeviceClassMinor IOBluetoothDeviceGetDeviceClassMinor( IOBluetoothDeviceRef device);
deviceReturns the minor device class of the remote device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetEncryptionMode |
Gets the encryption mode for the baseband connection.
extern BluetoothHCIEncryptionMode IOBluetoothDeviceGetEncryptionMode( IOBluetoothDeviceRef device);
deviceReturns the encryption mode for the baseband connection. If no baseband connection is present, kEncryptionDisabled is returned.
This method only returns a valid result if a baseband connection is present (IOBluetoothDeviceIsConnected() returns TRUE).
IOBluetoothDeviceGetLastInquiryUpdate |
Gets the date/time of the last time the device was returned during an inquiry.
extern CFDateRef IOBluetoothDeviceGetLastInquiryUpdate( IOBluetoothDeviceRef device);
deviceReturns the date/time of the last time the device was seen during an inquiry. If the device has never been seen during an inquiry, NULL is returned. The returned CFDateRef does NOT need to be released by the caller.
IOBluetoothDeviceGetLastNameUpdate |
Gets the date/time of the last successful remote name request.
extern CFDateRef IOBluetoothDeviceGetLastNameUpdate( IOBluetoothDeviceRef device);
deviceReturns the date/time of the last successful remote name request. If no remote name request has been completed on the target device, NULL is returned. The returned CFDateRef does NOT need to be released by the caller.
IOBluetoothDeviceGetLastServicesUpdate |
Gets the date/time of the last SDP query.
extern CFDateRef IOBluetoothDeviceGetLastServicesUpdate( IOBluetoothDeviceRef device);
deviceReturns the date/time of the last SDP query. If an SDP query has never been performed on the device, NULL is returned. The resulting CFDateRef does NOT need to be released by the caller.
IOBluetoothDeviceGetLinkType |
Gets the link type for the baseband connection.
extern BluetoothLinkType IOBluetoothDeviceGetLinkType( IOBluetoothDeviceRef device);
deviceReturns the link type for the baseband connection. If no baseband connection is present, kBluetoothLinkTypeNone is returned.
This method only returns a valid result if a baseband connection is present (IOBluetoothDeviceIsConnected() returns TRUE).
IOBluetoothDeviceGetName |
Gets the human-readable name of the remote device.
extern CFStringRef IOBluetoothDeviceGetName( IOBluetoothDeviceRef device);
deviceReturns the name of the remote device name. This value is a CFStringRef generated from the UTF-8 format of the most recent remote name request. The returned string does NOT need to be released by the caller.
This only returns a value if a remote name request has been performed on the target device. If a successful remote name request has not been completed, NULL is returned. To perform a remote name request, call IOBluetoothDeviceRemoteNameRequest(). If a remote name request has been successfully completed, the function IOBluetoothDeviceGetLastNameUpdate() will return the date/time of the last successful request.
IOBluetoothDeviceGetNameOrAddress |
Gets the human-readable name of the remote device (if the name is not present, it will return a string containing the device's address).
extern CFStringRef IOBluetoothDeviceGetNameOrAddress( IOBluetoothDeviceRef device);
deviceReturns the device's name or a string containing the device's address. The returned string MUST be released by the caller by calling CFRelease().
If a remote name request has been successfully completed, the device name will be returned. If not, a string containg the device address in the format of "XX-XX-XX-XX-XX-XX" will be returned. Because this function may have to create a new string object, the resulting string must be released by the caller (by calling CFRelease()).
IOBluetoothDeviceGetPageScanMode |
Gets the page scan mode for the device.
extern BluetoothPageScanMode IOBluetoothDeviceGetPageScanMode( IOBluetoothDeviceRef device);
deviceReturns the value for the page scan mode for the device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetPageScanPeriodMode |
Gets the value of the page scan period mode for the device.
extern BluetoothPageScanPeriodMode IOBluetoothDeviceGetPageScanPeriodMode( IOBluetoothDeviceRef device);
deviceReturns page scan period mode value for the device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetPageScanRepetitionMode |
Gets the value of the page scan repetition mode for the device.
extern BluetoothPageScanRepetitionMode IOBluetoothDeviceGetPageScanRepetitionMode( IOBluetoothDeviceRef device);
deviceReturns the page scan repetition mode value for this device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetRecentAccessDate |
Returns a date representing the last time the user accessed the target device.
extern CFDateRef IOBluetoothDeviceGetRecentAccessDate( IOBluetoothDeviceRef device) AVAILABLE_BLUETOOTH_VERSION_1_2_AND_LATER;
deviceReturns a CFDateRef representing the last date/time that the user accessed the target device. The resulting CFDateRef must be released by the caller by calling CFRelease().
The CFDateRef returned by this function must be released by calling CFRelease().
NOTE: This function is only available in Mac OS X 10.2.5 (Bluetooth v1.2) or later.
IOBluetoothDeviceGetServiceClassMajor |
Gets the major service class of the device.
extern BluetoothServiceClassMajor IOBluetoothDeviceGetServiceClassMajor( IOBluetoothDeviceRef device);
deviceReturns the major service class of the device.
This value is only meaningful if the target device has been seen during an inquiry. This can be by checking the result of IOBluetoothDeviceGetLastInquiryUpdate(). If NULL is returned, then the device hasn't been seen.
IOBluetoothDeviceGetServiceRecordForUUID |
Searches for a service record containing the given UUID.
extern IOBluetoothSDPServiceRecordRef IOBluetoothDeviceGetServiceRecordForUUID( IOBluetoothDeviceRef device, IOBluetoothSDPUUIDRef uuidRef);
deviceuuidRefReturns the first service record that contains the given uuid. If no service record is found, NULL is returned. The resulting IOBluetoothSDPServiceRecordRef does NOT need to be released by the caller.
This method searches through the device's services to find a service that contains the given UUID. Only the first service record will be returned. This method only operates on services that have already been queried. It will not initiate a new query. This method should probably be updated to return an array of service records if more than one contains the UUID.
IOBluetoothDeviceGetServices |
Gets an array of service records for the device.
extern CFArrayRef IOBluetoothDeviceGetServices( IOBluetoothDeviceRef device);
deviceReturns an array of service records (IOBluetoothDeviceRefs) for the device if an SDP query has been performed. If no SDP query has been performed, NULL is returned. The resulting CFArrayRef does NOT need to be released by the caller.
The resulting array contains IOBluetoothSDPServiceRecordRefs. The service records are only
present if an SDP query has been done on the target object. This can be determined by calling
IOBluetoothDeviceGetLastServicesUpdate(). It will return the last date/time of the SDP query.
To peform an SDP query, use IOBluetoothDevicePerformSDPQuery().
Instead of allowing individual clients to query for different services and service attributes,
the system request all of the device's services and service attributes.
IOBluetoothDeviceInquiryClearFoundDevices |
Removes all found devices from the inquiry object.
extern IOReturn IOBluetoothDeviceInquiryClearFoundDevices( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
IOBluetoothDeviceInquiryCreateWithCallbackRefCon |
Returns a new inquiry object.
extern IOBluetoothDeviceInquiryRef IOBluetoothDeviceInquiryCreateWithCallbackRefCon( void *inUserRefCon ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inUserRefConReturns whether the inquiry was successfully created.
IOBluetoothDeviceInquiryDelete |
Frees the IOBluetoothDeviceInquiryRef. You do not need to do anything further with the inquiry after this.
extern IOReturn IOBluetoothDeviceInquiryDelete( IOBluetoothDeviceInquiryRef inquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inquiryRefIOBluetoothDeviceInquiryGetFoundDevices |
Returns found IOBluetoothDeviceRef objects as an array.
extern CFArrayRef IOBluetoothDeviceInquiryGetFoundDevices( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
Returns an CFArrayRef of IOBluetoothDeviceRef objects.
Will not return nil. If there are no devices found, returns an array with length of 0.
IOBluetoothDeviceInquiryGetInquiryLength |
Returns the number of seconds the search will be performed.
extern uint8_t IOBluetoothDeviceInquiryGetInquiryLength( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
Returns the number of seconds the search will be performed.
IOBluetoothDeviceInquiryGetUpdateNewDeviceNames |
Returns whether or the inquiry object will perform remote name requests on found devices.
extern Boolean IOBluetoothDeviceInquiryGetUpdateNewDeviceNames( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
Returns TRUE if the inquiry will get device name for found objects, FALSE if not.
IOBluetoothDeviceInquiryGetUserRefCon |
Gets the user reference constant.
extern void * IOBluetoothDeviceInquiryGetUserRefCon( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
void * A ptr to an object that was previously supplied with IOBluetoothDeviceInquirySetUserRefCon.
IOBluetoothDeviceInquirySetCompleteCallback |
Sets the function callback that is invoked when the inquiry is complete.
extern IOReturn IOBluetoothDeviceInquirySetCompleteCallback( IOBluetoothDeviceInquiryRef inInquiryRef, IOBluetoothDeviceInquiryCompleteCallback callback ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
callbackIOBluetoothDeviceInquirySetDeviceFoundCallback |
Sets the function callback that is invoked when the inquiry finds a new device.
extern IOReturn IOBluetoothDeviceInquirySetDeviceFoundCallback( IOBluetoothDeviceInquiryRef inInquiryRef, IOBluetoothDeviceInquiryDeviceFoundCallback callback ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
callbackIOBluetoothDeviceInquirySetDeviceNameUpdatedCallback |
Sets the function callback that is invoked when the inquiry updates a device name.
extern IOReturn IOBluetoothDeviceInquirySetDeviceNameUpdatedCallback( IOBluetoothDeviceInquiryRef inInquiryRef, IOBluetoothDeviceInquiryDeviceNameUpdatedCallback callback ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
callbackIOBluetoothDeviceInquirySetInquiryLength |
Sets the length of the inquiry that is performed each time -start is used on an inquiry object.
extern IOReturn IOBluetoothDeviceInquirySetInquiryLength( IOBluetoothDeviceInquiryRef inInquiryRef, int8_t inSeconds ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inSecondsReturns the number of seconds the search will be performed.
A default of 10 seconds is used, unless a different value is specifed using this method. Note that if you
have called -start again too quickly, your inquiry may actually take much longer than the length you
specify, as inquiries are throttled in the system.
Also note that this length value is only the amount of time the hardware spends "discovering" devices. The
total inquiry might take longer, however, if it is also updating device names.
IOBluetoothDeviceInquirySetSearchCriteria |
Sets the criteria for the device search.
extern IOReturn IOBluetoothDeviceInquirySetSearchCriteria( IOBluetoothDeviceInquiryRef inInquiryRef, BluetoothServiceClassMajor inServiceClassMajor, BluetoothDeviceClassMajor inMajorDeviceClass, BluetoothDeviceClassMinor inMinorDeviceClass ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inServiceClassMajorinMajorDeviceClassinMinorDeviceClassThe default inquiry object qill search for all types of devices. If you wish to find only keyboards, for example, you might use this method like this:
IOBluetoothDeviceInquirySetSearchCriteria( myInquiryObjectRef,
kBluetoothServiceClassMajorAny,
kBluetoothDeviceClassMajorPeripheral,
kBluetoothDeviceClassMinorPeripheral1Keyboard );
However, we recommend only using this if you are certain of the device class you are looking for, as some
devices may report a different/unexpected device class, and the search may miss the device you are interested in.
IOBluetoothDeviceInquirySetStartedCallback |
Sets the function callback that is invoked when the inquiry is started.
extern IOReturn IOBluetoothDeviceInquirySetStartedCallback( IOBluetoothDeviceInquiryRef inInquiryRef, IOBluetoothDeviceInquiryStartedCallback callback ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
callbackIOBluetoothDeviceInquirySetUpdateNewDeviceNames |
Sets whether or not the inquiry object will retrieve the names of devices found during the search.
extern IOReturn IOBluetoothDeviceInquirySetUpdateNewDeviceNames( IOBluetoothDeviceInquiryRef inInquiryRef, Boolean inUpdateNames ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inUpdateNamesThe default value for the inquiry object is TRUE, unless this method is used to change it.
IOBluetoothDeviceInquirySetUpdatingNamesStartedCallback |
Set the function callback that is invoked when the inquiry begins to update device names (using remote name requests).
extern IOReturn IOBluetoothDeviceInquirySetUpdatingNamesStartedCallback( IOBluetoothDeviceInquiryRef inInquiryRef, IOBluetoothDeviceInquiryUpdatingNamesStartedCallback callback ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
callbackIOBluetoothDeviceInquirySetUserRefCon |
Sets the user reference constant that is provided to the callbacks when they are called.
extern IOReturn IOBluetoothDeviceInquirySetUserRefCon( IOBluetoothDeviceInquiryRef inInquiryRef, void *inUserRefCon ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
inUserRefConIOBluetoothDeviceInquiryStart |
Starts the inquiry using the IOBluetoothDeviceInquiryRef.
extern IOReturn IOBluetoothDeviceInquiryStart( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
Returns whether the inquiry was started with or without error.
IOBluetoothDeviceInquiryStop |
Stops the inquiry using the IOBluetoothDeviceInquiryRef.
extern IOReturn IOBluetoothDeviceInquiryStop( IOBluetoothDeviceInquiryRef inInquiryRef ) AVAILABLE_BLUETOOTH_VERSION_1_6_3_AND_LATER;
Returns whether the inquiry was stopped with or without error.
IOBluetoothDeviceIsConnected |
Indicates whether a baseband connection to the device exists.
extern Boolean IOBluetoothDeviceIsConnected( IOBluetoothDeviceRef device);
deviceReturns YES if a baseband connection to the device exists.
IOBluetoothDeviceIsFavorite |
Indicates whether the target device is a favorite.
extern Boolean IOBluetoothDeviceIsFavorite( IOBluetoothDeviceRef device) AVAILABLE_BLUETOOTH_VERSION_1_2_AND_LATER;
deviceReturns TRUE if the device is one of the user's favorites.
NOTE: This function is only available in Mac OS X 10.2.5 (Bluetooth v1.2) or later.
IOBluetoothDeviceIsPaired |
Indicates whether the target device is paired.
extern Boolean IOBluetoothDeviceIsPaired( IOBluetoothDeviceRef device) AVAILABLE_BLUETOOTH_VERSION_1_2_AND_LATER;
deviceReturns TRUE if the device is paired.
NOTE: This function is only available in Mac OS X 10.2.5 (Bluetooth v1.2) or later.
IOBluetoothDeviceOpenConnection |
Creates a baseband connection to the device.
extern IOReturn IOBluetoothDeviceOpenConnection( IOBluetoothDeviceRef btDevice, IOBluetoothCreateConnectionCallback callback,