Re: [Bluez-devel] bluetoothd D-Bus interface proposals(draft 00.05)

Peter Robinson
2005-08-22T12:37:00Z

On 8/22/05, Claudio Takahasi <cktakahasi@gmail.com> wrote:
> Hi folks,
>=20
>=20
> It's possible register multiple D-Bus object paths. My suggestion
> for handle multiple adapters is register a default path and paths
> based on the device address.
> eg: suppose two adapters(11:22:33:44:55:66, 77:88:99:00:11:22)
>=20
> The possible paths are:
>=20
> /org/bluez/bluetoothd/hci (default path - first adapter)
> /org/bluez/bluetoothd/112233445566/hci (first adapter)
> /org/bluez/bluetoothd/778899001122/hci (second adapter)
>=20
> /org/bluez/bluetoothd/pan (default path - first adapter)
> /org/bluez/bluetoothd/112233445566/pan (first adapter)
> /org/bluez/bluetoothd/778899001122/pan (second adapter)
> ...
>=20
> The service to list the adapter must be moved to the main path
> (/org/bluez/bluetoothd) or to a new one /org/bluez/bluetoothd/devices.
>=20
> The message handle function will become more complex, but I don't
> see other solution.

What happens if you want to use your second adapter as the default? EG
if I have a BT2.0 and a BT1.2 adapter but the BT1.2 adapter is
detected first but you want to use the BT2.0 adapter as the default as
its faster.

Peter