linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pair device list query
@ 2009-11-09  9:06 nirav rabara
  2009-11-09  9:27 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: nirav rabara @ 2009-11-09  9:06 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I am newbie to Bluez-bluetooth and using bluetooth v2.0 dongle with my
custom board.

I want to access this paired device list frequently and some time need
to delete any of the paired device of list.
According to my understanding bluetoothd will create folder (MAC
address as name), in that folder one file name linkkeys having the
detail of all the paired device address with link keys.
Is this the only way to get paired device list? OR Is there any
specific data structure in bluez stack code??

Or if somebody can guide me what should I read for above.

Thanks in advance.

-- 
With Regards,
Nirav Rabara

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Pair device list query
  2009-11-09  9:06 Pair device list query nirav rabara
@ 2009-11-09  9:27 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2009-11-09  9:27 UTC (permalink / raw)
  To: nirav rabara; +Cc: linux-bluetooth

Hi,

On Mon, Nov 09, 2009, nirav rabara wrote:
> I want to access this paired device list frequently and some time need
> to delete any of the paired device of list.
> According to my understanding bluetoothd will create folder (MAC
> address as name), in that folder one file name linkkeys having the
> detail of all the paired device address with link keys.
> Is this the only way to get paired device list? OR Is there any
> specific data structure in bluez stack code??
> 
> Or if somebody can guide me what should I read for above.

You should use the BlueZ D-Bus API for getting this list. The API
reference can be found in doc/*-api.txt in the source tree. You could
also take a look at existing code that accesses the API. The programs
and scripts under the test subdirectory (e.g. test/list-devices) as well
as the gnome-bluetooth source code would be good places to start from.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-09  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09  9:06 Pair device list query nirav rabara
2009-11-09  9:27 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).