From: Francisco Alecrim <francisco.alecrim@openbossa.org>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
Marcel Holtmann <marcel@holtmann.org>,
Francisco Alecrim <francisco.alecrim@openbossa.org>,
linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH v2 2/2] Emit Adapter.PropertyChanged when UUIDs change
Date: Mon, 29 Mar 2010 18:12:56 -0400 [thread overview]
Message-ID: <4BB125E8.1090200@openbossa.org> (raw)
In-Reply-To: <20100329215239.GA3748@jh-x301>
Hi Johan and Luiz,
Johan Hedberg wrote:
> Hi Luiz,
>
> On Mon, Mar 29, 2010, Luiz Augusto von Dentz wrote:
>> On Mon, Mar 29, 2010 at 11:29 AM, Marcel Holtmann <marcel@holtmann.org> wrote:
>>> Hi Johan,
>>>
>>>>> Emitting Adapter.PropertyChanged signal when UUIDs change. D-Bus message
>>>>> to inform that adapter properties changed.
>>>>> ---
>>>>> src/adapter.c | 75 ++++++++++++++++++++++++++++++++++++++++++++------
>>>>> src/adapter.h | 1 +
>>>>> src/sdpd-database.c | 3 ++
>>>>> 3 files changed, 70 insertions(+), 9 deletions(-)
>>>> Thanks for the patches. In principle they look good, but I haven't
>>>> applied them yet due to one thing that looks a bit strange: both the SDP
>>>> server record UUID (0x1000) as well as the public browse group UUID
>>>> (0x1001) always show up in the UUIDs list. I wonder if there'd be any
>>>> clean way to avoid getting them into the list. Marcel, do you have any
>>>> idea about this or is it even a problem that these UUIDs are always in
>>>> the list?
>>> these UUIDs are always in the server, but not in the public browse group
>>> and we skip them on purpose. The only reason why they are always present
>>> is that the specification requires it.
>> IMO, it should be the same list as we export in extended inquiry
>> response, so perhaps we could use the data from
>> create_ext_inquiry_response which already filter those away. Perhaps
>> some refactoring could also be done since this code seems to be called
>> multiple times in case of new services because it also changes class
>> which then triggers create_ext_inquiry_response again.
I'm not so sure about it but create_ext_inquiry_response list all
services to any adapters. Shouldn't it list just services per
adapter(access_db)?
>
> That makes quite a lot sense, and is actually what I was chatting with
> Marcel about earlier today on irc. The EIR UUIDs list does have a few
> restrictions though that the Adapter UUIDs property doesn't have, such
> as a maximum limit on the amount of UUIDs (since EIR data is quite
> limited in size), so the lists will not always be exactly the same.
>
> You can see the creation of the EIR list in the for-loop of the
> create_ext_inquiry_response function in sdpd-service.c. The most
> important part for the Adapter UUIDs property would be the following
> code snippet which also answers the original question I had about how to
> best get rid of the unnecessary UUIDs:
>
> if (rec->svclass.value.uuid16 < 0x1100)
> continue;
> if (rec->svclass.value.uuid16 == PNP_INFO_SVCLASS_ID)
> continue;
>
> In addition those there's also the duplicate UUID check which I think
> the original patch was missing. So, if the same code could somehow be
> reused for EIR and the Adapter UUIDs property it'd be great. However, if
> it's too messy, the above two filters and the duplicate UUID check
> should at least be applied to the Adapter UUIDs property.
Great! That's the piece of code I was trying to find. I'll try
re-organize this code.
Thanks,
Alecrim.
next prev parent reply other threads:[~2010-03-29 22:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 22:54 [PATCH v2 1/2] Report local services(UUIDs) through DBus Francisco Alecrim
2010-03-26 22:54 ` [PATCH v2 2/2] Emit Adapter.PropertyChanged when UUIDs change Francisco Alecrim
2010-03-29 7:45 ` Johan Hedberg
2010-03-29 8:29 ` Marcel Holtmann
2010-03-29 18:48 ` Luiz Augusto von Dentz
2010-03-29 21:52 ` Johan Hedberg
2010-03-29 22:12 ` Francisco Alecrim [this message]
2010-03-29 22:56 ` Johan Hedberg
2010-03-30 1:21 ` Marcel Holtmann
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=4BB125E8.1090200@openbossa.org \
--to=francisco.alecrim@openbossa.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.