2008-08-11 18:18:40

by David Stockwell

[permalink] [raw]
Subject: [Bluez-devel] Question about Bluez-4.1 Object Paths

Gents,

After installing 4.1 yesterday, I noticed that the object paths for
org.bluez.Adapter and org.bluez.Device have changed: both are now
prefixed with "/org/bluez", probably reflecting the recent firestorm
with the DBus folks. So now, the object path for the "zero-th" adapter
is not "/hci0", but "/org/bluez/hci0" as it was for the "legacy" DBus
interface.

At the same time, the object path for org.bluez.Manager is still "/".
Is this intentional, or an oversight?

David Stockwell


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2008-08-11 19:29:25

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Question about Bluez-4.1 Object Paths

Hi David,

> After installing 4.1 yesterday, I noticed that the object paths for
> org.bluez.Adapter and org.bluez.Device have changed: both are now
> prefixed with "/org/bluez", probably reflecting the recent firestorm
> with the DBus folks. So now, the object path for the "zero-th" adapter
> is not "/hci0", but "/org/bluez/hci0" as it was for the "legacy" DBus
> interface.

the object path of the adapter and device interfaces need to be
discovered via functions like ListAdapters and ListDevices. Relying on
stable object path names is wrong. I will change them randomly from
release to release if I have to. Any application that will break because
of this is a broken application.

Regards

Marcel



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel