diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-11-19 10:15:25 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-11-19 10:15:25 +0100 |
commit | 2d5ab53c5c005439464c684ed3402d81598c5aea (patch) | |
tree | d8ddcdd9d6dd6af95021e014218e078a885abcd1 /test | |
parent | 45c42779987d8e03732f571ef2b454c0f4c9abce (diff) | |
download | connman-2d5ab53c5c005439464c684ed3402d81598c5aea.tar.gz connman-2d5ab53c5c005439464c684ed3402d81598c5aea.tar.bz2 connman-2d5ab53c5c005439464c684ed3402d81598c5aea.zip |
Use properties for profiles, devices and connections
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-devices | 6 | ||||
-rwxr-xr-x | test/list-profiles | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/test/list-devices b/test/list-devices index 3c1b82e9..d7b9331d 100755 --- a/test/list-devices +++ b/test/list-devices @@ -7,15 +7,13 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") -elements = manager.ListElements() +properties = manager.GetProperties() -for path in elements: +for path in properties["Devices"]: element = dbus.Interface(bus.get_object("org.moblin.connman", path), "org.moblin.connman.Element") properties = element.GetProperties() - if (properties["Type"] != "device"): - continue print "[ %s ]" % (path) diff --git a/test/list-profiles b/test/list-profiles index fcf1830c..025f3cf1 100755 --- a/test/list-profiles +++ b/test/list-profiles @@ -7,9 +7,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") -profiles = manager.ListProfiles() +properties = manager.GetProperties() -for path in profiles: +for path in properties["Profiles"]: print "[ %s ]" % (path) element = dbus.Interface(bus.get_object("org.moblin.connman", path), |