linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Danis <frederic.danis@intel.com>
To: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: [RFC] Convert storage to use per-remote device directories
Date: Thu, 27 Sep 2012 11:59:37 +0200	[thread overview]
Message-ID: <50642389.40107@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]

Hi everyone,

Here is my proposal for new storage directory structure using ini-file 
format.

Each adapter directory (/var/lib/bluetooth/<adapter address>/) will 
contain a config file for the local adapter and one directory per remote 
device.
The adapter config file just need to be converted to ini-file format 
with only 1 group called [adapter].

Each of remote device directories' name will be based on remote device 
address and address type (address#type).
This directory will contain a config file with remote device infos and a 
linkkey file.
Remote device config file will include a [device] group with general 
device infos (name, alias, profiles or services list, ...), and groups 
named by profile uuid (or service uuid) with related infos.

So the directory structure should be:
    /var/lib/bluetooth/<adapter address>/
        ./config
        ./<remote device address#type>/
            ./config
            ./linkkey
        ./<remote device address#type>/
            ./config
            ./linkkey
        ...

I attached sample of adapter and device config files.

-- 
Frederic Danis                            Open Source Technology Center
frederic.danis@intel.com                              Intel Corporation


---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris, 
92196 Meudon Cedex, France
Registration Number:  302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

[-- Attachment #2: adapter-config-sample.txt --]
[-- Type: text/plain, Size: 93 bytes --]

[adapter]
name=desktop-0
class=0x780011
pairable=yes
onmode=discoverable
mode=discoverable



[-- Attachment #3: device-config-sample.txt --]
[-- Type: text/plain, Size: 777 bytes --]

[device]
name=MyPhone
alias=Fred's phone
class=0x180204
device_id=FFFF 0000 0000 0000
eir=040D040218
manufacturer=15
lmp_version=2
lmp_subversion=777
features=FFFE0D0008080000
lastseen=2012-09-26 11:19:40 GMT
lastused=2012-09-26 11:43:42 GMT
trusted=yes
profiles=00001101-0000-1000-8000-00805f9b34fb;00001103-0000-1000-8000-00805f9b34fb

[00001101-0000-1000-8000-00805f9b34fb]
handle=10001
record=35470900000A000100010900013503191101090004350C350319010035051900030802090005350319100209000935083506191101090100090100250C53657269616C20506F727400

[00001103-0000-1000-8000-00805f9b34fb]
handle=10002
record=35530900000A000100020900013503191103090004350C35031901003505190003080309000535031910020900093508350619110309010009010025134469616C2D7570204E6574776F726B696E67000903052800



             reply	other threads:[~2012-09-27  9:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-27  9:59 Frederic Danis [this message]
2012-09-28  9:37 ` [RFC] Convert storage to use per-remote device directories Johan Hedberg
2012-09-28 12:36   ` Frederic Danis
2012-09-28 10:56 ` Anderson Lizardo
2012-09-28 13:12   ` Frederic Danis
2012-09-28 14:04     ` Anderson Lizardo
2012-10-01  8:30       ` Johan Hedberg
2012-09-28 14:33 ` Marcel Holtmann
2012-10-01  8:16   ` Johan Hedberg

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=50642389.40107@intel.com \
    --to=frederic.danis@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).