All of lore.kernel.org
 help / color / mirror / Atom feed
* Add name and namePrefix filter to SetDiscoveryFilter
@ 2015-11-24 12:09 François Beaufort
  2015-11-30  8:40 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: François Beaufort @ 2015-11-24 12:09 UTC (permalink / raw)
  To: linux-bluetooth

The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
Transport filters.
I was wondering if it would be possible to add "name" and "namePrefix"
filters to this list?

I'm shamelessly asking this because the Web Bluetooth API has added
these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter

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

* Re: Add name and namePrefix filter to SetDiscoveryFilter
  2015-11-24 12:09 Add name and namePrefix filter to SetDiscoveryFilter François Beaufort
@ 2015-11-30  8:40 ` Luiz Augusto von Dentz
  2015-11-30  9:23   ` François Beaufort
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2015-11-30  8:40 UTC (permalink / raw)
  To: François Beaufort; +Cc: linux-bluetooth

Hi François,

On Tue, Nov 24, 2015 at 2:09 PM, François Beaufort
<beaufort.francois@gmail.com> wrote:
> The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
> Transport filters.
> I was wondering if it would be possible to add "name" and "namePrefix"
> filters to this list?
>
> I'm shamelessly asking this because the Web Bluetooth API has added
> these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter

I guess we can extend with more filters but Im afraid having 2 filters
like that can be confusing, what if name and prefix are set? Shall it
can an error? What should be the logic AND or OR operation? I guess
like with the other we need a merge strategy if multiple clients set a
filter with different names.



-- 
Luiz Augusto von Dentz

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

* Re: Add name and namePrefix filter to SetDiscoveryFilter
  2015-11-30  8:40 ` Luiz Augusto von Dentz
@ 2015-11-30  9:23   ` François Beaufort
  0 siblings, 0 replies; 3+ messages in thread
From: François Beaufort @ 2015-11-30  9:23 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth

You're right.
As discussed on a separate thread with Jakub, instead of two filters
we might want to add one unique filter "nameRegexp" that would take a
regular expression to filter against bluetooth device names.
What do you think?

On Mon, Nov 30, 2015 at 9:40 AM Luiz Augusto von Dentz
<luiz.dentz@gmail.com> wrote:
>
> Hi François,
>
> On Tue, Nov 24, 2015 at 2:09 PM, François Beaufort
> <beaufort.francois@gmail.com> wrote:
> > The SetDiscoveryFilter method already has UUIDs, RSSI, Pathloss and
> > Transport filters.
> > I was wondering if it would be possible to add "name" and "namePrefix"
> > filters to this list?
> >
> > I'm shamelessly asking this because the Web Bluetooth API has added
> > these filters: http://webbluetoothcg.github.io/web-bluetooth/#dictdef-bluetoothscanfilter
>
> I guess we can extend with more filters but Im afraid having 2 filters
> like that can be confusing, what if name and prefix are set? Shall it
> can an error? What should be the logic AND or OR operation? I guess
> like with the other we need a merge strategy if multiple clients set a
> filter with different names.
>
>
>
> --
> Luiz Augusto von Dentz

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

end of thread, other threads:[~2015-11-30  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-24 12:09 Add name and namePrefix filter to SetDiscoveryFilter François Beaufort
2015-11-30  8:40 ` Luiz Augusto von Dentz
2015-11-30  9:23   ` François Beaufort

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.