Re: [Bluez-devel] [PATCH] Bluetooth address specific device configuration
flat view
From: Fredrik Noring <hidden>
Date: 2004-01-29 18:29:17
Hi Achim, tor 2004-01-29 klockan 00.16 skrev Achim Bohnet:
I've a laptop with buildin bt and an external bt stick. It depends on the order I switch internal one on or connect the stick what interface is assigned to the same hardware. If there is a need (no idea yet I'm a bt newbie) for this feature selection by bdaddr is therefore useful to support. Selection by interface would be useless for me.
I think combining all three possibilities is the best:
device <bdaddr>
{
# This is the configuration for all
# devices that have matching bdaddr:s.
}
device <hci interface>
{
# This is the configuration for all devices
# that have matching interfaces but no matching
# bdaddr.
}
device
{
# This is the configuration for all devices
# that don't match anything else: the default.
}
This way one can mix and move devices around and hcid will do its
best to configure things properly.
Having a utility (e.g. config-bluetooth) managing all these
configurations simpifies things, of course.
On the other hand if I ever take the another identical stick with me
by accident, bdaddr would be different and the settings would not
apply without a notice. Maybe a
device default
{
complain loudly
}
is useful ;)
Well, simply having
device
{
# Default configuration.
}
already works today. :)
Fredrik
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel