Re: C API:s
Re: C API:s
- Subject: Re: C API:s
- From: Michael Larson <email@hidden>
- Date: Thu, 16 Jan 2003 13:53:40 -0800
On Thursday, January 16, 2003, at 01:02 AM, Tommy Gunnarsson wrote:
>
Hello, I'm quite new in Mac OS X and I'm working on an application to
>
use a Bluetooth headset to the Mac. I will use the C API:s, but I
>
think it is quite hard to find out how to use them, not to much
>
documentation.
>
>
My first question is, how can I generate or find the
>
IOBluetoothDeviceRef needed for almost every C API.
>
From IOBluetoothUserLib.h
extern IOBluetoothDeviceRef
IOBluetoothDeviceCreateWithAddress(BluetoothDeviceAddress *bdAddr);
Pass in the device address you are interested in, and it will return
you a device to use. As you have discovered, the easier way to do this
by using the UI elements available from Cocoa do not work with Carbon.
Without access to the inquiry functions, you really cannot cook your
own UI either. We are looking at some things in this area.
>
Second, is it possible to use the Paired devices from the Bluetooth
>
system preferences, or must i build from the application with an own
>
Pairing window?
>
Paired devices are system-wide, so any device paired in the Prefs will
be paired for your application as well.
>
The last question is, when I want to use the Headset I relly need the
>
SCO connection to transmitt the voice. I have not found any SCO
>
connection API and I wounder any API is developed for this kind of
>
application?
>
There is currently not an API for SCO connections in the stack, so you
will run into a rather large and hard wall here. This is something we
are looking at for a future release. Its priority depends largely on
the demand for SCO links. I assume I should add you to the list of
requests.
-larson
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >C API:s (From: Tommy Gunnarsson <email@hidden>) |