From: Szymon Janc <szymon.janc@tieto.com>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH 4/8] sdp: Decouple Device ID profile implementation
Date: Mon, 16 Sep 2013 13:10:54 +0200 [thread overview]
Message-ID: <2389837.qqrqTJ68od@uw000953> (raw)
In-Reply-To: <B531A8F3-8ABA-4CD1-A013-AB0AFF40302C@holtmann.org>
Hi Marcel,
> > Make DeviceID profile similar to other profiles implementations. Use
> > btd_profile for handling DeviceID profile while adding/removing
> > adapters. The nice drawback is that SDP code no longer depends on
> > main_opts.
> > ---
> > Makefile.plugins | 3 +
> > profiles/deviceid/deviceid.c | 181 +++++++++++++++++++++++++++++++++++++++++++
> > src/sdpd-server.c | 4 -
> > src/sdpd-service.c | 58 --------------
> > src/sdpd.h | 2 -
> > 5 files changed, 184 insertions(+), 64 deletions(-)
> > create mode 100644 profiles/deviceid/deviceid.c
> >
> > diff --git a/Makefile.plugins b/Makefile.plugins
> > index 7c5f71d..df5d2a1 100644
> > --- a/Makefile.plugins
> > +++ b/Makefile.plugins
> > @@ -82,6 +82,9 @@ builtin_sources += profiles/scanparam/scan.c
> > builtin_modules += deviceinfo
> > builtin_sources += profiles/deviceinfo/deviceinfo.c
> >
> > +builtin_modules += deviceid
> > +builtin_sources += profiles/deviceid/deviceid.c
> > +
>
> this is changing the semantics a little bit. Device Id record is guaranteed
> to have 0x10000 handle. I would prefer if we can keep it that way.
Why? There is no such requirement in spec (is it?), and this is just another
profile so not sure why would you like to treat it in special way. (Also if one
disable deviceid other profiles might get 0x10000 handle.)
If that is really needed we could still have a plugin, just with high prio so
that it init is called first and then use insert instead of add record when
probing adapters.
> Also we need to find a way to make this work with the extended inquiry
> response that can also included device id information.
Currently deviceid info is in main_opts and is handled from many places.
We could remove this from main_opts and put all the logic (config reading,
default values etc) to deviceid plugin and let it set proper values for
adapters.
--
BR
Szymon Janc
next prev parent reply other threads:[~2013-09-16 11:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-13 11:30 [PATCH 1/8] gitignore: Add tools/btinfo Szymon Janc
2013-09-13 11:30 ` [PATCH 2/8] core: Minor whitespace fix Szymon Janc
2013-09-14 1:50 ` Marcel Holtmann
2013-09-13 11:30 ` [PATCH 3/8] sap: Keep reference to btd_adapter in struct sap_server Szymon Janc
2013-09-13 12:33 ` Johan Hedberg
2013-09-13 11:30 ` [PATCH 4/8] sdp: Decouple Device ID profile implementation Szymon Janc
2013-09-14 1:49 ` Marcel Holtmann
2013-09-16 11:10 ` Szymon Janc [this message]
2013-09-16 12:04 ` Luiz Augusto von Dentz
2013-09-13 11:30 ` [PATCH 5/8] adapter: Handle adding new SDP records Szymon Janc
2013-09-13 11:30 ` [PATCH 6/8] adapter: Handle removing of " Szymon Janc
2013-09-13 11:30 ` [PATCH 7/8] Remove not needed sdp_init_services_list function Szymon Janc
2013-09-13 11:30 ` [PATCH 8/8] unit: Remove not needed functions from test-sdp Szymon Janc
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=2389837.qqrqTJ68od@uw000953 \
--to=szymon.janc@tieto.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=marcel@holtmann.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