problems with accessing nm properties through dbus



Heya there,

I've got the latest NM 0.7 from the git reps. a while ago and tried to do some dbus stuff over it.
Afaik the DBUS interface is in refactoring and changing starting with 0.7 right?
Now the problem is as follows: 
In abscence of really good documentation of nm's dbus API and such,i got a little stuck at reading properties through nm's dbus interface.
Worth mentioning is that there are big differences between docs/NetworkManager DBUS API.txt(probably valid only with 0.6?) and the spec.html(http://projects.gnome.org/NetworkManager/developers/spec.html) generated with --with-docs.
So after a little web browsing and mailing list skipping i finally got it that the properties are exposed through 'org.freedesktop.DBus.Properties' at least from 0.7 right(http://dbus.freedesktop.org/doc/dbus-specification.html)?
So i did something like:
Service:       org.freedesktop.NetworkManager
object path:/org/freedesktop/NetworkManager
Interface:     org.freedesktop.DBus.Properties
Method:      Get,GetAll,Set

and they all fail with dbus error messages like:
org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "" on interface "org.freedesktop.DBus.Properties" doesn't exist

So how come DBus spits UnknownMethod?
Maybe i am doing it wrong :)) and i am not using the right way to expose nm's properties through dbus and help from you guys might be really appreciated.


Thanks,
sh



      


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]