From: Johan Hedberg <johan.hedberg@gmail.com>
To: nirav rabara <niravrabara@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: Pair device list query
Date: Mon, 9 Nov 2009 11:27:15 +0200 [thread overview]
Message-ID: <20091109092715.GA9047@jh-x301> (raw)
In-Reply-To: <912bb79a0911090106o6704e144y72fb9150865bc50d@mail.gmail.com>
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
prev parent reply other threads:[~2009-11-09 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-09 9:06 Pair device list query nirav rabara
2009-11-09 9:27 ` Johan Hedberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091109092715.GA9047@jh-x301 \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=niravrabara@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox