summaryrefslogtreecommitdiff
path: root/test/show-introspection
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-29 04:57:57 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-06-29 04:57:57 +0200
commit85161ed17c46ce91fa768576f54c6e2278c07f34 (patch)
treea86168e5355346b2739efa04a3cd056f485bd45c /test/show-introspection
parent2f1e2f29dcab50d2111009efc505c496aa0ab494 (diff)
downloadconnman-85161ed17c46ce91fa768576f54c6e2278c07f34.tar.gz
connman-85161ed17c46ce91fa768576f54c6e2278c07f34.tar.bz2
connman-85161ed17c46ce91fa768576f54c6e2278c07f34.zip
Add first draft of new D-Bus API
Diffstat (limited to 'test/show-introspection')
-rwxr-xr-xtest/show-introspection16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/show-introspection b/test/show-introspection
index c1cb0ef9..86faca18 100755
--- a/test/show-introspection
+++ b/test/show-introspection
@@ -4,18 +4,18 @@ import dbus
bus = dbus.SystemBus()
-object = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
- 'org.freedesktop.DBus.Introspectable')
+object = dbus.Interface(bus.get_object("org.moblin.connman", '/'),
+ "org.freedesktop.DBus.Introspectable")
print object.Introspect()
-manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
- 'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
+ "org.moblin.connman.Manager")
-interfaces = manager.ListInterfaces()
+elements = manager.ListElements()
-for path in interfaces:
- object = dbus.Interface(bus.get_object('org.moblin.connman', path),
- 'org.freedesktop.DBus.Introspectable')
+for path in elements:
+ object = dbus.Interface(bus.get_object("org.moblin.connman", path),
+ "org.freedesktop.DBus.Introspectable")
print object.Introspect()